|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
org.jdesktop.jxlayer.plaf.LayerUI<V>
org.jdesktop.jxlayer.plaf.AbstractLayerUI<V>
org.pbjar.jxlayer.plaf.ext.MouseEventUI<V>
public class MouseEventUI<V extends JComponent>
This class provides for MouseEvent re-dispatching. It may be used to
set a tool tip on JXLayer's glass pane and still have the child
components receive MouseEvents.
Note: A MouseEventUI instance cannot be shared and can be set
to a single JXLayer instance only.
| Constructor Summary | |
|---|---|
MouseEventUI()
|
|
| Method Summary | |
|---|---|
boolean |
contains(JComponent c,
int x,
int y)
Overridden to override the LayerUI implementation that only
consults the view. |
void |
eventDispatched(AWTEvent event,
org.jdesktop.jxlayer.JXLayer<? extends V> layer)
Overridden to allow for re-dispatching of mouse events to their intended (visual) recipients, rather than to the components according to their bounds. |
protected org.jdesktop.jxlayer.JXLayer<? extends V> |
getInstalledLayer()
|
long |
getLayerEventMask()
Overridden to only get the following event types: AWTEvent.MOUSE_EVENT_MASK,
AWTEvent.MOUSE_MOTION_EVENT_MASK and
AWTEvent.MOUSE_WHEEL_EVENT_MASK. |
void |
installUI(JComponent component)
Overridden to check if this LayerUI has not been installed
already, and to set the argument component as the installed
JXLayer. |
protected void |
processMouseWheelEvent(MouseWheelEvent event,
org.jdesktop.jxlayer.JXLayer<? extends V> jxlayer)
Re-dispatches the event to the first component in the hierarchy that has a MouseWheelListener registered. |
void |
uninstallUI(JComponent c)
Overridden to remove the installed JXLayer. |
| Methods inherited from class org.jdesktop.jxlayer.plaf.AbstractLayerUI |
|---|
configureGraphics, getClip, getComposite, getRenderingHints, getTransform, handlePropertyChangeEvent, isDirty, paint, paintLayer, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, setDirty |
| Methods inherited from class org.jdesktop.jxlayer.plaf.LayerUI |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPreferredScrollableViewportSize, getPropertyChangeListeners, getPropertyChangeListeners, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, removePropertyChangeListener, removePropertyChangeListener, updateUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MouseEventUI()
| Method Detail |
|---|
public boolean contains(JComponent c,
int x,
int y)
LayerUI implementation that only
consults the view.
This implementation is a copy of the
ComponentUI.contains(JComponent, int, int) method.
contains in class org.jdesktop.jxlayer.plaf.LayerUI<V extends JComponent>
public void eventDispatched(AWTEvent event,
org.jdesktop.jxlayer.JXLayer<? extends V> layer)
eventDispatched in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends JComponent>public long getLayerEventMask()
AWTEvent.MOUSE_EVENT_MASK,
AWTEvent.MOUSE_MOTION_EVENT_MASK and
AWTEvent.MOUSE_WHEEL_EVENT_MASK.
getLayerEventMask in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends JComponent>
public void installUI(JComponent component)
throws IllegalStateException
LayerUI has not been installed
already, and to set the argument component as the installed
JXLayer.
installUI in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends JComponent>IllegalStateException - when this LayerUI has been installed alreadygetInstalledLayer()public void uninstallUI(JComponent c)
JXLayer.
uninstallUI in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends JComponent>protected org.jdesktop.jxlayer.JXLayer<? extends V> getInstalledLayer()
protected void processMouseWheelEvent(MouseWheelEvent event,
org.jdesktop.jxlayer.JXLayer<? extends V> jxlayer)
MouseWheelListener registered.
processMouseWheelEvent in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends JComponent>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||