net.beadsproject.beads.gui
Class PatternGrid

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

public class PatternGrid
extends ButtonBox

Interface for a Pattern object. Can save and load.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.beadsproject.beads.gui.ButtonBox
ButtonBox.ButtonBoxListener, ButtonBox.SelectionMode
 
Field Summary
 
Fields inherited from class net.beadsproject.beads.gui.ButtonBox
buttons
 
Constructor Summary
PatternGrid(int width, int height)
           
 
Method Summary
 javax.swing.JComponent getComponent()
           
 Pattern getPattern()
           
 java.util.ArrayList<java.lang.Integer> goToStep(int index)
           
static void main(java.lang.String[] args)
           
 void read(java.lang.String filename)
           
 void setPattern(Pattern pattern)
           
 void write(java.lang.String filename)
           
 
Methods inherited from class net.beadsproject.beads.gui.ButtonBox
clear, clearColumnHighlight, clearRowHighlight, getBoxHeight, getBoxWidth, getButtons, getColumnHighlight, getHeight, getListener, getRowHighlight, getSelectionMode, getWidth, makeSelection, resize, setBoxHeight, setBoxWidth, setColumnHighlight, setListener, setRowHighlight, setSelectionMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternGrid

public PatternGrid(int width,
                   int height)
Method Detail

setPattern

public void setPattern(Pattern pattern)

goToStep

public java.util.ArrayList<java.lang.Integer> goToStep(int index)

getComponent

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

getPattern

public Pattern getPattern()

read

public void read(java.lang.String filename)

write

public void write(java.lang.String filename)

main

public static void main(java.lang.String[] args)