com.softsynth.jmsl.score
Class ScoreCanvasAWT

java.lang.Object
  extended by com.softsynth.jmsl.score.ScoreCanvasAdapter
      extended by com.softsynth.jmsl.score.ScoreCanvasAWT
All Implemented Interfaces:
PVCanvas, PVComponent, EditStateListener, ScoreCanvas, ZoomListener, java.awt.event.KeyListener, java.awt.image.ImageObserver, java.util.EventListener
Direct Known Subclasses:
PrintableScoreCanvasAWT

public class ScoreCanvasAWT
extends ScoreCanvasAdapter


Field Summary
 
Fields inherited from class com.softsynth.jmsl.score.ScoreCanvasAdapter
NO_CURSOR, NO_RECTANGLE
 
Fields inherited from interface com.softsynth.jmsl.score.ScoreCanvas
copyright
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ScoreCanvasAWT()
           
ScoreCanvasAWT(int w, int h)
           
 
Method Summary
 void addKeyListener(java.awt.event.KeyListener l)
           
 java.awt.Color getBackground()
           
 java.awt.Rectangle getBounds()
           
 java.awt.Container getParent()
           
 java.awt.Graphics getRenderGraphics()
           
 boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
          Called asynchronously if createImage() in paint() doesn't return an image right away
 boolean isEnabled()
           
static void main(java.lang.String[] args)
           
 void removeKeyListener(java.awt.event.KeyListener l)
           
 void setBackground(java.awt.Color color)
           
 void setCanvasSize(int w, int h)
           
 void setEnabled(boolean b)
           
 void setLocation(int x, int y)
           
 void setZoom(double zoom)
          ZoomListener interface
 void updateSize(int w, int h)
           
 
Methods inherited from class com.softsynth.jmsl.score.ScoreCanvasAdapter
addScoreCanvasListener, build, editStateChanged, getComponent, getCursorLocationOrigin, getCursorLocationTerminus, getCursorNote, getFont, getGraphics, getHeight, getRectSelectOriginCorner, getRectSelectTerminalCorner, getScoreCanvasListeners, getScorePainter, getWidth, handlePrint, isCursorWasPlaced, isDrawIt, isRectangleInProgress, isRectangleWasSelected, isTranslationJustChanged, keyPressed, keyReleased, keyTyped, notify, notifyReady, removeAllScoreCanvasListeners, removeScoreCanvasListener, repaint, setCursorLocation, setCursorLocationOrigin, setCursorLocationTerminus, setCursorNote, setCursorWasPlaced, setDrawIt, setFont, setRectangleInProgress, setRectangleWasSelected, setRectSelectOriginCorner, setRectSelectTerminalCorner, setScorePainter, setTranslationJustChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreCanvasAWT

public ScoreCanvasAWT()

ScoreCanvasAWT

public ScoreCanvasAWT(int w,
                      int h)
Method Detail

imageUpdate

public boolean imageUpdate(java.awt.Image img,
                           int infoflags,
                           int x,
                           int y,
                           int width,
                           int height)
Called asynchronously if createImage() in paint() doesn't return an image right away


updateSize

public void updateSize(int w,
                       int h)

main

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

setZoom

public void setZoom(double zoom)
ZoomListener interface

Specified by:
setZoom in interface ZoomListener
Overrides:
setZoom in class ScoreCanvasAdapter

getRenderGraphics

public java.awt.Graphics getRenderGraphics()
Specified by:
getRenderGraphics in interface ScoreCanvas
Specified by:
getRenderGraphics in class ScoreCanvasAdapter
Returns:
offscreengraphics of awt canvas component
See Also:
ScoreCanvasAdapter.getRenderGraphics()

setCanvasSize

public void setCanvasSize(int w,
                          int h)

getParent

public java.awt.Container getParent()

getBounds

public java.awt.Rectangle getBounds()

setLocation

public void setLocation(int x,
                        int y)

setEnabled

public void setEnabled(boolean b)

isEnabled

public boolean isEnabled()

addKeyListener

public void addKeyListener(java.awt.event.KeyListener l)

removeKeyListener

public void removeKeyListener(java.awt.event.KeyListener l)

setBackground

public void setBackground(java.awt.Color color)

getBackground

public java.awt.Color getBackground()