MetaDone
metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence:

List of all members.

Public Member Functions

 AnchorShapeSequence (AnchorShape...shapes)
 AnchorShapeSequence (int initialGap, AnchorShape...shapes)
double getCutDistance ()
int getRadius ()
boolean isLineOriented ()
void paint (Graphics2D graphics, boolean source)
String toString ()

Static Public Member Functions

static AnchorShape gap (int s)

Private Attributes

final AnchorShape[] shapes

Detailed Description

Renders some borders from the anchor of the edge to its center.

The cut distance of the shapes is used to place them on the edge. The first shape in centered on the edge of the node which it is attached to.

The cut distance of non line-oriented shapes is multiplied by 2 because they are usually centered at the edge of the node.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.AnchorShapeSequence ( AnchorShape...  shapes)

Initializes this sequence.

Parameters:
shapesA list of shapes to render
Exceptions:
NullPointerExceptionwhen one of the shapes is null

References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.shapes.

metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.AnchorShapeSequence ( int  initialGap,
AnchorShape...  shapes 
)

Initializes this sequence.

Parameters:
initialGapThe initial gap
shapesA list of shapes to render
Exceptions:
NullPointerExceptionwhen one of the shapes is null

References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.gap(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.shapes.


Member Function Documentation

static AnchorShape metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.gap ( int  s) [static]

Returns a shape representing a gap.

Useful to align shapes with null cut distance.

Parameters:
sThe size of the gap
Returns:
A shape representing a gap

Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.AnchorShapeSequence().

double metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.getCutDistance ( )
int metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.getRadius ( )
boolean metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.isLineOriented ( )
void metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.paint ( Graphics2D  graphics,
boolean  source 
)
String metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.toString ( )

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations