|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jdraw.jdraw.GraphicObject
Class GraphicObject is the class that holds a node in the Graphics List. Each node contains a Shape object, a Color object, and will ultimately hold a z-value of some sort, once I've figured out layers.
| Field Summary | |
protected java.awt.Color |
color
A Color object holds the color value of this Graphic. |
protected java.util.Vector |
controlPoints
A Vector holding all of the control Points of this.shape. |
protected int |
fillType
|
protected java.awt.Shape |
shape
A Shape object holds the Shape object of this Graphic. |
protected int |
shapeType
|
| Constructor Summary | |
GraphicObject()
Construct this with a null Shape and a null Color. |
|
GraphicObject(java.awt.Shape s,
java.awt.Color c,
int f,
java.util.Vector cPoints)
Construct this with the given Shape and Color objects. |
|
GraphicObject(java.awt.Shape s,
java.awt.Color c,
int f,
java.util.Vector cPoints,
int sType)
Construct this with the given Shape and Color objects. |
|
| Method Summary | |
java.awt.Color |
getColor()
Returns this.color. |
java.util.Vector |
getControlPoints()
|
int |
getFillType()
|
java.awt.Shape |
getShape()
Returns this.shape. |
int |
getShapeType()
|
boolean |
isPointOnBorder(java.awt.Point tempPoint)
Method isPointOnBorder(Point) returns a boolean value representing whether the paramater Point resides on the border of this.shape. |
void |
setColor(java.awt.Color c)
Set this.color to the passed in Color. |
void |
setFillType(int fType)
|
void |
setShape(java.awt.Shape s)
Set this.shape to the passed in Shape. |
void |
setShapeType(int s)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.awt.Shape shape
protected java.awt.Color color
protected java.util.Vector controlPoints
protected int shapeType
protected int fillType
| Constructor Detail |
public GraphicObject(java.awt.Shape s,
java.awt.Color c,
int f,
java.util.Vector cPoints,
int sType)
public GraphicObject(java.awt.Shape s,
java.awt.Color c,
int f,
java.util.Vector cPoints)
public GraphicObject()
| Method Detail |
public boolean isPointOnBorder(java.awt.Point tempPoint)
public void setShape(java.awt.Shape s)
public void setColor(java.awt.Color c)
public java.awt.Shape getShape()
public java.awt.Color getColor()
public java.util.Vector getControlPoints()
public int getShapeType()
public void setShapeType(int s)
public int getFillType()
public void setFillType(int fType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||