hades.symbols
Class ClockArm

java.lang.Object
  extended byjfig.objects.FigPolyline
      extended byhades.symbols.ClockArm
All Implemented Interfaces:
FigDrawable, FigObject, java.io.Serializable

public class ClockArm
extends FigPolyline
implements java.io.Serializable

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.

See Also:
Serialized Form

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)
           
 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 jfig.objects.FigPolyline
appendPoint, calc_dist, canRotate, createRenderer, deletePoint, deselect, get_min_dist_index, get_sc_bbox, getAttributes, getBbox, getComment, getLayer, getMinDistPoint1, getMinDistPoint2, getMinPerpendicularDistance, getMovePointNeighbors, getNearestPoint, getNeighborPoints, getObjectPainter, getPoints, getPosition, getSegmentDistance, getSyncRedrawFlag, getText, getTrafo, indexOfNearestNeighbor, insertPoint, isClosed, isSelected, isShowPoints, isVisible, isVisible, keyPressed, manhattan, message, minDistance, minDistanceEuclid, mirrorX, mirrorY, movePoint, nearerPoint, numPoints, paint, paint, paintSave, printCost, rebuild, reset_debug, rotate, scale, select, set_debug, setAttributes, setComment, setFillColor, setFillStyle, setIsClosed, setLineColor, setLineStyle, setObjectPainter, setPoints, setSyncRedrawFlag, setText, setTrafo, setVisible, showPoints, supportsPointOps, update_bbox, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

protected int x

y

protected int y

radius

protected int radius

angle

protected double angle
Constructor Detail

ClockArm

public ClockArm()
construct an empty ClockArm.

Method Detail

initialize

public boolean initialize(java.lang.String s)
initialize an ClockArm from a String. The String contains the center point coordinates, the length of this ClockArm and the initial rotation angle (measured counterclockwise from 3'00 o'clock): x y radius angle

Specified by:
initialize in interface FigObject
Overrides:
initialize in class FigPolyline

build_attribs

protected void build_attribs()

setRotationAngle

public void setRotationAngle(double angle)

setLineWidth

public void setLineWidth(int width)
Overrides:
setLineWidth in class FigPolyline

setColor

public void setColor(java.awt.Color c)

writeAsResource

public void writeAsResource(java.io.PrintWriter ps)
Description copied from interface: FigObject
write a complete text representation of this object

Specified by:
writeAsResource in interface FigObject
Overrides:
writeAsResource in class FigPolyline

copy

public FigObject copy()
Description copied from class: FigPolyline
build a copy of this FigPolyline.

Specified by:
copy in interface FigObject
Overrides:
copy in class FigPolyline

move

public void move(int dx,
                 int dy)
Description copied from interface: FigObject
method stub for the move() method

Specified by:
move in interface FigObject
Overrides:
move in class FigPolyline

toString

public java.lang.String toString()
toString() - the usual info method

Specified by:
toString in interface FigObject
Overrides:
toString in class FigPolyline