|
jET |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jet.PaletteButtonModel
|
+--org.jet.tracks.StraightTrackButtonModel
Model for straight track button.
Indexes are in range from 0 to count-1.
| Field Summary |
| Fields inherited from class org.jet.PaletteButtonModel |
listenerList |
| Constructor Summary | |
StraightTrackButtonModel(double d)
Creates button model for straight track with specified length. |
|
| Method Summary | |
int |
getHandlerCount()
Gets handlers count in this model. |
javax.swing.Icon |
getIcon()
Gets an icon of this model. |
java.lang.String |
getToolTipText()
Gets tooltip text. |
java.awt.Point |
handlerToPoint(int i)
Returns point of handler with specified index. |
int |
pointToHandler(java.awt.Point p)
Returns index of handler with specified point. |
| Methods inherited from class org.jet.PaletteButtonModel |
addChangeListener, clearSelection, fireStateChanged, getSelectedHandler, isSelectionEmpty, removeChangeListener, setSelectedHandler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StraightTrackButtonModel(double d)
d - Track length in meters.| Method Detail |
public int getHandlerCount()
getHandlerCount in class PaletteButtonModelpublic java.awt.Point handlerToPoint(int i)
handlerToPoint in class PaletteButtonModeli - Index of the handler.
public int pointToHandler(java.awt.Point p)
pointToHandler in class PaletteButtonModelp - Point in icon coordiantes.
public javax.swing.Icon getIcon()
getIcon in class PaletteButtonModelpublic java.lang.String getToolTipText()
getToolTipText in class PaletteButtonModel
|
jET |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||