|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ericsson.tic.vi.Pickable
com.ericsson.tic.vi.Label
public class Label
Label is a GUI component which creates a floating 3D-window.
| Field Summary | |
|---|---|
int |
id
A unique identifier for this label. |
GraphNode |
node
A node associated with this label. |
float |
speed
The speed of this label. |
String |
title
Title of this label. |
float |
x
Current coordinate. |
float |
xGlobe
Globe Coordinate |
float |
xPlane
Plane Coordinate |
private float |
xSpeed
The speed of this label. |
float |
xTarget
The travel-target of this label. |
float |
y
Current coordinate. |
float |
yGlobe
Globe Coordinate |
float |
yPlane
Plane Coordinate |
private float |
ySpeed
The speed of this label. |
float |
yTarget
The travel-target of this label. |
float |
z
Current coordinate. |
float |
zGlobe
Globe Coordinate |
float |
zPlane
Plane Coordinate |
private float |
zSpeed
The speed of this label. |
float |
zTarget
The travel-target of this label. |
| Fields inherited from class com.ericsson.tic.vi.Pickable |
|---|
highlighted, pid |
| Constructor Summary | |
|---|---|
Label(int id,
String title)
Creates a label at the origin. |
|
Label(int id,
String title,
float x,
float y,
float z)
Creates a label at coordinate x, y, z (on the map) |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones this graph node. |
void |
moveTowardsTarget()
Take a step towards the target. |
void |
setSpeed(float speed)
Set the speed of this node. |
void |
setSpeedVector()
Set the speedvector. |
void |
setSpeedVector(float speed)
Set the speedvector. |
void |
setTarget(float xTarget,
float yTarget,
float zTarget)
Sets the traveling target of this node. |
void |
setTargetOnGlobe()
Sets the target on the globe surface. |
void |
setTargetOnPlane()
Sets the target on the plane. |
void |
stopMoving()
Stops moving. |
| Methods inherited from class com.ericsson.tic.vi.Pickable |
|---|
newPID |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int id
public String title
public float x
public float y
public float z
public GraphNode node
public float xPlane
public float yPlane
public float zPlane
public float xGlobe
public float yGlobe
public float zGlobe
public float xTarget
public float yTarget
public float zTarget
public float speed
private float xSpeed
private float ySpeed
private float zSpeed
| Constructor Detail |
|---|
public Label(int id,
String title)
id - the id of this node.title - The Title of this node.
public Label(int id,
String title,
float x,
float y,
float z)
id - the id of this node.title - The Title of this node.x - The x-coordinate. [-2 < x < 2]y - The y-coordinate. [-1 < y < 1]z - The z-coordinate should be 0| Method Detail |
|---|
public void setSpeed(float speed)
speed - The speed.public void setSpeedVector(float speed)
speed - The speed.public void setSpeedVector()
public void setTarget(float xTarget,
float yTarget,
float zTarget)
xTarget - The x coordinate of the target.yTarget - The y coordinate of the target.zTarget - The z coordinate of the target.public void setTargetOnGlobe()
public void setTargetOnPlane()
public void moveTowardsTarget()
public void stopMoving()
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||