|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kwfgrid.gwui.graphview.ArcEdgePainter
public class ArcEdgePainter
The painter for ArcEdges.
This painter has the following properties which can be configured via the application's theme:
| Field Summary | |
|---|---|
protected static java.awt.Dimension |
ARROW_SIZE
|
protected static java.lang.String |
ARROW_SIZE_KEY
|
protected static java.awt.Color |
COLOR
|
protected static java.lang.String |
COLOR_KEY
|
protected static java.awt.Font |
FONT
|
protected static java.lang.String |
FONT_KEY
|
static java.lang.String |
IDENTIFIER
|
protected static java.awt.Stroke |
STROKE
|
protected static java.lang.String |
STROKE_KEY
|
protected static java.awt.Color |
TEXT_COLOR
|
protected static java.lang.String |
TEXT_COLOR_KEY
|
| Constructor Summary | |
|---|---|
ArcEdgePainter()
|
|
| Method Summary | |
|---|---|
void |
getEdgeScreenBounds(JGraphPane grp,
Edge edge,
java.awt.Rectangle scr)
Returns the outer rectangle of the edge on screen. |
Group |
getGroup()
Get the group this member belongs to. |
java.lang.String |
getIdentifier()
Get a unique identifier of the member. |
void |
groupPropertyChanged(java.lang.String name,
java.lang.Object oldvalue,
java.lang.Object newvalue)
Called by this member's group if a property of the group changed. |
void |
paintEdge(JGraphPane grp,
java.awt.Graphics2D g,
Edge edge)
Paints the supplied edge. |
double |
screenDistanceFromEdge(JGraphPane grp,
Edge edge,
java.awt.Point point)
Returns the distance of the point to the edge. |
void |
setGroup(Group group)
Sets the group of this member. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String IDENTIFIER
protected static final java.lang.String ARROW_SIZE_KEY
protected static final java.lang.String COLOR_KEY
protected static final java.lang.String TEXT_COLOR_KEY
protected static final java.lang.String FONT_KEY
protected static final java.lang.String STROKE_KEY
protected static final java.awt.Dimension ARROW_SIZE
protected static final java.awt.Color COLOR
protected static final java.awt.Color TEXT_COLOR
protected static final java.awt.Font FONT
protected static final java.awt.Stroke STROKE
| Constructor Detail |
|---|
public ArcEdgePainter()
| Method Detail |
|---|
public Group getGroup()
Member
getGroup in interface Membernull if the member currently does not belong to a group.public java.lang.String getIdentifier()
Member
getIdentifier in interface Member
public void groupPropertyChanged(java.lang.String name,
java.lang.Object oldvalue,
java.lang.Object newvalue)
Member
groupPropertyChanged in interface Member
public void setGroup(Group group)
throws java.lang.IllegalArgumentException
Member
setGroup in interface Memberjava.lang.IllegalArgumentException
public void paintEdge(JGraphPane grp,
java.awt.Graphics2D g,
Edge edge)
EdgePainter
paintEdge in interface EdgePaintergrp - the graph paneg - the graphicsedge - the edge to paint
public void getEdgeScreenBounds(JGraphPane grp,
Edge edge,
java.awt.Rectangle scr)
EdgePainter
getEdgeScreenBounds in interface EdgePaintergrp - the graph paneedge - the edgescr - the rectangle receiving the edge's coordinates
public double screenDistanceFromEdge(JGraphPane grp,
Edge edge,
java.awt.Point point)
EdgePainter
screenDistanceFromEdge in interface EdgePaintergrp - the graph paneedge - the edgepoint - the point
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||