public abstract class AbstractShape extends Object implements Serializable, Cloneable, MoebiusShape
Modifier and Type | Field and Description |
---|---|
static double |
EPS |
static double |
EPSSQR |
protected MoebiusShapeChangeSupport |
moebiusShapeChangeSupport |
protected PropertyChangeSupport |
propertyChangeSupport |
protected Vector |
toolList |
Constructor and Description |
---|
AbstractShape() |
Modifier and Type | Method and Description |
---|---|
void |
addMoebiusShapeChangeListener(MoebiusShapeChangeListener listener) |
void |
addPropertyChangeListener(PropertyChangeListener listener) |
Object |
clone() |
void |
dontFirePropertyChange() |
void |
draw(MoebiusGraphics context) |
static boolean |
equals(double x1,
double x2) |
void |
fireMoebiusShapeChange() |
void |
fireMoebiusShapeChange(int mask) |
void |
firePropertyChange(String propertyName) |
void |
firePropertyChange(String propertyName,
Object newValue,
Object oldValue) |
Color |
getColor()
Get the value of color.
|
boolean |
getFilled()
Get the value of filled.
|
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.
|
String |
getString() |
Vector |
getTools() |
boolean |
isDoFirePropertyChange() |
boolean |
isPickable() |
void |
removeMoebiusShapeChangeListener(MoebiusShapeChangeListener listener) |
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
reset(MoebiusGraphics context) |
void |
setColor(Color v)
Set the value of color.
|
void |
setDoFirePropertyChange(boolean b) |
void |
setFilled(boolean v)
Set the value of filled.
|
void |
setLabel(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.
|
public static final double EPS
public static final double EPSSQR
protected MoebiusShapeChangeSupport moebiusShapeChangeSupport
protected PropertyChangeSupport propertyChangeSupport
protected Vector toolList
public void addMoebiusShapeChangeListener(MoebiusShapeChangeListener listener)
public void addPropertyChangeListener(PropertyChangeListener listener)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void dontFirePropertyChange()
public void draw(MoebiusGraphics context)
draw
in interface MoebiusShape
public static boolean equals(double x1, double x2)
public void fireMoebiusShapeChange()
public void fireMoebiusShapeChange(int mask)
public void firePropertyChange(String propertyName)
public void firePropertyChange(String propertyName, Object newValue, Object oldValue)
public Color getColor()
public boolean getFilled()
public String getLabel()
public double getLineWidth()
public boolean getPickable()
public int getPointOutline()
public int getPointRadius()
public boolean getShowLabel()
public String getString()
public Vector getTools()
getTools
in interface MoebiusShape
public boolean isDoFirePropertyChange()
public boolean isPickable()
public void removeMoebiusShapeChangeListener(MoebiusShapeChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void reset(MoebiusGraphics context)
public void setColor(Color v)
v
- Value to assign to color.public void setDoFirePropertyChange(boolean b)
public void setFilled(boolean v)
v
- Value to assign to filled.public void setLabel(String v)
v
- Value to assign to label.public void setLineWidth(double v)
public void setPickable(boolean b)
public void setPointOutline(int v)
public void setPointRadius(int v)
v
- Value to assign to pointRadius.v
- < 0 means to use the default provided by the viewerpublic void setShowLabel(boolean v)
v
- Value to assign to showLabel.