hades.symbols
Class HighlightWireSegment

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

public class HighlightWireSegment
extends Polyline
implements java.io.Serializable

HighlightWireSegment: a highlighted WireSegment on the topmost layer.

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
HighlightWireSegment()
          construct an empty HighlightWireSegment.
 
Method Summary
protected  void build_attribs()
           
 double getEuclideanDistance(java.awt.Point wp)
          calculate and return the _relative_ euclidean distance between point wp and the first segment (points[0] and points[1]) of this wire segment.
 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 hades.symbols.Polyline
copy, initialize
 
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

HighlightWireSegment

public HighlightWireSegment()
construct an empty HighlightWireSegment.

Method Detail

build_attribs

protected void build_attribs()
Overrides:
build_attribs in class Polyline

getEuclideanDistance

public double getEuclideanDistance(java.awt.Point wp)
calculate and return the _relative_ euclidean distance between point wp and the first segment (points[0] and points[1]) of this wire segment. This method is typically used to find the wire segment nearest to a given point.


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 Polyline

toString

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

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