public abstract class AbstractMouseTransformFactory extends java.lang.Object implements MouseTransformFactory
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractMouseTransformFactory.HelpMessageMouseTransform
This mouse transform does nothing, it is just a convenience to post a HelpMessage (regarding
what the user COULD do) when no other mouse-transform makes sense with the current mouse-event.
|
protected class |
AbstractMouseTransformFactory.InvalidMouseTransform
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.
|
protected class |
AbstractMouseTransformFactory.SelectAreaTransform
a mouse-transform dedicated to select objects (Element's, control-point's,...)
inside a rectangle dragged by the user.
|
Constructor and Description |
---|
AbstractMouseTransformFactory(EditorKit kit) |
Modifier and Type | Method and Description |
---|---|
void |
flush()
called when the associated SelectionTool is being deactivated in the hosting EditorKit.
|
EditorKit |
getEditorKit()
Return the hosting EditorKit for mouse-tools which work with this factory.
|
void |
init()
called when the associated SelectionTool is being activated in the hosting EditorKit.
|
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D allocation,
double scale)
Allows the MouseTransformFactory to do specific graphic rendering when it's installed in a
hosting SelectionTool.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createMouseTransform
public AbstractMouseTransformFactory(EditorKit kit)
kit
- the hosting editor-kitpublic final EditorKit getEditorKit()
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)
paint
in interface MouseTransformFactory
public void init()
This implementation does nothing.
init
in interface MouseTransformFactory
public void flush()
This implementation does nothing.
flush
in interface MouseTransformFactory
Submit a bug : syd@jpicedt.org