Package com.nt.udc.admin.client.gui
Class RoutingLine
java.lang.Object
java.awt.geom.Line2D
java.awt.geom.Line2D.Double
com.nt.udc.admin.client.gui.RoutingLine
- All Implemented Interfaces:
Shape
,Serializable
,Cloneable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Line2D
Line2D.Double, Line2D.Float
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
boolean
Fields inherited from class java.awt.geom.Line2D.Double
x1, x2, y1, y2
-
Constructor Summary
ConstructorsConstructorDescriptionRoutingLine
(double x1, double y1, double x2, double y2) RoutingLine
(double x1, double y1, double x2, double y2, NodeIcon src, NodeIcon dest) RoutingLine
(NodeIcon src, NodeIcon dest) -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawSelf
(Graphics2D g2, Color bgColor) boolean
equals
(RoutingLine compare) void
erase
(Graphics2D g2, Color bgColor) boolean
boolean
void
setDestLine
(Line2D.Double dest) void
setDestNode
(NodeIcon dest) void
setDrawLabel
(boolean draw) void
setGroupSelected
(boolean sel) void
setRoutFunc
(String func) void
setSelected
(boolean sel) void
setSrcLine
(Line2D.Double src) void
setSrcNode
(NodeIcon src) Methods inherited from class java.awt.geom.Line2D.Double
getBounds2D, getP1, getP2, getX1, getX2, getY1, getY2, setLine
Methods inherited from class java.awt.geom.Line2D
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine
-
Field Details
-
isSelected
public boolean isSelected -
isGroupSelected
public boolean isGroupSelected -
hasAttrs
public boolean hasAttrs -
labelRect
-
srcHandle
-
destHandle
-
-
Constructor Details
-
RoutingLine
public RoutingLine(double x1, double y1, double x2, double y2) -
RoutingLine
-
RoutingLine
-
-
Method Details
-
isSelected
public boolean isSelected() -
isGroupSelected
public boolean isGroupSelected() -
getSrcNode
-
getDestNode
-
getSrcLine
-
getDestLine
-
getRoutFunc
-
setSelected
public void setSelected(boolean sel) -
setGroupSelected
public void setGroupSelected(boolean sel) -
setSrcNode
-
setDestNode
-
setSrcLine
-
setDestLine
-
setDrawLabel
public void setDrawLabel(boolean draw) -
setRoutFunc
-
drawSelf
-
erase
-
equals
-