simtools.diagram
Interface SelectableShapeInterface

All Known Subinterfaces:
LineShapeInterface
All Known Implementing Classes:
ConnectionShape

public interface SelectableShapeInterface

The shapes that implement this interface can provide specific implementation of DiagramSelectedShape. Thias allows to specifiy the shape drawing when selected or to select sub part of a shape

Author:
cazenave_c

Method Summary
 DiagramSelectedShape createSelectedShape(int ox, int oy)
          If the shape contains point at coordinates ox,oy then return a DiagramSelectedShape to manage the selection of this shape
 DiagramSelectedShape createSelectedShape(java.awt.Point point)
          Return the DiagramSelectedShape to manage the selection of this shape
 DiagramSelectedShape createSelectedShape(java.awt.geom.Rectangle2D bounds2D)
          If the shape is contained in the bounds then return a DiagramSelectedShape to manage the selection of this shape
 

Method Detail

createSelectedShape

DiagramSelectedShape createSelectedShape(int ox,
                                         int oy)
If the shape contains point at coordinates ox,oy then return a DiagramSelectedShape to manage the selection of this shape

Parameters:
ox - x coordinate
oy - y coordinate
Returns:
a DiagramSelectedShape or null if not selected

createSelectedShape

DiagramSelectedShape createSelectedShape(java.awt.geom.Rectangle2D bounds2D)
If the shape is contained in the bounds then return a DiagramSelectedShape to manage the selection of this shape

Parameters:
bounds2D - the bounds
Returns:
a DiagramSelectedShape or null if not selected

createSelectedShape

DiagramSelectedShape createSelectedShape(java.awt.Point point)
Return the DiagramSelectedShape to manage the selection of this shape

Parameters:
point - the selection origin
Returns:
a DiagramSelectedShape