|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.procedural.IOPort
public class IOPort
This is the graphical representation of an input or output port on a module.
Field Summary | |
---|---|
static int |
BOTTOM
|
static int |
COLOR
|
static int |
INPUT
|
static int |
LEFT
|
static int |
NUMBER
|
static int |
OUTPUT
|
static int |
RIGHT
|
static int |
SIZE
|
static int |
TOP
|
Constructor Summary | |
---|---|
IOPort(int valueType,
int type,
int location,
java.lang.String[] description)
|
Method Summary | |
---|---|
boolean |
contains(java.awt.Point p)
Determine whether a point on the screen is inside this port. |
void |
draw(java.awt.Graphics g)
Draw the port. |
java.lang.String[] |
getDescription()
Get the description of this port. |
int |
getIndex()
Get the index of this port in its Module's list of input or output ports. |
int |
getLocation()
Get the location of this port (top, bottom, left, or right). |
Module |
getModule()
Get the module this port belongs to. |
java.awt.Point |
getPosition()
Get the port's screen position. |
int |
getType()
Get the type of port this is (input or output). |
int |
getValueType()
Get the type of value for this port. |
void |
setDescription(java.lang.String[] desc)
Set the description of this port. |
void |
setModule(Module mod)
Set the module this port belongs to. |
void |
setPosition(int x,
int y)
Set the port's screen position. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INPUT
public static final int OUTPUT
public static final int NUMBER
public static final int COLOR
public static final int TOP
public static final int BOTTOM
public static final int LEFT
public static final int RIGHT
public static final int SIZE
Constructor Detail |
---|
public IOPort(int valueType, int type, int location, java.lang.String[] description)
Method Detail |
---|
public java.awt.Point getPosition()
public void setPosition(int x, int y)
public int getValueType()
public int getType()
public int getLocation()
public Module getModule()
public void setModule(Module mod)
public int getIndex()
public boolean contains(java.awt.Point p)
public java.lang.String[] getDescription()
public void setDescription(java.lang.String[] desc)
public void draw(java.awt.Graphics g)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |