blue.music
Class Fret

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--blue.painter.Painter
                    |
                    +--blue.music.Fret

public class Fret
extends Painter

See Also:
Serialized Form

Field Summary
protected  java.awt.Color color
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Method Summary
 void draw()
           
 int fretNumber()
           
 void play()
           
 void play(Note n, Instrument i)
           
 void rest(Note n, Instrument i)
           
 void setBackground(java.awt.Color c)
           
 void stop()
           
 java.lang.String stringName()
           
 
Methods inherited from class blue.painter.Painter
AWTtoPainterMap, bk, canvasHeight, canvasWidth, connect, display, draw, draw, draw, draw, draw, draw, draw, drawBoundary, drawFret, drawString, drawStringCentered, fd, getColor, getFont, getPenColor, heading, hide, hide, ibk, ifd, ila, ilt, invert, invert, ira, irt, jbk, jfd, jla, jlt, jra, jrt, la, lt, mapAWTtoPainter, mapPainterToAWT, moveTo, paint, paint, paint, paint, paint, paint, paintCanvas, position, printCanvasDimensions, printState, ra, redisplay, rt, setFontSize, setHeading, setPenColor, setPenColor, setPenFont, setPenFont, setPosition, setPosition, tl, tl, tr, tr, undisplay, update, view, view
 
Methods inherited from class java.awt.Canvas
addNotify
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

color

protected java.awt.Color color
Method Detail

setBackground

public void setBackground(java.awt.Color c)
Overrides:
setBackground in class java.awt.Component

stringName

public java.lang.String stringName()

fretNumber

public int fretNumber()

play

public void play()

stop

public void stop()

play

public void play(Note n,
                 Instrument i)

rest

public void rest(Note n,
                 Instrument i)

draw

public void draw()