jET
1.0alpha4


org.jet.tracks
Interface Componentable

All Known Implementing Classes:
ArcTrack, StraightTrack, Switch

public interface Componentable

Classes implementing this interface might be used as formants for palette.


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.
 

Method Detail

paintComponent

public void paintComponent(java.awt.Graphics g)
Paints icon of the element on the component.

Parameters:
g - Graphics to paint.

getHandles

public java.awt.Point[] getHandles()
Gets array of points in component coordinates where to put handles.


getToolTip

public java.lang.String getToolTip()
Contents of component used as a formant.


getAngle

public float getAngle(java.awt.Point p)
Get rotate angle for specified handle.

Parameters:
p - Handle specified by point coordinates.
See Also:
getHandles()

getRenderedRectangle

public java.awt.Rectangle getRenderedRectangle()
Gets rectangle where the icon is contained.

See Also:
paintComponent(java.awt.Graphics)

jET
1.0alpha4