MetaDone
|
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 |
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.
metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.AnchorShapeSequence | ( | AnchorShape... | shapes | ) |
Initializes this sequence.
shapes | A list of shapes to render |
NullPointerException | when 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.
initialGap | The initial gap |
shapes | A list of shapes to render |
NullPointerException | when one of the shapes is null |
References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.gap(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.shapes.
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.
s | The size of the 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 | ( | ) |
final AnchorShape [] metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.shapes [private] |
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.AnchorShapeSequence(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.getCutDistance(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.getRadius(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.paint(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AnchorShapeSequence.toString().