|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmain.DrawableMapComponent
public abstract class DrawableMapComponent
The DrawableMapComponent class contains all needed information
on how to draw a map component. In particular it contains color and size of
the component on the map as well as its pixel coordinates.
| Field Summary | |
|---|---|
private java.awt.Color |
color
|
private int |
size
|
| Constructor Summary | |
|---|---|
protected |
DrawableMapComponent()
Creates a new, uninitialized DrawableMapComponent. |
| Method Summary | |
|---|---|
java.awt.Color |
getColor()
Returns the component's color on the map. |
int |
getSize()
Returns the component's size on the map. |
void |
setColor(java.awt.Color color)
Sets the component's color on the map. |
void |
setSize(int size)
Sets the component's size on the map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.awt.Color color
private int size
| Constructor Detail |
|---|
protected DrawableMapComponent()
DrawableMapComponent.
| Method Detail |
|---|
public void setColor(java.awt.Color color)
color - the component's weightColorpublic void setSize(int size)
size - the component's weightSizepublic java.awt.Color getColor()
public int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||