sky.monome.frame
Class PictureFrame

java.lang.Object
  extended by sky.monome.frame.DefaultFrame
      extended by sky.monome.frame.PictureFrame
All Implemented Interfaces:
Frame, SizedFrame

public class PictureFrame
extends DefaultFrame

Frame that displays a RenderedImage. This frame takes dimensions of the specified image.

Author:
PJ Skyman

Field Summary
 
Fields inherited from class sky.monome.frame.DefaultFrame
height, matrix, width
 
Constructor Summary
PictureFrame(java.awt.image.RenderedImage renderedImage, boolean negative)
          Constructs a picture frame with the specified picture and the specified negative flag.
PictureFrame(java.awt.image.RenderedImage renderedImage, boolean negative, PictureAnalyzer pictureAnalyzer)
          Constructs a picture frame with the specified picture, the specified negative flag and the specified picture analyzer.
 
Method Summary
 
Methods inherited from class sky.monome.frame.DefaultFrame
clear, clear, get, getHeight, getWidth, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PictureFrame

public PictureFrame(java.awt.image.RenderedImage renderedImage,
                    boolean negative)
Constructs a picture frame with the specified picture and the specified negative flag. The default MidGreyAnalyzer is used to convert the picture into a matrix of led states.

Parameters:
renderedImage - Picture to display in this picture frame.
negative - Flag that indicates if this picture frame must invert all led states.

PictureFrame

public PictureFrame(java.awt.image.RenderedImage renderedImage,
                    boolean negative,
                    PictureAnalyzer pictureAnalyzer)
Constructs a picture frame with the specified picture, the specified negative flag and the specified picture analyzer.

Parameters:
renderedImage - Picture to display in this picture frame.
negative - Flag that indicates if this picture frame must invert all led states.
pictureAnalyzer - Picture analyzer to use to convert the picture into a matrix of led states.