|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.inplaceediting.InplaceConductor
This class 'conducts' the inplace editing within a GraphPanel.
Since the Tensegrity API supports different toolkits an
InplaceEditorProvider is used to create appropriate editor GUI
controls
| Constructor Summary | |
InplaceConductor(InplaceEditorProvider editorProvider)
Creates a new InplaceConductor. |
|
| Method Summary | |
InplaceEditor |
getInplaceEditor(GraphPanel graphPanel,
int x,
int y)
Returns the InplaceEditor instance to use for the element
at the specified location within the given GraphPanel. |
static int[] |
getLabelCoordinates(VisualGraphView visualGraphView,
BaseComposite baseComposite,
double[] labelCoords)
Static helper method to retrieve position of the label in the coordinates system of the panel. |
static int[] |
getLabelCoordinates(VisualGraphView visualGraphView,
BaseComposite baseComposite,
Label2D label)
Static helper method to retrieve position of the label in the coordinates system of the panel. |
static int[] |
getLabelOfTableCoords(VisualGraphView visualGraphView,
Composite composite,
Label2D label,
CompositeTable table)
Static helper method to retrieve position of a label inside a given table |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InplaceConductor(InplaceEditorProvider editorProvider)
InplaceConductor.
editorProvider - supplies the gui with suitable instances of
InplaceEditor| Method Detail |
public InplaceEditor getInplaceEditor(GraphPanel graphPanel,
int x,
int y)
InplaceEditor instance to use for the element
at the specified location within the given GraphPanel.
graphPanel - the GraphPanel containing the editable
elementx - x coordinate of the element locationy - y coordniate of the element location
InplaceEditor instance.
public static final int[] getLabelCoordinates(VisualGraphView visualGraphView,
BaseComposite baseComposite,
Label2D label)
visualGraphView - the top level VisualGraphView
object.baseComposite - the BaseComposite containing the
label.label - the label.
public static final int[] getLabelCoordinates(VisualGraphView visualGraphView,
BaseComposite baseComposite,
double[] labelCoords)
visualGraphView - the top level VisualGraphView
object.baseComposite - the BaseComposite containing the
label.labelCoords - the label coordinates.
public static final int[] getLabelOfTableCoords(VisualGraphView visualGraphView,
Composite composite,
Label2D label,
CompositeTable table)
visualGraphView - the top level VisualGraphView object.composite - the Composite containing the label.label - the labeltable - the table containing the label
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||