|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--xbneditor.Block
This is the basic node class that all of the other type of nodes will inherit from. It contains the values that are applicate to each of the other classes. (e.g. the name of the node, the type of node, it's location on the drawing area, and any additional comments that can be included with the node.
| Constructor Summary | |
Block()
Default constructor that is called when the class is being inherited from. |
|
Block(java.lang.String name,
double x,
double y,
java.lang.String type)
Constructor that contains specific information about certian nodes. |
|
| Method Summary | |
java.lang.String |
getBlockName()
Returns the name of the block |
java.lang.String |
getType()
Returns the type of the node. |
double |
getx()
Returns the value of the x coordinate |
double |
gety()
Returns the value of the y coordinate |
void |
setBlockName(java.lang.String name)
Sets the block name to something specific |
void |
setCoordinates(double x,
double y)
Sets the x,y coordinates of the block |
void |
setType(java.lang.String type)
Sets the type of this node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Block()
public Block(java.lang.String name,
double x,
double y,
java.lang.String type)
name - the name of this nodex - the x coordinate of this nodey - the y coordinate of this nodetype - the type of this node| Method Detail |
public java.lang.String getBlockName()
public void setBlockName(java.lang.String name)
name - the new Block name
public void setCoordinates(double x,
double y)
public double getx()
public double gety()
public void setType(java.lang.String type)
type - the type of the nodepublic java.lang.String getType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||