|
jET |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jet.tracks.Track
|
+--org.jet.tracks.Switch
Switch entity.
| Field Summary | |
protected javax.vecmath.Point3d |
node3
End point of reversible track. |
protected double |
radiusSwitched
Radius of reversible track. |
protected double |
roll3
Roll at end point of reversible track. |
protected double |
rollSwitched
Roll at start point of reversible track. |
protected javax.vecmath.Vector3d |
vec3
Vector mounted at end point of reversible track to start point of track. |
protected javax.vecmath.Vector3d |
vecSwitched
Vector mounted at start point to the reversible track. |
| Fields inherited from class org.jet.tracks.Track |
CANYON, damage, enviroment, FLAT, friction, length, MOUNTAINS, name, node1, node2, quality, radius, roll1, roll2, secondTexture, tapDistance, texHeight, texSlope, texture, textureLength, texWidth, TUNNEL, vec1, vec2, visibility, width |
| Constructor Summary | |
Switch()
Dummy constructor. |
|
Switch(double length,
double switchedRadius)
Creates switch with length and radius for switched track. |
|
Switch(double length,
double switchedRadius,
double mainRadius)
Creates the arc switch. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Test if two switches are equal. |
float |
getAngle(java.awt.Point p)
Get rotate angle for specified handle. |
java.awt.Point[] |
getHandles()
Gets array of points in component coordinates where to put handles. |
javax.vecmath.Point3d |
getPoint3()
Gets end point of switch. |
java.awt.Rectangle |
getRenderedRectangle()
Gets rectangle where the icon is contained. |
double |
getRoll3()
Gets the roll at end point of reversible track. |
double |
getSwitchedRadius()
Gets radius of reversible track. |
double |
getSwitchedRoll()
Gets the roll at start point of reversible track. |
javax.vecmath.Vector3d |
getSwitchedVector()
Gets the vector mounted at start point to the end of reversible track. |
java.lang.String |
getToolTip()
Contents of component used as a formant. |
javax.vecmath.Vector3d |
getVector3()
Gets the vector mounted at the end of reversible track. |
void |
paintComponent(java.awt.Graphics g)
Paints icon of the element on the component. |
void |
setPoint3(double[] array)
Sets the end point of the reversible track of switch. |
void |
setPoint3(double x,
double y,
double z)
Sets the end point of the reversible track of switch. |
void |
setPoint3(javax.vecmath.Point3d p)
Sets the end point of the reversible track of switch. |
void |
setRoll3(double d)
Sets the roll at end pointof reversible track. |
void |
setSwitchedRadius(double d)
Sets radius of reversible track. |
void |
setSwitchedRoll(double d)
Sets the roll at start point of reversible track. |
void |
setSwitchedVector(double[] array)
Sets the vector mounted at start point to the end of reversible track. |
void |
setSwitchedVector(double x,
double y,
double z)
Sets the vector mounted at start point to the end of reversible track. |
void |
setSwitchedVector(javax.vecmath.Vector3d v)
Sets the vector mounted at start point to the end of reversible track. |
void |
setVector3(double[] array)
Sets the vector mounted at the end of reversible track. |
void |
setVector3(double x,
double y,
double z)
Sets the vector mounted at the end of reversible track. |
void |
setVector3(javax.vecmath.Vector3d v)
Sets the vector mounted at the end of reversible track. |
java.lang.String |
toString()
Gets description. |
| Methods inherited from class org.jet.tracks.Track |
getDamage, getEnviroment, getFriction, getIncline, getLength, getName, getPoint1, getPoint2, getQuality, getRadius, getRoll1, getRoll2, getSecondTexture, getTap, getTexture, getTextureHeight, getTextureLength, getTextureSlope, getTextureWidth, getVector1, getVector2, getWidth, isVisible, setDamage, setEnviroment, setFriction, setLength, setName, setPoint1, setPoint1, setPoint1, setPoint2, setPoint2, setPoint2, setQuality, setRadius, setRoll1, setRoll2, setSecondTexture, setTap, setTexture, setTextureHeight, setTextureLength, setTextureSlope, setTextureWidth, setVector1, setVector1, setVector1, setVector2, setVector2, setVector2, setVisible, setWidth |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected javax.vecmath.Point3d node3
protected javax.vecmath.Vector3d vecSwitched
protected javax.vecmath.Vector3d vec3
protected double rollSwitched
protected double roll3
protected double radiusSwitched
| Constructor Detail |
public Switch()
public Switch(double length,
double switchedRadius)
length - Length of the switch (the same for straight and reversible
track).switchedRadius - Radius for reversible track. When the value
is positive it means that switch is right reversible. Negative values
means that switch will be left reversible.
public Switch(double length,
double switchedRadius,
double mainRadius)
length - Length of the switch (the same for straight and reversible
track).switchedRadius - Radius for reversible track.mainRadius - Radius for straight track.| Method Detail |
public javax.vecmath.Point3d getPoint3()
public void setPoint3(javax.vecmath.Point3d p)
public void setPoint3(double x,
double y,
double z)
public void setPoint3(double[] array)
public javax.vecmath.Vector3d getSwitchedVector()
public void setSwitchedVector(javax.vecmath.Vector3d v)
public void setSwitchedVector(double x,
double y,
double z)
public void setSwitchedVector(double[] array)
public javax.vecmath.Vector3d getVector3()
public void setVector3(javax.vecmath.Vector3d v)
public void setVector3(double x,
double y,
double z)
public void setVector3(double[] array)
public double getSwitchedRoll()
public void setSwitchedRoll(double d)
public double getRoll3()
public void setRoll3(double d)
public double getSwitchedRadius()
public void setSwitchedRadius(double d)
public boolean equals(java.lang.Object o)
equals in class Tracko - Object to check.
True if they are.public java.lang.String toString()
toString in class Trackpublic java.lang.String getToolTip()
Componentable
getToolTip in interface Componentablepublic java.awt.Point[] getHandles()
Componentable
getHandles in interface Componentablepublic java.awt.Rectangle getRenderedRectangle()
Componentable
getRenderedRectangle in interface ComponentableComponentable.paintComponent(java.awt.Graphics)public float getAngle(java.awt.Point p)
Componentable
getAngle in interface Componentablep - Handle specified by point coordinates.Componentable.getHandles()public void paintComponent(java.awt.Graphics g)
Componentable
paintComponent in interface Componentableg - Graphics to paint.
|
jET |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||