http://www.jpicedt.org

jpicedt.graphic.view.highlighter
Class CircleHighlighter

java.lang.Object
  extended by jpicedt.graphic.view.highlighter.DefaultHighlighter
      extended by jpicedt.graphic.view.highlighter.CircleHighlighter
All Implemented Interfaces:
Highlighter

public class CircleHighlighter
extends DefaultHighlighter

a Highlighter for rendering circles. This comprises the three control-points that make sense with PicCircleFrom3Points.

Since:
jPicEdt 1.4
Version:
$Id: CircleHighlighter.java,v 1.4 2013/03/27 06:54:46 vincentb1 Exp $
Author:
Sylvain Reynal

Field Summary
 
Fields inherited from class jpicedt.graphic.view.highlighter.DefaultHighlighter
bounds, element, factory, pointIndexIterator, ptBuffer, rectBuffer, shape
 
Constructor Summary
CircleHighlighter(PicCircleFrom3Points circle, DefaultHighlighterFactory f)
          construct a new Highlighter for the given ellipse
 
Method Summary
 PointIndexIterator getControlPointsIterator()
          Returns an iterator over control-points that should be displayed by the hightligher.
 PicCircleFrom3Points getElement()
          returns the higlighted Element
 
Methods inherited from class jpicedt.graphic.view.highlighter.DefaultHighlighter
changedUpdate, getBounds, getHighlighterFactory, hitTest, intersect, paint, syncBounds, syncShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircleHighlighter

public CircleHighlighter(PicCircleFrom3Points circle,
                         DefaultHighlighterFactory f)
construct a new Highlighter for the given ellipse

Method Detail

getElement

public PicCircleFrom3Points getElement()
Description copied from interface: Highlighter
returns the higlighted Element

Specified by:
getElement in interface Highlighter
Overrides:
getElement in class DefaultHighlighter
Returns:
the higlighted Element.

getControlPointsIterator

public PointIndexIterator getControlPointsIterator()
Returns an iterator over control-points that should be displayed by the hightligher. This default implementation iterates over all control-points.

Overrides:
getControlPointsIterator in class DefaultHighlighter

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org