moebiusViewer.shape
Class PointSet

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

public class PointSet
extends AbstractPointSet

See Also:
Serialized Form

Field Summary
 
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
PointSet()
           
PointSet(Complex[] coords)
           
PointSet(ComplexProjective1[] coords)
           
PointSet(double[] coords)
           
PointSet(int n)
           
 
Method Summary
 void assignCoords(Complex[] coords)
          assign all complex coords at once
 void assignCoords(ComplexProjective1[] coords)
          assign all coords at once
 void assignCoords(double[] coords)
          assign all euclidean coords at once
 void draw(MoebiusGraphics g)
           
 Complex[] getCoords()
           
 void getCoords(Complex[] coords)
           
 Complex getCoords(int index)
           
 void getCoords(int index, Complex coords)
           
 java.awt.Color getDefaultPointColor()
           
 int getNumOfPoints()
           
 java.awt.Color[] getPointColor()
           
 java.awt.Color getPointColor(int anIndex)
           
 ComplexProjective1[] getProjectiveCoords()
           
 void getProjectiveCoords(ComplexProjective1[] coords)
           
 ComplexProjective1 getProjectiveCoords(int index)
           
 void getProjectiveCoords(int index, ComplexProjective1 coords)
           
 double[] getX()
           
 double getX(int index)
           
 double[] getXY()
           
 double[] getY()
           
 double getY(int index)
           
 boolean isLabelPointsWithIndex()
           
 void set(double aX, double aY, int anIndex)
           
 void set(int anIndex, double aX, double aY)
          Deprecated.  
 void setCoords(Complex[] coords)
          Deprecated.  
 void setCoords(int index, Complex coords)
           
 void setCoords(int index, double x, double y)
          set euclidean Coords (x, y) at Index index
 void setDefaultPointColor(java.awt.Color color)
           
 void setLabelPointsWithIndex(boolean b)
           
 void setNumOfPoints(int newNumOfPoints)
           
protected  void setNumOfPoints(int newNumOfPoints, boolean assignDefault)
          this must not fire property change.
 void setPointColor(java.awt.Color[] aPointColor)
           
 void setPointColor(int anIndex, java.awt.Color aPointColor)
           
 void setProjectiveCoords(int index, ComplexProjective1 z)
           
 void setProjectiveCoords(int index, double aRe1, double aIm1, double bRe1, double bIm1)
           
 void setX(double[] x)
           
 void setX(int index, double x)
           
 void setXY(double[] aXY)
          Deprecated.  
 void setXY(int anIndex, double aX, double aY)
          Deprecated.  
 void setY(double[] y)
           
 void setY(int index, double y)
           
 
Methods inherited from class moebiusViewer.shape.AbstractPointSet
aIm, aRe, bIm, bRe, drawPoints, 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
 

Constructor Detail

PointSet

public PointSet()

PointSet

public PointSet(int n)

PointSet

public PointSet(double[] coords)

PointSet

public PointSet(Complex[] coords)

PointSet

public PointSet(ComplexProjective1[] coords)
Method Detail

isLabelPointsWithIndex

public boolean isLabelPointsWithIndex()
Overrides:
isLabelPointsWithIndex in class AbstractPointSet

setLabelPointsWithIndex

public void setLabelPointsWithIndex(boolean b)
Overrides:
setLabelPointsWithIndex in class AbstractPointSet

getNumOfPoints

public int getNumOfPoints()
Overrides:
getNumOfPoints in class AbstractPointSet

setNumOfPoints

public void setNumOfPoints(int newNumOfPoints)
Overrides:
setNumOfPoints in class AbstractPointSet

setNumOfPoints

protected void setNumOfPoints(int newNumOfPoints,
                              boolean assignDefault)
Description copied from class: AbstractPointSet
this must not fire property change.

Overrides:
setNumOfPoints in class AbstractPointSet

setProjectiveCoords

public void setProjectiveCoords(int index,
                                double aRe1,
                                double aIm1,
                                double bRe1,
                                double bIm1)
Overrides:
setProjectiveCoords in class AbstractPointSet

setProjectiveCoords

public void setProjectiveCoords(int index,
                                ComplexProjective1 z)
Overrides:
setProjectiveCoords in class AbstractPointSet

getProjectiveCoords

public void getProjectiveCoords(ComplexProjective1[] coords)
Overrides:
getProjectiveCoords in class AbstractPointSet

getProjectiveCoords

public ComplexProjective1[] getProjectiveCoords()

assignCoords

public void assignCoords(ComplexProjective1[] coords)
Description copied from class: AbstractPointSet
assign all coords at once

Overrides:
assignCoords in class AbstractPointSet

getProjectiveCoords

public void getProjectiveCoords(int index,
                                ComplexProjective1 coords)
Overrides:
getProjectiveCoords in class AbstractPointSet

getProjectiveCoords

public ComplexProjective1 getProjectiveCoords(int index)
Overrides:
getProjectiveCoords in class AbstractPointSet

getCoords

public Complex getCoords(int index)
Overrides:
getCoords in class AbstractPointSet

setCoords

public void setCoords(int index,
                      Complex coords)
Overrides:
setCoords in class AbstractPointSet

getCoords

public void getCoords(int index,
                      Complex coords)
Overrides:
getCoords in class AbstractPointSet

getCoords

public void getCoords(Complex[] coords)
Overrides:
getCoords in class AbstractPointSet

getCoords

public Complex[] getCoords()

setCoords

public void setCoords(Complex[] coords)
Deprecated.  


assignCoords

public void assignCoords(Complex[] coords)
Description copied from class: AbstractPointSet
assign all complex coords at once

Overrides:
assignCoords in class AbstractPointSet

set

public void set(double aX,
                double aY,
                int anIndex)

set

public void set(int anIndex,
                double aX,
                double aY)
Deprecated.  


setXY

public void setXY(int anIndex,
                  double aX,
                  double aY)
Deprecated.  


setCoords

public void setCoords(int index,
                      double x,
                      double y)
Description copied from class: AbstractPointSet
set euclidean Coords (x, y) at Index index

Overrides:
setCoords in class AbstractPointSet

getX

public double getX(int index)
Overrides:
getX in class AbstractPointSet

setX

public void setX(int index,
                 double x)
Overrides:
setX in class AbstractPointSet

getX

public double[] getX()
Overrides:
getX in class AbstractPointSet

setX

public void setX(double[] x)
Overrides:
setX in class AbstractPointSet

getY

public double getY(int index)
Overrides:
getY in class AbstractPointSet

setY

public void setY(int index,
                 double y)
Overrides:
setY in class AbstractPointSet

getY

public double[] getY()
Overrides:
getY in class AbstractPointSet

setY

public void setY(double[] y)
Overrides:
setY in class AbstractPointSet

getXY

public double[] getXY()
Overrides:
getXY in class AbstractPointSet

setXY

public void setXY(double[] aXY)
Deprecated.  


assignCoords

public void assignCoords(double[] coords)
Description copied from class: AbstractPointSet
assign all euclidean coords at once

Overrides:
assignCoords in class AbstractPointSet

getPointColor

public java.awt.Color[] getPointColor()
Overrides:
getPointColor in class AbstractPointSet

setPointColor

public void setPointColor(java.awt.Color[] aPointColor)
Overrides:
setPointColor in class AbstractPointSet

getPointColor

public java.awt.Color getPointColor(int anIndex)
Overrides:
getPointColor in class AbstractPointSet

setPointColor

public void setPointColor(int anIndex,
                          java.awt.Color aPointColor)
Overrides:
setPointColor in class AbstractPointSet

getDefaultPointColor

public java.awt.Color getDefaultPointColor()
Overrides:
getDefaultPointColor in class AbstractPointSet

setDefaultPointColor

public void setDefaultPointColor(java.awt.Color color)
Overrides:
setDefaultPointColor in class AbstractPointSet

draw

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