ConForM.CoopnTools.CoKer.Visual
Interface GraphicalVisualShape

All Superinterfaces:
GraphicalVisualEditable, GraphicalVisualElement, GraphicalVisualRenderable, javax.swing.undo.StateEditable
All Known Subinterfaces:
GraphicalVisualContainer, GraphicalVisualNode, GraphicalVisualRotatableNode
All Known Implementing Classes:
AbstractGraphicalShape

public interface GraphicalVisualShape
extends GraphicalVisualElement

Graphical visual shape. This interface defines the elements of graphical visual which have shapes, by extending general graphical visual elements. Elements with shapes, i.e. nodes and containers may have neighbours, and can be connected by elements without shapes, i.e. arcs. This interface must be extended for coping with the different kinds of visual elements with shapes.


Fields inherited from interface javax.swing.undo.StateEditable
RCSID
 
Method Summary
 void addEndingArc(GraphicalVisualArc element)
          Add an ending arc.
 void addNeighbour(GraphicalVisualShape element)
          Add a neighbour.
 void addStartingArc(GraphicalVisualArc element)
          Add a starting arc.
 GraphicalVisualArc[] endingArcs()
          Get the ending arcs.
 void findEndingAttachementPointNear(java.awt.Point point, GraphicalVisualArc arc)
          Get an ending attachement point near another point.
 void findStartingAttachementPointNear(java.awt.Point point, GraphicalVisualArc arc)
          Get a starting attachement point near another point.
 GraphicalVisualShape[] neighbours()
          Get the neighbours shaped elements.
 void removeNeighbour(GraphicalVisualShape element)
          Remove a neighbour.
 java.awt.Shape shape()
          Get the bounding shape of the element.
 GraphicalVisualArc[] startingArcs()
          Get the starting arcs.
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualElement
attachToParent, description, externalBox, externalInfoBox, externalLabelBox, getInfo, getLocation, getShown, getShownInfo, getShownLabel, getStringTransfer, getTransferable, inducedSelection, induceSelection, inside, label, parent, parentMoved, partOfParent, selected, setLayoutLocation
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualEditable
abortMove, commitMove, inChange, move, move, moveInfo, moveInfo, moveLabel, moveLabel, restoreCompleteState, setColor, setInfo, setShown, setShownInfo, setShownLabel, storeCompleteState
 
Methods inherited from interface javax.swing.undo.StateEditable
restoreState, storeState
 
Methods inherited from interface ConForM.CoopnTools.CoKer.Visual.GraphicalVisualRenderable
actionOnMultipleClick, boundingBox, deselect, export, paint, pointedElement, print, saveAspect, saveAspectAs, saveAspectAsPossible, saveAspectPossible, selectElement, selectInfo, selectLabel, specificPopup
 

Method Detail

addNeighbour

public void addNeighbour(GraphicalVisualShape element)
Add a neighbour. If the parameter is this element, it is not added.

removeNeighbour

public void removeNeighbour(GraphicalVisualShape element)
Remove a neighbour. If the parameter is not a neighbour, it is not removed.

neighbours

public GraphicalVisualShape[] neighbours()
Get the neighbours shaped elements. The neighbours shapes elements are the elements (with shape, i.e. not arcs) which are included into the same container, or which are at the top level if thsi element is at the top-level too.
Returns:
an array, possibly empty, of the neighbour shapes of this element. Never null.

addStartingArc

public void addStartingArc(GraphicalVisualArc element)
Add a starting arc.

startingArcs

public GraphicalVisualArc[] startingArcs()
Get the starting arcs. A shape can be bound to another shape by arcs, which have a start and an end. This method returns all arcs starting from this shape.
Returns:
an array, possibly empty, of the starting arcs from this element. Never null.

addEndingArc

public void addEndingArc(GraphicalVisualArc element)
Add an ending arc.

endingArcs

public GraphicalVisualArc[] endingArcs()
Get the ending arcs. A shape can be bound to another shape by arcs, which have a start and an end. This method returns all arcs ending to this shape.
Returns:
an array, possibly empty, of the ending arcs from this element. Never null.

shape

public java.awt.Shape shape()
Get the bounding shape of the element.
Returns:
the shape of the element, as a shape in the logical coordinate space. The shape is located on the origin of this element. The shape includes exactly the element itself (not its label, nor info).

findStartingAttachementPointNear

public void findStartingAttachementPointNear(java.awt.Point point,
                                             GraphicalVisualArc arc)
Get a starting attachement point near another point.
Parameters:
point - the point in logical coordinates; cannot be null; this point is modified such that it is now a starting attachement point.
arc - the arc

findEndingAttachementPointNear

public void findEndingAttachementPointNear(java.awt.Point point,
                                           GraphicalVisualArc arc)
Get an ending attachement point near another point.
Parameters:
point - the point in logical coordinates; cannot be null; this point is modified such that it is now an ending attachement point.
arc - the arc