|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfig.objects.FigPolyline
hades.symbols.ClockArm
ClockArm: a subclass of FigPolyline used for animated analog clocks or analog meters on SimObject symbols.
This class is realized as a subclass of FigPolyline with specific attributes: color dark green, no fill, layer 15.
Field Summary | |
protected double |
angle
|
protected int |
radius
|
protected int |
x
|
protected int |
y
|
Fields inherited from class jfig.objects.FigPolyline |
attribs, bbox, comment, debug, is_closed, min_i, min_num_points, painter, renderer, selected, showPoints, syncRedrawFlag, trafo, visible, wcp |
Constructor Summary | |
ClockArm()
construct an empty ClockArm. |
Method Summary | |
protected void |
build_attribs()
|
FigObject |
copy()
build a copy of this FigPolyline. |
boolean |
initialize(java.lang.String s)
initialize an ClockArm from a String. |
void |
move(int dx,
int dy)
method stub for the move() method |
void |
setColor(java.awt.Color c)
|
void |
setLineWidth(int width)
set the line width to one of the predefined FIG widths, e.g. |
void |
setRotationAngle(double angle)
|
java.lang.String |
toString()
toString() - the usual info method |
void |
writeAsResource(java.io.PrintWriter ps)
write a complete text representation of this object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int x
protected int y
protected int radius
protected double angle
Constructor Detail |
public ClockArm()
Method Detail |
public boolean initialize(java.lang.String s)
initialize
in interface FigObject
initialize
in class FigPolyline
protected void build_attribs()
public void setRotationAngle(double angle)
public void setLineWidth(int width)
FigPolyline
setLineWidth
in class FigPolyline
public void setColor(java.awt.Color c)
public void writeAsResource(java.io.PrintWriter ps)
FigObject
writeAsResource
in interface FigObject
writeAsResource
in class FigPolyline
public FigObject copy()
FigPolyline
copy
in interface FigObject
copy
in class FigPolyline
public void move(int dx, int dy)
FigObject
move
in interface FigObject
move
in class FigPolyline
public java.lang.String toString()
toString
in interface FigObject
toString
in class FigPolyline
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |