|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgraphics.AbstractGraphic
graphics.AbstractColorableGraphic
public abstract class AbstractColorableGraphic
Extends AbstractGraphic to add methods that are relevant to Color
| Constructor Summary | |
|---|---|
AbstractColorableGraphic()
Creates a new instance of AbstractColorableGraphic |
|
| Method Summary | |
|---|---|
java.awt.Color |
getColor()
Gets the Color of this Graphic |
void |
paint(java.awt.Graphics2D gs)
The Paint method partially overrides the superclass method to set the color of the Graphics2D object |
void |
setColor(java.awt.Color c)
Sets the Color of this Graphic |
| Methods inherited from class graphics.AbstractGraphic |
|---|
addMouseListener, addMouseMotionListener, contains, getBounds, getCenterLocation, getContainer, getDimension, getLocation, getMouseListeners, getMouseMotionListeners, getMovement, getRotation, intersects, move, rotate, setCenterLocation, setContainer, setDimension, setLocation, setMovement, setRotation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface graphics.IGraphic |
|---|
actualPaint, addMouseListener, addMouseMotionListener, contains, getBounds, getContainer, getMouseListeners, getMouseMotionListeners, getMovement, getShape, intersects, setContainer, setMovement |
| Methods inherited from interface graphics.ISizeable |
|---|
getDimension, setDimension |
| Methods inherited from interface graphics.CenterLocatable |
|---|
getCenterLocation, setCenterLocation |
| Methods inherited from interface graphics.ILocatable |
|---|
getLocation, move, setLocation |
| Methods inherited from interface graphics.IRotatable |
|---|
getRotation, rotate, setRotation |
| Constructor Detail |
|---|
public AbstractColorableGraphic()
| Method Detail |
|---|
public java.awt.Color getColor()
getColor in interface IColorableIColorable.getColor()public void setColor(java.awt.Color c)
setColor in interface IColorablec - The Color to set the graphic to beIColorable.setColor(java.awt.Color)public void paint(java.awt.Graphics2D gs)
paint in interface IGraphicpaint in class AbstractGraphicgs - The Graphics2D object which will paint this graphicIGraphic.paint(java.awt.Graphics2D)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||