|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectalun.viewgraph.AbstractMappable
public abstract class AbstractMappable
An abstract class that defines what is needed of an object in order to be able to set coordinates and draw it.
| Constructor Summary | |
|---|---|
AbstractMappable()
|
|
| Method Summary | |
|---|---|
abstract boolean |
contains(double x,
double y)
Returns true iff the given point is contained in the drawn image of the object. |
java.awt.Color |
getColor()
Gets the colour of the object. |
java.awt.Color |
getOutline()
Gets the colour of the outline. |
double |
getX()
|
double |
getY()
|
boolean |
isMobile()
|
abstract void |
paint(java.awt.Graphics g)
Draws the object to the graphics object. |
void |
setColor(java.awt.Color cc)
Sets the colour of the object. |
void |
setHighLighted(boolean b)
|
void |
setMobile(boolean b)
|
void |
setOutline(java.awt.Color cc)
Sets the colour of the outline. |
void |
setX(double a)
|
void |
setY(double a)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMappable()
| Method Detail |
|---|
public abstract boolean contains(double x,
double y)
contains in interface Mappablepublic abstract void paint(java.awt.Graphics g)
paint in interface Mappablepublic final double getX()
getX in interface CartesianPointpublic final double getY()
getY in interface CartesianPointpublic final void setX(double a)
setX in interface CartesianPointpublic final void setY(double a)
setY in interface CartesianPointpublic final boolean isMobile()
isMobile in interface Mappablepublic final void setMobile(boolean b)
setMobile in interface Mappablepublic void setHighLighted(boolean b)
setHighLighted in interface Mappablepublic void setColor(java.awt.Color cc)
public java.awt.Color getColor()
public void setOutline(java.awt.Color cc)
public java.awt.Color getOutline()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||