com::cosylab::logging::TransparentGlassPane Class Reference

Inheritance diagram for com::cosylab::logging::TransparentGlassPane:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::logging::TransparentGlassPane:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TransparentGlassPane (Container c)
void paint (Graphics g)
void mouseClicked (java.awt.event.MouseEvent e)
void mouseEntered (java.awt.event.MouseEvent e)
void mouseExited (java.awt.event.MouseEvent e)
void mousePressed (java.awt.event.MouseEvent e)
void mouseReleased (java.awt.event.MouseEvent e)
void setVisible (boolean b, Component comp)
void setEventComponent (Component comp)

Private Member Functions

void redispatchMouseEvent (MouseEvent e, boolean repaint)

Private Attributes

final Container contentPane
Component mouseEvtComponent = null

Detailed Description

The semi-transparent GlassPane visible when jlog runs offline. The purpose of this panel is to color the windows with a light gray.

When the component is made visible, it is possible to set one and only one component of the content pane to receive mouse events. This is especially useful when showing an error panel that the user must explicitly acknowledge.

Author:
acaproni

Constructor & Destructor Documentation

com::cosylab::logging::TransparentGlassPane::TransparentGlassPane ( Container  c  )  [inline]

References contentPane.


Member Function Documentation

void com::cosylab::logging::TransparentGlassPane::mouseClicked ( java.awt.event.MouseEvent  e  )  [inline]
void com::cosylab::logging::TransparentGlassPane::mouseEntered ( java.awt.event.MouseEvent  e  )  [inline]
void com::cosylab::logging::TransparentGlassPane::mouseExited ( java.awt.event.MouseEvent  e  )  [inline]
void com::cosylab::logging::TransparentGlassPane::mousePressed ( java.awt.event.MouseEvent  e  )  [inline]
void com::cosylab::logging::TransparentGlassPane::mouseReleased ( java.awt.event.MouseEvent  e  )  [inline]
void com::cosylab::logging::TransparentGlassPane::paint ( Graphics  g  )  [inline]

Paint the panel in a light gray.

void com::cosylab::logging::TransparentGlassPane::redispatchMouseEvent ( MouseEvent  e,
boolean  repaint 
) [inline, private]
void com::cosylab::logging::TransparentGlassPane::setEventComponent ( Component  comp  )  [inline]

Set the component to receive mouse events.

If a component is set, it is the only one receiving mouse events. This means that all the other componets of the content pane are disabled.

Parameters:
comp the component to receive mouse events; if null the mouse events are forwarded to the components of the content pane

References mouseEvtComponent.

Referenced by com::cosylab::logging::LoggingClient::errorAcknowledged(), setVisible(), and com::cosylab::logging::LoggingClient::showErrorMessage().

void com::cosylab::logging::TransparentGlassPane::setVisible ( boolean  b,
Component  comp 
) [inline]

Show/hide the component

Parameters:
b if true make the glass pane visible
comp If not null, mouse events are forwarded only to the comp component; otherwise all the events are forwarded to the components of the content pane;

References setEventComponent().

Referenced by com::cosylab::logging::LoggingClient::acsLogConnDisconnected(), com::cosylab::logging::LoggingClient::acsLogConnEstablished(), and com::cosylab::logging::LoggingClient::acsLogConnLost().


Member Data Documentation

The content pane below this glass pane

Referenced by redispatchMouseEvent(), and TransparentGlassPane().

The component receiving mouse events.

Referenced by redispatchMouseEvent(), and setEventComponent().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2