public interface AnchorShape
Modifier and Type | Field | Description |
---|---|---|
static AnchorShape |
NONE |
The empty anchor shape.
|
static AnchorShape |
TRIANGLE_FILLED |
The filled-triangle anchor shape.
|
static AnchorShape |
TRIANGLE_HOLLOW |
The hollow-triangle anchor shape.
|
static AnchorShape |
TRIANGLE_OUT |
The output-triangle anchor shape.
|
Modifier and Type | Method | Description |
---|---|---|
double |
getCutDistance() |
Returns a distance by which a line at particular source or target point should be cut (not rendered).
|
int |
getRadius() |
Returns a radius of a shape that the shape used for rendering.
|
boolean |
isLineOriented() |
Returns whether the shape is oriented by the line path of a connection.
|
void |
paint(Graphics2D graphics,
boolean source) |
Renders the shape into a graphics instance
|
static final AnchorShape NONE
static final AnchorShape TRIANGLE_HOLLOW
static final AnchorShape TRIANGLE_FILLED
static final AnchorShape TRIANGLE_OUT
boolean isLineOriented()
int getRadius()
double getCutDistance()
void paint(Graphics2D graphics, boolean source)
graphics
- the graphicssource
- true, if the shape is used for a source point; false if the shape is used for a target point.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.