hades.symbols
Class Arc

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

public class Arc
extends FigArc
implements java.io.Serializable

Arc: used for 3-point arcs on Hades symbols.

This class is realized as a subclass of FigArc with specific attributes: layer 15, color green.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jfig.objects.FigArc
ccw, cw, direction, OPEN_ARC, PIE_WEDGE, r, radius, type, wcp_arc
 
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
Arc()
          construct an empty Arc.
 
Method Summary
protected  void build_attribs()
           
 FigObject copy()
          build a copy of this FigArc
 boolean initialize(java.lang.String s)
          initialize an Arc from a String.
 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.FigArc
appendPoint, build_arc, createRenderer, deletePoint, getCenter, getDirection, getInterpolatedArcPoints, insertPoint, rebuild, setPoints, update_bbox
 
Methods inherited from class jfig.objects.FigPolyline
calc_dist, canRotate, deselect, get_min_dist_index, get_sc_bbox, getAttributes, getBbox, getComment, getLayer, getMinDistPoint1, getMinDistPoint2, getMinPerpendicularDistance, getMinPerpendicularDistance, getMovePointNeighbors, getNearestPoint, getNeighborPoints, getObjectPainter, getPoints, getPosition, getSegmentDistance, getSyncRedrawFlag, getText, getTrafo, indexOfNearestNeighbor, isClosed, isSelected, isShowPoints, isVisible, isVisible, keyPressed, manhattan, message, minDistance, minDistanceEuclid, mirrorX, mirrorY, move, movePoint, nearerPoint, numPoints, paint, paint, paintSave, printCost, reset_debug, rotate, scale, select, set_debug, setArrowMode, setAttributes, setBackwardArrow, setComment, setFillColor, setFillStyle, setForwardArrow, setIsClosed, setLayer, setLineColor, setLineStyle, setLineWidth, setObjectPainter, setSyncRedrawFlag, setText, setTrafo, setVisible, showPoints, supportsPointOps, update, updateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Arc

public Arc()
construct an empty Arc.

Method Detail

initialize

public boolean initialize(java.lang.String s)
initialize an Arc from a String. The String contains the number of Points in this Arc, then the actual Point coordinates: n x0 y0 x1 y1 ... xn-1 yn-1

The methods returns true when all required data has been read.

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

build_attribs

protected void build_attribs()

copy

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

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

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

toString

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

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