|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--i3mclient.shapeboard.Shape
A shape for ShapeBoard.
Constructor Summary | |
Shape()
Constructor. |
Method Summary | |
abstract void |
drawShape(GC gc)
Draw the shape. |
Rectangle |
getBoundingBox()
Return the bounding box around the shape. |
Color |
getColor()
Return the color of the shape. |
int |
getX()
Returns the horizontal position. |
int |
getX2()
Returns the second horizontal position. |
boolean |
getXOR()
Get the xorFlag. |
int |
getY()
Returns the vertical position. |
int |
getY2()
Returns the second vertical position. |
void |
setColor(Color setColor)
Set the color of the shape. |
void |
setX(int setX)
Set the horizontal position of the shape. |
void |
setX2(int setX2)
Set the second horizontal position of the shape. |
void |
setXOR(boolean xorFlag)
Set the xorFlag. |
void |
setY(int setY)
Set the vertical position of the shape. |
void |
setY2(int setY2)
Set the second vertical position of the shape. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Shape()
Method Detail |
public void setX(int setX)
setX
- The horizontal positionpublic void setY(int setY)
setY
- The vertical positionpublic int getX()
public int getY()
public void setX2(int setX2)
setX2
- The second horizontal positionpublic void setY2(int setY2)
setY2
- The second vertical positionpublic int getX2()
public int getY2()
public void setColor(Color setColor)
setColor
- The new color of the shapepublic Color getColor()
public void setXOR(boolean xorFlag)
xorFlag
- True or falsepublic boolean getXOR()
public Rectangle getBoundingBox()
public abstract void drawShape(GC gc)
gc
- The GC on which the shape will be drawn
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |