|
|||||||||||
| 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.EditGraphDocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentSelectionCommand
com.tensegrity.skeleton.commands.TableCommand
This Command performs some CompositeTable specific
actions. At the time of writing, this command is only available in a
popup-menu of the GraphDemo-application.
| Field Summary | |
static int |
COLUMN_ADD_BEFORE
Constant specifying the add column before selected columncommand. |
static int |
COLUMN_ADD_BEHIND
Constant specifying the add column behind selected columncommand. |
static int |
COLUMN_REMOVE
Constant specifying the remove columncommand. |
static int |
LABEL_CREATE
Constant specifying the label createcommand. |
static int |
LABEL_EDIT
Constant specifying the label editcommand. |
static int |
LABEL_REMOVE
Constant specifying the label removecommand. |
static int |
ROW_ADD_BEFORE
Constant specifying the add row before selected columncommand. |
static int |
ROW_ADD_BEHIND
Constant specifying the add row behind selected columncommand. |
static int |
ROW_REMOVE
Constant specifying the remove rowcommand. |
| Constructor Summary | |
TableCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Constructor specifying the ApplicationFrame and a unique
command string for this Command. |
|
TableCommand(ApplicationFrame applicationFrame,
java.lang.String command,
int type)
Constructor specifying the ApplicationFrame and a unique
command string for this Command. |
|
| Method Summary | |
static CompositeLabel |
getCompositeLabel(VisualGraphView vgv,
CompositeTable table,
int x,
int y)
Returns the CompositeLabel located at the
(x, y) in the CompositeTable of the given
VisualGraphView. |
static int[] |
getGridCoordinates(VisualGraphView vgv,
CompositeTable table,
int x,
int y)
Returns the corresponding coordinates for the given coordinate-pair in the grid of the CompositeTable. |
boolean |
isEnabled()
Checks if there is something selected in the current document. |
void |
perform(java.lang.Object args)
Updates the StatusBar with this commands title string. |
| Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentSelectionCommand |
getSelection, hasSelection |
| Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand |
getGraphDocument, getVisualGraphView |
| Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand |
getDocument, getGraphApplication, newGraphDocumentFromFactory |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle |
| 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 |
public static final int LABEL_CREATE
label createcommand.
public static final int LABEL_REMOVE
label removecommand.
public static final int LABEL_EDIT
label editcommand.
public static final int ROW_ADD_BEHIND
add row behind selected columncommand.
public static final int ROW_ADD_BEFORE
add row before selected columncommand.
public static final int ROW_REMOVE
remove rowcommand.
public static final int COLUMN_ADD_BEHIND
add column behind selected columncommand.
public static final int COLUMN_ADD_BEFORE
add column before selected columncommand.
public static final int COLUMN_REMOVE
remove columncommand.
| Constructor Detail |
public TableCommand(ApplicationFrame applicationFrame,
java.lang.String command)
ApplicationFrame and a unique
command string for this Command.
applicationFrame - the ApplicationFrame to use.command - a unique string for this command.
public TableCommand(ApplicationFrame applicationFrame,
java.lang.String command,
int type)
ApplicationFrame and a unique
command string for this Command.
applicationFrame - the ApplicationFrame to use.command - a unique string for this command.type - the type, valid values are defined by the int constants
of this class.| Method Detail |
public final void perform(java.lang.Object args)
CommonBaseCommand
perform in interface Commandperform in class CommonBaseCommandCommand.perform(java.lang.Object)
public static final int[] getGridCoordinates(VisualGraphView vgv,
CompositeTable table,
int x,
int y)
CompositeTable.
vgv - the VisualGraphView.table - the CompositeTable.x - the x-coordinate of the popup-menu.y - the y-coordinate of the popup-menu.
public static final CompositeLabel getCompositeLabel(VisualGraphView vgv,
CompositeTable table,
int x,
int y)
CompositeLabel located at the
(x, y) in the CompositeTable of the given
VisualGraphView.
vgv - the VisualGraphView to use.table - the CompositeTable.x - the x-coordinate of the location.y - the y-coordinate of the location.
CompositeLabel located at (x, y).public boolean isEnabled()
GraphDocumentSelectionCommand
isEnabled in interface CommandisEnabled in class GraphDocumentSelectionCommandEditGraphDocumentCommand.isEnabled()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||