|
||||||||||
| 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<V,S>
V - JXLayer's viewS - A state objectpublic class GeneralLayerUI<V extends JComponent,S>
A generalized implementation of LayerUI.
Some additional functionality:
LayerUIs that are
intended for shared use.Actions that can be used for the controls of a GUI.MouseWheelEvents to the first component up in
the hierarchy from the originating component that has a MouseWheelListener registered.AWTEventListener.
| Constructor Summary | |
|---|---|
GeneralLayerUI()
|
|
| Method Summary | |
|---|---|
protected void |
cleanupStateObject(S stateObject)
Cleanup the state object. |
protected S |
createStateObject(org.jdesktop.jxlayer.JXLayer<? extends V> layer)
Create a StateObject specific for this LayerUI and the JXLayer argument. |
List<Action> |
getActions()
Get actions that are applicable to this LayerUI. |
List<Action> |
getActions(org.jdesktop.jxlayer.JXLayer<? extends V> layer)
Get actions that are applicable to this LayerUI and a specific JXLayer. |
String |
getName()
Returns the simple class name. |
protected S |
getStateObject(org.jdesktop.jxlayer.JXLayer<? extends V> layer)
Get the created StateObject specific to the JXLayer argument. |
void |
installUI(JComponent c)
Invokes super.installUI. |
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 MouseWheelEventListener registered. |
void |
uninstallUI(JComponent c)
Invokes super.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, 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 GeneralLayerUI()
| Method Detail |
|---|
public List<Action> getActions()
public List<Action> getActions(org.jdesktop.jxlayer.JXLayer<? extends V> layer)
layer - the JXLayer
public String getName()
public void installUI(JComponent c)
installUI in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends JComponent>public void uninstallUI(JComponent c)
GeneralLayerUI#cleanupStateObject(Object) is invoked to cleanup
the state object.
uninstallUI in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends JComponent>protected void cleanupStateObject(S stateObject)
stateObject - a state objectprotected S createStateObject(org.jdesktop.jxlayer.JXLayer<? extends V> layer)
null.
layer - the JXLayer
null, if no state is maintained.protected final S getStateObject(org.jdesktop.jxlayer.JXLayer<? extends V> layer)
layer - the JXLayer
null, if
createStateObject(JXLayer) returned null
protected void processMouseWheelEvent(MouseWheelEvent event,
org.jdesktop.jxlayer.JXLayer<? extends V> jxlayer)
MouseWheelEventListener 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 | |||||||||