|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uci.gef.Fig
|
+--uci.gef.FigEdge
Abastract Fig class for representing edges between ports.
FigEdgeLine,
FigEdgeRectiline, Serialized Form| Inner Class Summary | |
protected class |
FigEdge.PathItem
|
| Field Summary | |
protected ArrowHead |
_arrowHeadEnd
The ArrowHead at the end of the line |
protected ArrowHead |
_arrowHeadStart
The ArrowHead at the start of the line |
protected FigNode |
_destFigNode
FigNode presenting the edge's to-port's parent node. |
protected Fig |
_destPortFig
Fig presenting the edge's to-port. |
protected Fig |
_fig
Fig that presents the edge. |
protected boolean |
_highlight
True when the FigEdgde should be drawn highlighted. |
protected Vector |
_pathItems
The items that are accumulated along the path, a vector. |
protected FigNode |
_sourceFigNode
FigNode presenting the edge's from-port's parent node. |
protected Fig |
_sourcePortFig
Fig presenting the edge's from-port . |
protected boolean |
_useNearest
True if the FigEdge should be drawn from the nearest point of each port Fig. |
| Fields inherited from class uci.gef.Fig |
_dashes,
_fillColor,
_filled,
_group,
_h,
_layer,
_lineColor,
_lineWidth,
_locked,
_w,
_x,
_y,
BORDER,
DASH_ARRAYS,
DASHED_CHOICES,
MIN_SIZE |
| Constructor Summary | |
FigEdge()
Contruct a new FigEdge without any underlying edge. |
|
FigEdge(Fig s,
Fig d,
FigNode sfn,
FigNode dfn,
Object edge)
Contruct a new FigEdge with the given source and destination port figs and FigNodes. |
|
| Method Summary | |
void |
addPathItem(Fig newFig,
PathConv newPath)
Add a new path item to this FigEdge. |
void |
calcBounds()
Update my bounding box |
void |
cleanUp()
|
protected void |
computeRoute()
Method to compute the route a FigEdge should follow. |
boolean |
contains(int x,
int y)
|
void |
delete()
|
boolean |
getBetweenNearestPoints()
Get and set the flag about using Fig connection points rather than centers. |
Rectangle |
getBounds()
Reply the bounding box for this FigEdge. |
boolean |
getDashed()
|
ArrowHead |
getDestArrowHead()
Get the ArrowHead at the end of this FigEdge. |
Fig |
getDestFigNode()
|
Fig |
getDestPortFig()
|
Fig |
getFig()
Return the Fig that will be drawn. |
Point |
getFirstPoint()
|
boolean |
getHighlight()
|
Point |
getLastPoint()
|
Color |
getLineColor()
|
int |
getLineWidth()
|
int |
getNumPoints()
|
Fig |
getPathItem(PathConv pointOnPath)
Return the path item on this FigEdge closest to the given location. |
Vector |
getPathItemsRaw()
Return the vector of path items on this FigEdge. |
int |
getPerimeterLength()
|
Point[] |
getPoints()
|
Point |
getPoints(int i)
|
ArrowHead |
getSourceArrowHead()
Get the ArrowHead at the start of this FigEdge. |
Fig |
getSourceFigNode()
|
Fig |
getSourcePortFig()
|
int[] |
getXs()
|
int[] |
getYs()
|
boolean |
hit(Rectangle r)
|
Fig |
hitFig(Rectangle r)
|
boolean |
intersects(Rectangle r)
|
boolean |
isReshapable()
|
boolean |
isResizable()
|
boolean |
isRotatable()
|
protected abstract Fig |
makeEdgeFig()
Abstract method to make the Fig that will be drawn for this FigEdge. |
void |
paint(Graphics g)
Paint this FigEdge. |
protected void |
paintArrowHeads(Graphics g)
Paint ArrowHeads on this FigEdge. |
void |
paintHighlightLine(Graphics g,
int x1,
int y1,
int x2,
int y2)
|
protected void |
paintPathItems(Graphics g)
Paint any labels that are located relative to this FigEdge. |
void |
postLoad()
After the file is loaded, re-establish any connections from the model to the Figs |
void |
propertyChange(PropertyChangeEvent pce)
|
void |
removePathItem(FigEdge.PathItem goneItem)
Removes the given path item. |
void |
setBetweenNearestPoints(boolean un)
|
void |
setDashed(boolean d)
|
void |
setDestArrowHead(ArrowHead newArrow)
Set the ArrowHead at the end of this FigEdge. |
void |
setDestFigNode(FigNode fn)
Set the FigNode reprenting this FigEdge's to-node. |
void |
setDestPortFig(Fig fig)
Get the Fig reprenting this FigEdge's to-port. |
void |
setFig(Fig f)
|
void |
setHighlight(boolean b)
|
void |
setLineColor(Color c)
|
void |
setLineWidth(int w)
|
void |
setNumPoints(int npoints)
|
void |
setOwner(Object own)
Set the edge (some object in an underlying model) that this FigEdge should represent. |
void |
setPoints(Handle h,
int x,
int y)
|
void |
setPoints(int i,
int x,
int y)
|
void |
setPoints(Point[] ps)
|
void |
setSourceArrowHead(ArrowHead newArrow)
Set the ArrowHead at the start of this FigEdge. |
void |
setSourceFigNode(FigNode fn)
Set the FigNode reprenting this FigEdge's from-node. |
void |
setSourcePortFig(Fig fig)
Get the Fig reprenting this FigEdge's from-port. |
void |
setXs(int[] xs)
|
void |
setYs(int[] ys)
|
void |
stuffPointAlongPerimeter(int dist,
Point res)
|
void |
translateEdge(int dx,
int dy)
|
void |
updatePathItemLocations()
|
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected Fig _sourcePortFig
protected Fig _destPortFig
protected FigNode _sourceFigNode
protected FigNode _destFigNode
protected Fig _fig
protected boolean _useNearest
protected boolean _highlight
protected ArrowHead _arrowHeadStart
protected ArrowHead _arrowHeadEnd
protected Vector _pathItems
| Constructor Detail |
public FigEdge(Fig s,
Fig d,
FigNode sfn,
FigNode dfn,
Object edge)
public FigEdge()
| Method Detail |
protected abstract Fig makeEdgeFig()
public Fig getFig()
public void setFig(Fig f)
public void setSourcePortFig(Fig fig)
public Fig getSourcePortFig()
public void setDestPortFig(Fig fig)
public Fig getDestPortFig()
public Fig getSourceFigNode()
public Fig getDestFigNode()
public void setSourceFigNode(FigNode fn)
public void setDestFigNode(FigNode fn)
public Fig hitFig(Rectangle r)
public void setOwner(Object own)
public ArrowHead getSourceArrowHead()
public ArrowHead getDestArrowHead()
public void setSourceArrowHead(ArrowHead newArrow)
public void setDestArrowHead(ArrowHead newArrow)
public Vector getPathItemsRaw()
public Fig getPathItem(PathConv pointOnPath)
public void addPathItem(Fig newFig,
PathConv newPath)
public void removePathItem(FigEdge.PathItem goneItem)
public boolean getBetweenNearestPoints()
public void setBetweenNearestPoints(boolean un)
protected void computeRoute()
public Rectangle getBounds()
public void calcBounds()
public void updatePathItemLocations()
public boolean contains(int x,
int y)
public boolean intersects(Rectangle r)
public boolean hit(Rectangle r)
public int getPerimeterLength()
public void stuffPointAlongPerimeter(int dist,
Point res)
public void setPoints(Point[] ps)
public Point[] getPoints()
public void setPoints(int i,
int x,
int y)
public void setPoints(Handle h,
int x,
int y)
public Point getFirstPoint()
public Point getLastPoint()
public Point getPoints(int i)
public int getNumPoints()
public void setNumPoints(int npoints)
public int[] getXs()
public void setXs(int[] xs)
public int[] getYs()
public void setYs(int[] ys)
public void translateEdge(int dx,
int dy)
public void setLineColor(Color c)
public Color getLineColor()
public void setLineWidth(int w)
public int getLineWidth()
public void setDashed(boolean d)
public boolean getDashed()
public boolean isResizable()
public boolean isReshapable()
public boolean isRotatable()
public void setHighlight(boolean b)
public boolean getHighlight()
protected void paintArrowHeads(Graphics g)
protected void paintPathItems(Graphics g)
public void paintHighlightLine(Graphics g,
int x1,
int y1,
int x2,
int y2)
public void paint(Graphics g)
public void propertyChange(PropertyChangeEvent pce)
public void postLoad()
public void cleanUp()
public void delete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||