|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdata.Sprite
data.Node
public class Node
Each node contains an id, a name, a size and a link to a graphic.
| Field Summary | |
|---|---|
static int |
maxID
|
static int |
overAllVisitedCounter
|
| Constructor Summary | |
|---|---|
Node(int iD,
float size,
java.lang.String name)
|
|
Node(int iD,
float size,
java.lang.String name,
java.lang.String graphic)
|
|
| Method Summary | |
|---|---|
boolean |
draw(javax.media.opengl.GL gl)
draws an object in OpenGL context |
float |
getAngle()
return the angle of the node |
float |
getAngularWidth()
return the angular width of the node |
java.util.LinkedList<Node> |
getChildren()
return the children of the node |
Node |
getFather()
return the father of the node |
java.lang.String |
getGraphic()
return the graphic of the node |
int |
getID()
returns the ID of the node |
java.lang.String |
getName()
return the name of the node |
java.util.LinkedList<Node> |
getNeighbors()
return the neighbors of the node |
float |
getOldAngle()
return the old angle of the node |
int |
getOldRing()
return the old ring of the node |
java.util.LinkedList<Node> |
getOthers()
return the others of the node |
int |
getRing()
return the ring on that the node lays |
float |
getSectorEnd()
return the sector end of the node |
float |
getSectorStart()
return the sector start of the node |
float |
getSize()
retuns the size of the node |
int |
getVisitedCounter()
return the visitedCounter(used by GraphProcessing) of the node |
boolean |
init(javax.media.opengl.GL gl)
initializes the Drawable in OpenGL context |
boolean |
isDeleted()
return if the node is/shall be deleted |
void |
setAngle(float angle)
sets the angle of the node |
void |
setAngularWidth(float angularWidth)
sets the angular width of the node |
void |
setChildren(java.util.LinkedList<Node> children)
sets the children of the node |
void |
setDeleted(boolean isDeleted)
sets if the node is/shall be deleted |
void |
setFather(Node father)
sets the father of the node |
void |
setGraphic(java.lang.String graphic)
sets the graphic of the node |
void |
setID(int iD)
sets the ID of the node |
void |
setName(java.lang.String name)
sets the name of the node |
void |
setNeighbors(java.util.LinkedList<Node> neighbors)
sets the neighbors of the node |
void |
setOldAngle(float oldAngle)
sets the old angle of the node |
void |
setOldRing(int oldRing)
sets the old ring of the node |
void |
setOthers(java.util.LinkedList<Node> others)
sets the others of the node |
void |
setRing(int ring)
sets the ring on that the node lays |
void |
setSectorEnd(float sectorEnd)
sets the sector end of the node |
void |
setSectorStart(float sectorStart)
sets the sector start of the node |
void |
setSize(float size)
sets the size of the node |
void |
setVisitedCounter(int visitedCounter)
sets the visitedCounter(used by GraphProcessing) of the node |
java.lang.String |
toString()
|
| Methods inherited from class data.Sprite |
|---|
getPosition, loadTexture, setImageFile, setPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int overAllVisitedCounter
public static int maxID
| Constructor Detail |
|---|
public Node(int iD,
float size,
java.lang.String name)
public Node(int iD,
float size,
java.lang.String name,
java.lang.String graphic)
| Method Detail |
|---|
public boolean draw(javax.media.opengl.GL gl)
Drawable
draw in interface Drawabledraw in class Spritegl - GL-context
public int getID()
public void setID(int iD)
iD - public float getSize()
public void setSize(float size)
size - public java.lang.String getName()
public void setName(java.lang.String name)
name - public java.lang.String getGraphic()
public void setGraphic(java.lang.String graphic)
graphic - public java.lang.String toString()
toString in class java.lang.Objectpublic int getVisitedCounter()
public void setVisitedCounter(int visitedCounter)
visitedCounter - public int getRing()
public void setRing(int ring)
ring - public float getAngle()
public void setAngle(float angle)
angle - public float getSectorStart()
public void setSectorStart(float sectorStart)
sectorStart - public float getSectorEnd()
public void setSectorEnd(float sectorEnd)
sectorEnd - public int getOldRing()
public void setOldRing(int oldRing)
oldRing - public float getOldAngle()
public void setOldAngle(float oldAngle)
oldAngle - public boolean init(javax.media.opengl.GL gl)
Drawable
init in interface Drawableinit in class Spritegl - gl context
public void setNeighbors(java.util.LinkedList<Node> neighbors)
neighbors - public java.util.LinkedList<Node> getNeighbors()
public java.util.LinkedList<Node> getChildren()
public void setChildren(java.util.LinkedList<Node> children)
children - public java.util.LinkedList<Node> getOthers()
public void setOthers(java.util.LinkedList<Node> others)
others - public Node getFather()
public void setFather(Node father)
father - public boolean isDeleted()
public void setDeleted(boolean isDeleted)
isDeleted - public void setAngularWidth(float angularWidth)
angularWidth - public float getAngularWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||