|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnchorShape
Represents an anchor shape which is rendered at the source and the target point of a connection widget where the shape is used. The same instance of a shape could be shared by multiple connection widgets.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Field Detail |
---|
static final AnchorShape NONE
static final AnchorShape TRIANGLE_HOLLOW
static final AnchorShape TRIANGLE_FILLED
static final AnchorShape TRIANGLE_OUT
Method Detail |
---|
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.
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |