|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.gui.PlugGUI
public abstract class PlugGUI
Abstract class for visual representation of a plug.
| Field Summary | |
|---|---|
InfoPlug |
info
Information about Plug. |
protected int |
maxX
Maximal plug position (X-coordinate). |
protected int |
maxY
Maximal plug position (Y-coordinate). |
static int |
PGI_ORIENTATION_SOUTH
Initial plug orientation. |
| Constructor Summary | |
|---|---|
PlugGUI()
|
|
| Method Summary | |
|---|---|
abstract boolean |
contains(int px,
int py)
Tests, if point lies on the plug. |
int |
getOrientaion()
Returns plug orientation. |
abstract java.lang.String |
getToolTipText()
Tooltip text for the plug. |
abstract int |
getX()
Gets relative x-coordinate of the plug. |
abstract int |
getY()
Gets relative y-coordinate of the plug. |
abstract void |
movePlug(int nx,
int ny)
Moves the Plug. |
abstract void |
paintItem(java.awt.Graphics g)
Paint bonus graphics on module panel. |
abstract void |
resize(int nx,
int ny)
The Plug's module was resized. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public InfoPlug info
protected int maxX
protected int maxY
public static final int PGI_ORIENTATION_SOUTH
| Constructor Detail |
|---|
public PlugGUI()
| Method Detail |
|---|
public int getOrientaion()
public abstract boolean contains(int px,
int py)
px - x-coordinate.py - y-coordinate.
public abstract java.lang.String getToolTipText()
public abstract int getX()
public abstract int getY()
public abstract void movePlug(int nx,
int ny)
nx - X-coordinate offset (relative coordinate).ny - Y-coordinate offset (relative coordinate).
public abstract void resize(int nx,
int ny)
nx - New module width.ny - New module height.public abstract void paintItem(java.awt.Graphics g)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||