public interface DrawingTool
Modifier and Type | Method and Description |
---|---|
void |
addLoader(EditToolLoader loader)
Add an EditToolLoader to the DrawingTool, expanding the
DrawingTool's capability to handle more graphic types.
|
boolean |
canEdit(java.lang.Class clas)
Check to see if the class type can be created/edited by the
DrawingTool.
|
OMGraphic |
create(java.lang.String classname,
DrawingToolRequestor requestor)
Given a classname, provide an OMGraphic for that classname.
|
OMGraphic |
create(java.lang.String classname,
GraphicAttributes ga,
DrawingToolRequestor requestor)
Given a classname, provide an OMGraphic for that classname.
|
OMGraphic |
create(java.lang.String classname,
GraphicAttributes ga,
DrawingToolRequestor requestor,
boolean showGUI)
Same as create(String, GraphicAttributes,
DrawingToolRequestor), except that you have to option of
suppressing the GUI that could be available from the
EditableOMGraphic.
|
OMGraphic |
edit(EditableOMGraphic eomg,
DrawingToolRequestor requestor)
Given an EditableOMGraphic, direct events to the
EditableOMGraphic so that it can modify its OMGraphic.
|
OMGraphic |
edit(EditableOMGraphic eomg,
DrawingToolRequestor requestor,
java.awt.event.MouseEvent e)
A slightly different edit method, where the EditableOMGraphic
is put directly into edit mode, and the mouse events
immediately start making modifications to the OMGraphic.
|
OMGraphic |
edit(OMGraphic g,
DrawingToolRequestor requestor)
Given an OMGraphic, set things up so that the OMGraphic will be
edited.
|
OMGraphic |
edit(OMGraphic g,
DrawingToolRequestor requestor,
boolean showGUI)
Same as edit(omGraphic, DrawingToolRequestor), except that you
have to option of suppressing the GUI that could be available
from the EditableOMGraphic.
|
OMGraphic |
edit(OMGraphic g,
DrawingToolRequestor requestor,
java.awt.event.MouseEvent e)
A slightly different edit method, where the EditableOMGraphic
is put directly into edit mode, and the mouse events
immediately start making modifications to the OMGraphic.
|
int |
getBehaviorMask()
A integer that is looked at internally, bitwise, to determine
different behaviors.
|
EditToolLoader[] |
getLoaders()
Get an array of EditToolLoaders that the DrawingTool knows
about.
|
void |
removeLoader(EditToolLoader loader)
Remove an EditToolLoader from the DrawingTool.
|
void |
setBehaviorMask(int mask)
A integer that is looked at internally, bitwise, to determine
different behaviors.
|
void |
setLoaders(EditToolLoader[] loaders)
Set the loaders within the DrawingTool.
|
void setBehaviorMask(int mask)
int getBehaviorMask()
OMGraphic create(java.lang.String classname, DrawingToolRequestor requestor)
classname
- the classname of the OMGraphic to create.requestor
- the Component that is requesting the
OMGraphic. The requestor gets notified when the user is
finished with the DrawingTool and the graphic is ready.OMGraphic create(java.lang.String classname, GraphicAttributes ga, DrawingToolRequestor requestor)
classname
- the classname of the OMGraphic to create.ga
- GraphicAttributes object that contains more
information about the type of line to be created.requestor
- the Component that is requesting the
OMGraphic. The requestor gets notified when the user is
finished with the DrawingTool and the graphic is ready.OMGraphic create(java.lang.String classname, GraphicAttributes ga, DrawingToolRequestor requestor, boolean showGUI)
classname
- the classname of the OMGraphic to create.ga
- GraphicAttributes object that contains more
information about the type of line to be created.requestor
- the Component that is requesting the
OMGraphic. The requestor gets notified when the user is
finished with the DrawingTool and the graphic is ready.showGUI
- set to true (default) if a GUI showing attribute
controls should be displayed.OMGraphic edit(OMGraphic g, DrawingToolRequestor requestor)
g
- the OMGraphic to wrap in an EditableOMGraphic, and
therefore to edit.requestor
- the Component that is requesting the
OMGraphic. The requestor gets notified when the user is
finished with the DrawingTool and the graphic is ready.OMGraphic edit(OMGraphic g, DrawingToolRequestor requestor, boolean showGUI)
g
- the OMGraphic to wrap in an EditableOMGraphic, and
therefore to edit.requestor
- the Component that is requesting the
OMGraphic. The requestor gets notified when the user is
finished with the DrawingTool and the graphic is ready.showGUI
- set to true (default) if a GUI showing attribute
controls should be displayed.OMGraphic edit(EditableOMGraphic eomg, DrawingToolRequestor requestor)
eomg
- and EditableOMGraphic to manipulate.requestor
- the Component that is requesting the
OMGraphic. The requestor gets notified when the user is
finished with the DrawingTool and the graphic is ready.OMGraphic edit(OMGraphic g, DrawingToolRequestor requestor, java.awt.event.MouseEvent e)
g
- OMGraphic to modifyrequestor
- the Component that is requesting the
OMGraphic. The requestor gets notified when the user is
finished with the DrawingTool and the graphic is ready.e
- MouseEvent to use to start editing with.OMGraphic edit(EditableOMGraphic eomg, DrawingToolRequestor requestor, java.awt.event.MouseEvent e)
eomg
- EditableOMGraphic to modifyrequestor
- the Component that is requesting the
OMGraphic. The requestor gets notified when the user is
finished with the DrawingTool and the graphic is ready.e
- MouseEvent to use to start editing with.boolean canEdit(java.lang.Class clas)
void addLoader(EditToolLoader loader)
void removeLoader(EditToolLoader loader)
EditToolLoader[] getLoaders()
void setLoaders(EditToolLoader[] loaders)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details