Package jpicedt.graphic.toolkit
Class AbstractMouseTransformFactory.InvalidMouseTransform
- java.lang.Object
-
- jpicedt.graphic.toolkit.AbstractMouseTransformFactory.InvalidMouseTransform
-
- All Implemented Interfaces:
MouseTransform
- Enclosing class:
- AbstractMouseTransformFactory
protected class AbstractMouseTransformFactory.InvalidMouseTransform extends java.lang.Object implements MouseTransform
This mouse transform does nothing, it simply returns an invalid cursor, and can be used by MouseTransform factories to notify the user of an invalid UI action.- Since:
- jpicedt 1.3.2
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInvalidMouseTransform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.CursorgetCursor()Return the cursor for this MouseTransformjava.lang.StringgetHelpMessage()Return a help-message for the UI, that makes sense with this transform.booleannext(PEMouseEvent e)Called when the mouse is releasedvoidpaint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)Allows the MouseTransform to do specific graphic rendering when it's operating.voidprocess(PEMouseEvent e)Called when the mouse is dragged.voidstart(PEMouseEvent e)Called when the mouse is pressed.
-
-
-
Method Detail
-
start
public void start(PEMouseEvent e)
Called when the mouse is pressed. The transform should do the initialization work here.- Specified by:
startin interfaceMouseTransform- Since:
- jpicedt 1.3.2
-
process
public void process(PEMouseEvent e)
Called when the mouse is dragged. Element geometry update should occur here.- Specified by:
processin interfaceMouseTransform- Since:
- jpicedt 1.3.2
-
next
public boolean next(PEMouseEvent e)
Called when the mouse is released- Specified by:
nextin interfaceMouseTransform- Returns:
- true if there's another task in the sequence, false if mouse-transform has completed with this mouse-event.
- Since:
- jpicedt 1.3.2
-
getCursor
public java.awt.Cursor getCursor()
Description copied from interface:MouseTransformReturn the cursor for this MouseTransform- Specified by:
getCursorin interfaceMouseTransform- Returns:
- the cursor for this MouseTransform
- Since:
- jpicedt 1.3.2
-
paint
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)Allows the MouseTransform to do specific graphic rendering when it's operating.- Specified by:
paintin interfaceMouseTransform- Since:
- jpicedt 1.3.2
-
getHelpMessage
public java.lang.String getHelpMessage()
Description copied from interface:MouseTransformReturn a help-message for the UI, that makes sense with this transform.- Specified by:
getHelpMessagein interfaceMouseTransform- Returns:
- a help-message for the UI, that makes sense with this transform.
-
-