jET
1.0beta1


org.jet.tracks
Class TrackPalette

java.lang.Object
  |
  +--org.jet.tracks.TrackPalette
All Implemented Interfaces:
Palette

public class TrackPalette
extends java.lang.Object
implements Palette

Track palette.


Nested Class Summary
 class TrackPalette.PaletteTableModel
          Palette table model for track palette.
 
Constructor Summary
TrackPalette(Jet app)
           
 
Method Summary
 javax.swing.JToggleButton getButton(int x, int y)
          Gets toggle button pointed to (x, y).
 java.lang.String getName()
          Gets palette name.
 javax.swing.table.TableModel getTableModel()
          Gets table model for palette table component.
 void layout(JPaletteButton b)
          Lays out a track button with palette model on the palette.
 void putButton(javax.swing.JToggleButton button, int x)
          Puts a toggle button to palette table at specified column.
 void putButton(javax.swing.JToggleButton button, int x, int y)
          Puts a toggle button to palette table at point (x, y).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackPalette

public TrackPalette(Jet app)
Method Detail

putButton

public void putButton(javax.swing.JToggleButton button,
                      int x,
                      int y)
Puts a toggle button to palette table at point (x, y).


putButton

public void putButton(javax.swing.JToggleButton button,
                      int x)
Puts a toggle button to palette table at specified column.

Parameters:
button - A button to add.
x - Column.

getButton

public javax.swing.JToggleButton getButton(int x,
                                           int y)
Gets toggle button pointed to (x, y).


layout

public void layout(JPaletteButton b)
Lays out a track button with palette model on the palette.

Parameters:
b - A button to layout.

getName

public java.lang.String getName()
Gets palette name.

Specified by:
getName in interface Palette

getTableModel

public javax.swing.table.TableModel getTableModel()
Gets table model for palette table component.

Specified by:
getTableModel in interface Palette

jET
1.0beta1