|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.graphic.toolkit.AbstractMouseTransformFactory
public abstract class AbstractMouseTransformFactory
Provide a skeletal implementation of the MouseTransformFactory
interface.
This include some generic MouseTransform
's which may be easily extended by
concrete subclassers, like SelectAreaMouseTransform
.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
protected UserConfirmationCache |
ucc
|
Constructor Summary | |
---|---|
AbstractMouseTransformFactory(EditorKit kit)
|
Method Summary | |
---|---|
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(UserConfirmationCache ucc)
Called when the associated SelectionTool is being activated in the hosting
EditorKit . |
void |
paint(Graphics2D g,
Rectangle2D allocation,
double scale)
Allows the MouseTransformFactory to do specific graphic rendering when it's installed in a
hosting SelectionTool . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jpicedt.graphic.toolkit.MouseTransformFactory |
---|
createMouseTransform |
Field Detail |
---|
protected UserConfirmationCache ucc
Constructor Detail |
---|
public AbstractMouseTransformFactory(EditorKit kit)
kit
- The hosting EditorKit
.Method Detail |
---|
public final EditorKit getEditorKit()
hitTest()
methods.
public void paint(Graphics2D g, Rectangle2D allocation, double scale)
MouseTransformFactory
to do specific graphic rendering when it's installed in a
hosting SelectionTool
. This default implementation does nothing.
paint
in interface MouseTransformFactory
public void init(UserConfirmationCache ucc)
SelectionTool
is being activated in the hosting
EditorKit
. Initialization work required before any mouse-event occurs should be done
here. Other initialization work may be carried out in the MouseTransform
's themselves.
This implementation does nothing.
init
in interface MouseTransformFactory
public void flush()
SelectionTool
is being deactivated in the hosting
EditorKit
. This provides a way for the factory to do some final clean-up, e.g. local
buffers, graphic context,…
flush
in interface MouseTransformFactory
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |