com.softsynth.jmsl.score
Class ScoreCanvasAWT
java.lang.Object
com.softsynth.jmsl.score.ScoreCanvasAdapter
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
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
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 |
ScoreCanvasAWT
public ScoreCanvasAWT()
ScoreCanvasAWT
public ScoreCanvasAWT(int w,
int h)
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()