|
||||||||||
| 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.misc.GeneralLayerUI<JComponent,HideCursorUI.HideCursorState>
org.pbjar.jxlayer.plaf.misc.HideCursorUI
public final class HideCursorUI
A LayerUI that hides the cursor. After a MouseEvent or MouseMoveEvent the cursor will reappear for some specified time.
| Nested Class Summary | |
|---|---|
protected static class |
HideCursorUI.HideCursorState
Holds state information. |
| Constructor Summary | |
|---|---|
HideCursorUI()
Equivalent to HideCursorUI(0, false). |
|
HideCursorUI(int timeout)
Equivalent to HideCursorUI(timeout, false). |
|
HideCursorUI(int timeout,
boolean enableAWTEventListener)
Create an instance. |
|
| Method Summary | |
|---|---|
protected void |
cleanupStateObject(HideCursorUI.HideCursorState stateObject)
Cleanup the state object. |
protected HideCursorUI.HideCursorState |
createStateObject(org.jdesktop.jxlayer.JXLayer<JComponent> layer)
Create a StateObject specific for this LayerUI and the JXLayer argument. |
List<Action> |
getActions(org.jdesktop.jxlayer.JXLayer<JComponent> layer)
Get Actions that:
Set the cursor timeout value. |
protected void |
processMouseEvent(MouseEvent e,
org.jdesktop.jxlayer.JXLayer<JComponent> layer)
|
protected void |
processMouseMotionEvent(MouseEvent e,
org.jdesktop.jxlayer.JXLayer<JComponent> l)
|
| Methods inherited from class org.pbjar.jxlayer.plaf.misc.GeneralLayerUI |
|---|
getActions, getName, getStateObject, installUI, isAWTEventListenerEnabled, processMouseWheelEvent, uninstallUI |
| Methods inherited from class org.jdesktop.jxlayer.plaf.AbstractLayerUI |
|---|
configureGraphics, eventDispatched, getClip, getComposite, getLayerEventMask, getRenderingHints, getTransform, handlePropertyChangeEvent, isDirty, paint, paintLayer, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, setDirty |
| Methods inherited from class org.jdesktop.jxlayer.plaf.LayerUI |
|---|
addPropertyChangeListener, addPropertyChangeListener, contains, 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 HideCursorUI()
HideCursorUI(0, false).
HideCursorUI(int, boolean)public HideCursorUI(int timeout)
HideCursorUI(timeout, false).
HideCursorUI(int, boolean)
public HideCursorUI(int timeout,
boolean enableAWTEventListener)
Via the enableAWTEventListener argument, AWTEventListener can be
enabled or disabled.
timeout - the timeout time in millisecondsenableAWTEventListener - if true, AWTEventListener will be enabled.
Specifying true Solves a problem with non editable
JTextComponents.
SecurityException - when enableAWTEventListener is true and if a security
manager exists and its checkPermission method doesn't
allow the operation.Toolkit.addAWTEventListener(AWTEventListener, long)| Method Detail |
|---|
public List<Action> getActions(org.jdesktop.jxlayer.JXLayer<JComponent> layer)
Actions that:
getActions in class GeneralLayerUI<JComponent,HideCursorUI.HideCursorState>layer - the JXLayer
protected void cleanupStateObject(HideCursorUI.HideCursorState stateObject)
GeneralLayerUI
cleanupStateObject in class GeneralLayerUI<JComponent,HideCursorUI.HideCursorState>stateObject - a state objectprotected HideCursorUI.HideCursorState createStateObject(org.jdesktop.jxlayer.JXLayer<JComponent> layer)
GeneralLayerUInull.
createStateObject in class GeneralLayerUI<JComponent,HideCursorUI.HideCursorState>layer - the JXLayer
null, if no state is maintained.
protected void processMouseEvent(MouseEvent e,
org.jdesktop.jxlayer.JXLayer<JComponent> layer)
protected void processMouseMotionEvent(MouseEvent e,
org.jdesktop.jxlayer.JXLayer<JComponent> l)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||