|
||||||||||
| 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,MouseDrawingUI.DrawingState>
org.pbjar.jxlayer.plaf.misc.MouseDrawingUI
public class MouseDrawingUI
A mouse drawing UI.
| Nested Class Summary | |
|---|---|
protected static class |
MouseDrawingUI.ColoredLine
Defines one line. |
protected static class |
MouseDrawingUI.DrawingState
Holds state information. |
| Constructor Summary | |
|---|---|
MouseDrawingUI()
Create an instance with AWTEventListener disabled. |
|
MouseDrawingUI(boolean enableAWTEventListener)
Create an instance. |
|
| Method Summary | |
|---|---|
protected MouseDrawingUI.DrawingState |
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)
Returns Actions for:
Clear the current drawing. |
protected void |
paintLayer(Graphics2D g2,
org.jdesktop.jxlayer.JXLayer<JComponent> layer)
|
protected void |
processMouseEvent(MouseEvent e,
org.jdesktop.jxlayer.JXLayer<JComponent> layer)
|
protected void |
processMouseMotionEvent(MouseEvent e,
org.jdesktop.jxlayer.JXLayer<JComponent> layer)
|
| Methods inherited from class org.pbjar.jxlayer.plaf.misc.GeneralLayerUI |
|---|
cleanupStateObject, 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 MouseDrawingUI()
AWTEventListener disabled.
public MouseDrawingUI(boolean enableAWTEventListener)
Via the enableAWTEventListener argument, AWTEventListener can be
enabled or disabled.
enableAWTEventListener - 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 for:
getActions in class GeneralLayerUI<JComponent,MouseDrawingUI.DrawingState>layer - the JXLayer
protected MouseDrawingUI.DrawingState createStateObject(org.jdesktop.jxlayer.JXLayer<JComponent> layer)
GeneralLayerUInull.
createStateObject in class GeneralLayerUI<JComponent,MouseDrawingUI.DrawingState>layer - the JXLayer
null, if no state is maintained.
protected void paintLayer(Graphics2D g2,
org.jdesktop.jxlayer.JXLayer<JComponent> layer)
protected void processMouseEvent(MouseEvent e,
org.jdesktop.jxlayer.JXLayer<JComponent> layer)
protected void processMouseMotionEvent(MouseEvent e,
org.jdesktop.jxlayer.JXLayer<JComponent> layer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||