moebiusViewer.shape
Class AbstractShape

java.lang.Object
  extended bymoebiusViewer.shape.AbstractShape
All Implemented Interfaces:
java.lang.Cloneable, MoebiusShape, java.io.Serializable
Direct Known Subclasses:
AbstractPointSet, Arc, Circle, ColorGradientBox, CoordinateSystem, Graph, Grid, LineSegment, MoebiusTransformer, MultipleMoebiusTransformer, Point, ShapeSet, Text

public abstract class AbstractShape
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, MoebiusShape

See Also:
Serialized Form

Field Summary
static double EPS
           
static double EPSSQR
           
protected  java.beans.PropertyChangeSupport propertyChangeSupport
           
protected  java.util.Vector toolList
           
 
Constructor Summary
AbstractShape()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 java.lang.Object clone()
           
 void dontFirePropertyChange()
           
 void draw(MoebiusGraphics context)
           
static boolean equals(double x1, double x2)
           
 void firePropertyChange(java.lang.String propertyName)
           
 void firePropertyChange(java.lang.String propertyName, java.lang.Object newValue, java.lang.Object oldValue)
           
 java.awt.Color getColor()
          Get the value of color.
 boolean getFilled()
          Get the value of filled.
 java.lang.String getLabel()
          Get the value of label.
 double getLineWidth()
          Get the value of lineWidth.
 boolean getPickable()
           
 int getPointOutline()
          Get the value of pointOutline.
 int getPointRadius()
          Get the value of pointRadius.
 boolean getShowLabel()
          Get the value of showLabel.
 java.lang.String getString()
           
 java.util.Vector getTools()
           
 boolean isDoFirePropertyChange()
           
 boolean isPickable()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void reset(MoebiusGraphics context)
           
 void setColor(java.awt.Color v)
          Set the value of color.
 void setDoFirePropertyChange(boolean b)
           
 void setFilled(boolean v)
          Set the value of filled.
 void setLabel(java.lang.String v)
          Set the value of label.
 void setLineWidth(double v)
          Set the value of lineWidth.
 void setPickable(boolean b)
           
 void setPointOutline(int v)
          Set the value of pointOutline.
 void setPointRadius(int v)
          Set the value of pointRadius.
 void setShowLabel(boolean v)
          Set the value of showLabel.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyChangeSupport

protected java.beans.PropertyChangeSupport propertyChangeSupport

EPS

public static final double EPS
See Also:
Constant Field Values

EPSSQR

public static final double EPSSQR
See Also:
Constant Field Values

toolList

protected java.util.Vector toolList
Constructor Detail

AbstractShape

public AbstractShape()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName)

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object newValue,
                               java.lang.Object oldValue)

isDoFirePropertyChange

public boolean isDoFirePropertyChange()

setDoFirePropertyChange

public void setDoFirePropertyChange(boolean b)

dontFirePropertyChange

public void dontFirePropertyChange()

getString

public java.lang.String getString()

isPickable

public boolean isPickable()

getPickable

public boolean getPickable()

setPickable

public void setPickable(boolean b)

getColor

public java.awt.Color getColor()
Get the value of color.

Returns:
Value of color.

setColor

public void setColor(java.awt.Color v)
Set the value of color.

Parameters:
v - Value to assign to color.

getLabel

public java.lang.String getLabel()
Get the value of label.

Returns:
Value of label.

setLabel

public void setLabel(java.lang.String v)
Set the value of label.

Parameters:
v - Value to assign to label.

getShowLabel

public boolean getShowLabel()
Get the value of showLabel.

Returns:
Value of showLabel.

setShowLabel

public void setShowLabel(boolean v)
Set the value of showLabel.

Parameters:
v - Value to assign to showLabel.

getPointRadius

public int getPointRadius()
Get the value of pointRadius.

Returns:
Value of pointRadius.

setPointRadius

public void setPointRadius(int v)
Set the value of pointRadius.

Parameters:
v - Value to assign to pointRadius.

getPointOutline

public int getPointOutline()
Get the value of pointOutline. @return Value of pointOutline.


setPointOutline

public void setPointOutline(int v)
Set the value of pointOutline. @param v Value to assign to pointOutline.


getLineWidth

public double getLineWidth()
Get the value of lineWidth. @return Value of lineWidth.


setLineWidth

public void setLineWidth(double v)
Set the value of lineWidth. @param v Value to assign to lineWidth.


getFilled

public boolean getFilled()
Get the value of filled.

Returns:
Value of filled.

setFilled

public void setFilled(boolean v)
Set the value of filled.

Parameters:
v - Value to assign to filled.

getTools

public java.util.Vector getTools()
Specified by:
getTools in interface MoebiusShape

reset

public void reset(MoebiusGraphics context)

draw

public void draw(MoebiusGraphics context)
Specified by:
draw in interface MoebiusShape

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

equals

public static boolean equals(double x1,
                             double x2)