jET
1.0alpha4


org.jet.tracks
Class StraightTrack

java.lang.Object
  |
  +--org.jet.tracks.Track
        |
        +--org.jet.tracks.StraightTrack
All Implemented Interfaces:
Componentable, java.io.Serializable

public class StraightTrack
extends Track
implements Componentable

Straight track class.

See Also:
Serialized Form

Field Summary
 
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
StraightTrack(double length)
           
 
Method Summary
 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.
 java.awt.Rectangle getRenderedRectangle()
          Gets rectangle where the icon is contained.
 java.lang.String getToolTip()
          Contents of component used as a formant.
 void paintComponent(java.awt.Graphics g)
          Paints icon of the element on the component.
 
Methods inherited from class org.jet.tracks.Track
equals, 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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StraightTrack

public StraightTrack(double length)
Method Detail

getToolTip

public java.lang.String getToolTip()
Description copied from interface: Componentable
Contents of component used as a formant.

Specified by:
getToolTip in interface Componentable

getHandles

public java.awt.Point[] getHandles()
Description copied from interface: Componentable
Gets array of points in component coordinates where to put handles.

Specified by:
getHandles in interface Componentable

paintComponent

public void paintComponent(java.awt.Graphics g)
Description copied from interface: Componentable
Paints icon of the element on the component.

Specified by:
paintComponent in interface Componentable
Parameters:
g - Graphics to paint.

getAngle

public float getAngle(java.awt.Point p)
Description copied from interface: Componentable
Get rotate angle for specified handle.

Specified by:
getAngle in interface Componentable
Parameters:
p - Handle specified by point coordinates.
See Also:
Componentable.getHandles()

getRenderedRectangle

public java.awt.Rectangle getRenderedRectangle()
Description copied from interface: Componentable
Gets rectangle where the icon is contained.

Specified by:
getRenderedRectangle in interface Componentable
See Also:
Componentable.paintComponent(java.awt.Graphics)

jET
1.0alpha4