moebiusViewer.shape
Class Polygon

java.lang.Object
  extended bymoebiusViewer.shape.AbstractShape
      extended bymoebiusViewer.shape.AbstractPointSet
          extended bymoebiusViewer.shape.PointSet
              extended bymoebiusViewer.shape.Polygon
All Implemented Interfaces:
java.lang.Cloneable, MoebiusShape, java.io.Serializable

public class Polygon
extends PointSet

See Also:
Serialized Form

Field Summary
protected  boolean closed
           
 
Fields inherited from class moebiusViewer.shape.AbstractPointSet
aIm, aRe, bIm, bRe, consistent, defaultPointColor, labelPointsWithIndex, numOfPoints, pointColor
 
Fields inherited from class moebiusViewer.shape.AbstractShape
EPS, EPSSQR, propertyChangeSupport, toolList
 
Constructor Summary
Polygon()
           
Polygon(int n)
           
 
Method Summary
 void draw(MoebiusGraphics g)
           
protected  void drawPoints(MoebiusGraphics g)
           
 boolean isClosed()
           
 void setClosed(boolean v)
           
 
Methods inherited from class moebiusViewer.shape.PointSet
assignCoords, assignCoords, assignCoords, getCoords, getCoords, getCoords, getCoords, getDefaultPointColor, getNumOfPoints, getPointColor, getPointColor, getProjectiveCoords, getProjectiveCoords, getProjectiveCoords, getProjectiveCoords, getX, getX, getXY, getY, getY, isLabelPointsWithIndex, set, set, setCoords, setCoords, setCoords, setDefaultPointColor, setLabelPointsWithIndex, setNumOfPoints, setNumOfPoints, setPointColor, setPointColor, setProjectiveCoords, setProjectiveCoords, setX, setX, setXY, setXY, setY, setY
 
Methods inherited from class moebiusViewer.shape.AbstractPointSet
aIm, aRe, bIm, bRe, getCoordsAsArray1d, getLabelPointsWithIndex, getProjectiveCoordsAsArray1d, isConsistent, setColorOfAllPoints, setConsistent, setProjectiveCoords, updatePointColor
 
Methods inherited from class moebiusViewer.shape.AbstractShape
addPropertyChangeListener, clone, dontFirePropertyChange, equals, firePropertyChange, firePropertyChange, getColor, getFilled, getLabel, getLineWidth, getPickable, getPointOutline, getPointRadius, getShowLabel, getString, getTools, isDoFirePropertyChange, isPickable, removePropertyChangeListener, reset, setColor, setDoFirePropertyChange, setFilled, setLabel, setLineWidth, setPickable, setPointOutline, setPointRadius, setShowLabel
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

closed

protected boolean closed
Constructor Detail

Polygon

public Polygon()

Polygon

public Polygon(int n)
Method Detail

isClosed

public boolean isClosed()

setClosed

public void setClosed(boolean v)

draw

public void draw(MoebiusGraphics g)
Specified by:
draw in interface MoebiusShape
Overrides:
draw in class PointSet

drawPoints

protected void drawPoints(MoebiusGraphics g)
Overrides:
drawPoints in class AbstractPointSet