net.beadsproject.beads.gui
Class ButtonBox

java.lang.Object
  extended by net.beadsproject.beads.gui.ButtonBox
All Implemented Interfaces:
InterfaceElement
Direct Known Subclasses:
PatternGrid

public class ButtonBox
extends java.lang.Object
implements InterfaceElement


Nested Class Summary
static interface ButtonBox.ButtonBoxListener
           
static class ButtonBox.SelectionMode
           
 
Field Summary
protected  boolean[][] buttons
           
 
Constructor Summary
ButtonBox(int width, int height)
           
ButtonBox(int width, int height, ButtonBox.SelectionMode selectionMode)
           
 
Method Summary
 void clear()
           
 void clearColumnHighlight()
           
 void clearRowHighlight()
           
 float getBoxHeight()
           
 float getBoxWidth()
           
 boolean[][] getButtons()
           
 int getColumnHighlight()
           
 javax.swing.JComponent getComponent()
           
 int getHeight()
           
 ButtonBox.ButtonBoxListener getListener()
           
 int getRowHighlight()
           
 ButtonBox.SelectionMode getSelectionMode()
           
 int getWidth()
           
 void makeSelection(int i, int j)
           
 void resize(int width, int height)
           
 void setBoxHeight(float boxHeight)
           
 void setBoxWidth(float boxWidth)
           
 void setColumnHighlight(int columnHighlight)
           
 void setListener(ButtonBox.ButtonBoxListener listener)
           
 void setRowHighlight(int rowHighlight)
           
 void setSelectionMode(ButtonBox.SelectionMode selectionMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buttons

protected boolean[][] buttons
Constructor Detail

ButtonBox

public ButtonBox(int width,
                 int height)

ButtonBox

public ButtonBox(int width,
                 int height,
                 ButtonBox.SelectionMode selectionMode)
Method Detail

resize

public void resize(int width,
                   int height)

getSelectionMode

public ButtonBox.SelectionMode getSelectionMode()

setSelectionMode

public void setSelectionMode(ButtonBox.SelectionMode selectionMode)

getColumnHighlight

public int getColumnHighlight()

setColumnHighlight

public void setColumnHighlight(int columnHighlight)

clearColumnHighlight

public void clearColumnHighlight()

getRowHighlight

public int getRowHighlight()

setRowHighlight

public void setRowHighlight(int rowHighlight)

clearRowHighlight

public void clearRowHighlight()

getComponent

public javax.swing.JComponent getComponent()
Specified by:
getComponent in interface InterfaceElement

makeSelection

public void makeSelection(int i,
                          int j)

clear

public void clear()

getBoxWidth

public float getBoxWidth()

setBoxWidth

public void setBoxWidth(float boxWidth)

getBoxHeight

public float getBoxHeight()

setBoxHeight

public void setBoxHeight(float boxHeight)

getListener

public ButtonBox.ButtonBoxListener getListener()

setListener

public void setListener(ButtonBox.ButtonBoxListener listener)

getButtons

public boolean[][] getButtons()

getWidth

public int getWidth()

getHeight

public int getHeight()