|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.commands.AbstractInsertElementCommand
This is the abstract Command base class used for inserting
new visual elements to a VisualGraph that have been created
programmatically.
| Field Summary | |
protected static java.lang.String |
ELEMENTNAME_CHART_NODE
Name of the chart node element in the pool to use for insertion |
protected static java.lang.String |
ELEMENTNAME_IMAGE
Name of the image node element in the pool to use for creating image nodes |
protected static java.lang.String |
ELEMENTNAME_TABLE_NODE
Name of the table node element in the pool to use for insertion |
| Constructor Summary | |
AbstractInsertElementCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Constructor. |
|
| Method Summary | |
protected void |
addElement(VisualNode vNode,
int width,
int height)
Adds the given visual node to the graph at the upper left corner of the viewport. |
protected void |
addElement(VisualNode vNode,
int x,
int y,
int width,
int height)
Adds the given visual node to the graph. |
protected void |
toLog(double[] widthHeight)
Converts a pixel size to logical units. |
| Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand |
getGraphDocument, getVisualGraphView, isEnabled |
| Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand |
getDocument, getGraphApplication, newGraphDocumentFromFactory |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle, perform |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String ELEMENTNAME_IMAGE
protected static final java.lang.String ELEMENTNAME_CHART_NODE
protected static final java.lang.String ELEMENTNAME_TABLE_NODE
| Constructor Detail |
public AbstractInsertElementCommand(ApplicationFrame applicationFrame,
java.lang.String command)
applicationFrame - The application framecommand - The id to use for registering in the command registry| Method Detail |
protected void addElement(VisualNode vNode,
int width,
int height)
throws java.lang.Exception
vNode - The visual node to addwidth - The width of the node (will be set using the layout method of the node)height - The width of the node (will be set using the layout method of the node)
java.lang.Exception - Throws graph model exceptions from the framework
protected void addElement(VisualNode vNode,
int x,
int y,
int width,
int height)
throws java.lang.Exception
vNode - The visual node to addx - The horizontal position for the node in units of the
coordinate system of the view and relative to the position
of the viewporty - The vertical position for the node in units of the
coordinate system of the view and relative to the position
of the viewportwidth - The width of the node
(will be set using the layout method of the node)height - The width of the node
(will be set using the layout method of the node)
java.lang.Exception - Throws graph model exceptions from the frameworkprotected void toLog(double[] widthHeight)
widthHeight - A double array with the length of 2
0: width
1: height
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||