MetaDone
|
Public Member Functions | |
AbstractCustomAnchorShape (Shape shape, Stroke stroke, boolean filled, Color fillColor) | |
boolean | isFilled () |
Color | getFillColor () |
Stroke | getStroke () |
boolean | isLineOriented () |
void | paint (Graphics2D graphics, boolean source) |
Protected Member Functions | |
Shape | getShape () |
Private Attributes | |
final boolean | filled |
final Stroke | stroke |
final Shape | shape |
final Color | fillColor |
An abstract anchor shape to easily create other shapes.
You should give just a shape and other optional parameters and that shape will be draw at the end of the edge and will be line oriented (by default).
metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.AbstractCustomAnchorShape | ( | Shape | shape, |
Stroke | stroke, | ||
boolean | filled, | ||
Color | fillColor | ||
) |
Initializes this anchor shape.
shape | The drawn shape |
stroke | The stroke (optional) |
filled | Whether the shape is filled |
fillColor | The color with which the shape is filled (optional) |
References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.filled, metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.shape, and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.stroke.
Color metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getFillColor | ( | ) |
Gets the fill color of the shape.
If the returned color is null
, the already set color of the graphics should be used.
null
References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.fillColor.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.paint().
Shape metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getShape | ( | ) | [protected] |
Returns the shape to paint.
null
References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.shape.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.paint().
Stroke metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getStroke | ( | ) |
Gets the stroke.
If the returned stroke is null
, the already set stroke of the graphics should be used.
null
References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.stroke.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.VoidAnchorShape.paint(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.paint().
boolean metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.isFilled | ( | ) |
Indicates whether the shape is filled.
References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.filled.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.paint().
boolean metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.isLineOriented | ( | ) |
void metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.paint | ( | Graphics2D | graphics, |
boolean | source | ||
) |
Reimplemented in metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.VoidAnchorShape.
References metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getFillColor(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getShape(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getStroke(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.isFilled(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.shape, and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.stroke.
final boolean metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.filled [private] |
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.AbstractCustomAnchorShape(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.CircleAnchorShape.CircleAnchorShape(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.isFilled().
final Shape metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.shape [private] |
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.AbstractCustomAnchorShape(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getShape(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.paint().
final Stroke metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.stroke [private] |
Referenced by metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.AbstractCustomAnchorShape(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.CircleAnchorShape.CircleAnchorShape(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.getStroke(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.VoidAnchorShape.paint(), metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.AbstractCustomAnchorShape.paint(), and metadone.client.grasyla2.visuallibrary.widgets.customAnchorShapes.XAnchorShape.XAnchorShape().