jET
1.0alpha4


org.jet.tracks
Class ArcTrack

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

public class ArcTrack
extends Track
implements Componentable

Arc track.

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
ArcTrack(double radius, double angle)
           
 
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.
 double getLength()
          Gets the track length.
 float getMaximalVelocity()
           
 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, 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

ArcTrack

public ArcTrack(double radius,
                double angle)
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

getLength

public double getLength()
Description copied from class: Track
Gets the track length.

Overrides:
getLength in class Track

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

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)

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()

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.

getMaximalVelocity

public float getMaximalVelocity()

jET
1.0alpha4