|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.client.ui.swing.widget.PMAreasGroup
public class PMAreasGroup
PMAreasGroup allows to group handle PicMap elements as single entity.
| Constructor Summary | |
|---|---|
PMAreasGroup()
|
|
| Method Summary | |
|---|---|
void |
addArea(PMElement ha)
Adds area to group |
void |
drawInto(java.awt.Graphics g)
Draws all elements in group into specifyed Graphics |
PMElement |
elementAt(int i)
Returns element at specific index. |
java.util.Enumeration<PMElement> |
elements()
Returns enumeration of all elements in group. |
java.awt.Rectangle |
getBounds()
Returns bounding box which includes all elements in group. |
void |
moveTo(int x,
int y)
Sets bounding box of all elements in group at (x, y) |
void |
removeAll()
Removes all elements from group |
boolean |
removeArea(PMElement ag)
Remoes area from group |
void |
setVisible(boolean v)
Sets visibility of all elements in roup to true or false. |
void |
translate(int x,
int y)
Translates all elements in group by x, y. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PMAreasGroup()
| Method Detail |
|---|
public void addArea(PMElement ha)
public boolean removeArea(PMElement ag)
public void removeAll()
public PMElement elementAt(int i)
public java.util.Enumeration<PMElement> elements()
public void translate(int x,
int y)
translate in interface PMElement
public void moveTo(int x,
int y)
public java.awt.Rectangle getBounds()
getBounds in interface PMElementpublic void drawInto(java.awt.Graphics g)
drawInto in interface PMElementpublic void setVisible(boolean v)
setVisible in interface PMElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||