Class Polyline

  extended byjfig.objects.FigPolyline
      extended byhades.symbols.Polyline
All Implemented Interfaces:
FigDrawable, FigObject, java.io.Serializable
Direct Known Subclasses:
ColoredPolyline, HighlightWireSegment

public class Polyline
extends FigPolyline
implements java.io.Serializable

Polyline: used for polylines in SimObject symbols.

This class is a subclass of FigPolyline with specific attributes: layer 15, color green, no fill.

See Also:
Serialized Form

Field Summary
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
          construct an empty Polyline.
Method Summary
protected  void build_attribs()
 FigObject copy()
          build a copy of this FigPolyline.
 boolean initialize(java.lang.String s)
          initialize an Polyline 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.FigPolyline
appendPoint, calc_dist, canRotate, createRenderer, deletePoint, 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, insertPoint, isClosed, isSelected, isShowPoints, isVisible, isVisible, keyPressed, manhattan, message, minDistance, minDistanceEuclid, mirrorX, mirrorY, move, movePoint, nearerPoint, numPoints, paint, paint, paintSave, printCost, rebuild, reset_debug, rotate, scale, select, set_debug, setArrowMode, setAttributes, setBackwardArrow, setComment, setFillColor, setFillStyle, setForwardArrow, setIsClosed, setLayer, setLineColor, setLineStyle, setLineWidth, setObjectPainter, setPoints, setSyncRedrawFlag, setText, setTrafo, setVisible, showPoints, supportsPointOps, update_bbox, update, updateAttributes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public Polyline()
construct an empty Polyline.

Method Detail


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

Specified by:
initialize in interface FigObject
initialize in class FigPolyline


protected void build_attribs()


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
writeAsResource in class FigPolyline


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

Specified by:
copy in interface FigObject
copy in class FigPolyline


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

Specified by:
toString in interface FigObject
toString in class FigPolyline