|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.commands.Command
pl.edu.agh.cast.schema.editor.command.bendpoints.AbstractBendpointCommand
public abstract class AbstractBendpointCommand
Abstract command to manage bend points. Contains generic info about relative bendpoints.
Field Summary | |
---|---|
protected SchemaConnectionBendpoint |
bendpoint
Bend point this object is referring to |
protected IVisualSchemaConnection |
connection
Connection this object is referring to |
protected SchemaPolylineConnection |
connectionFigure
Reference to connection figure |
protected org.eclipse.draw2d.geometry.Dimension |
d1
First dimensions describing location of bend point relating to connection |
protected org.eclipse.draw2d.geometry.Dimension |
d2
Second dimensions describing location of bend point relating to connection |
protected int |
index
Index of bend point in constraint list |
protected org.eclipse.draw2d.geometry.Point |
location
Location of mouse cursor while dropping the handle |
Constructor Summary | |
---|---|
AbstractBendpointCommand()
|
Method Summary | |
---|---|
void |
setConnection(IVisualSchemaConnection connection)
|
void |
setConnectionFigure(SchemaPolylineConnection connectionFigure)
Sets connection figure. |
void |
setIndex(int index)
|
void |
setLocation(org.eclipse.draw2d.geometry.Point location)
|
void |
setRelativeDimensions(org.eclipse.draw2d.geometry.Dimension dim1,
org.eclipse.draw2d.geometry.Dimension dim2)
Sets dimensions describing location of bend point relating to connection. |
Methods inherited from class org.eclipse.gef.commands.Command |
---|
canExecute, canUndo, chain, dispose, execute, getDebugLabel, getLabel, redo, setDebugLabel, setLabel, undo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IVisualSchemaConnection connection
protected SchemaPolylineConnection connectionFigure
protected org.eclipse.draw2d.geometry.Point location
protected int index
protected SchemaConnectionBendpoint bendpoint
protected org.eclipse.draw2d.geometry.Dimension d1
protected org.eclipse.draw2d.geometry.Dimension d2
Constructor Detail |
---|
public AbstractBendpointCommand()
Method Detail |
---|
public void setIndex(int index)
public void setLocation(org.eclipse.draw2d.geometry.Point location)
public void setConnection(IVisualSchemaConnection connection)
public void setRelativeDimensions(org.eclipse.draw2d.geometry.Dimension dim1, org.eclipse.draw2d.geometry.Dimension dim2)
dim1
- distance between connection start and bendpointdim2
- distance between connection end and bendpointpublic void setConnectionFigure(SchemaPolylineConnection connectionFigure)
connectionFigure
- the connectionFigure to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |