|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.frame.DefaultFrame
public class DefaultFrame
Sized frame in its simpliest form.
Field Summary | |
---|---|
protected int |
height
Height of this frame. |
protected LedButtonCouple.LedState[][] |
matrix
Led states matrix of this frame. |
protected int |
width
Width of this frame. |
Constructor Summary | |
---|---|
DefaultFrame(int width,
int height)
Constructs a default frame with the specified size. |
Method Summary | |
---|---|
void |
clear()
Clears all led states in the matrix of this frame. |
void |
clear(LedButtonCouple.LedState ledState)
Clears all led states in the matrix of this frame. |
LedButtonCouple.LedState |
get(int x,
int y)
Returns the led state at specified coordinates. |
int |
getHeight()
Returns the height of this frame. |
int |
getWidth()
Returns the width of this frame. |
void |
set(int x,
int y,
LedButtonCouple.LedState ledState)
Modifies the led state at specified coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int width
protected final int height
protected final LedButtonCouple.LedState[][] matrix
Constructor Detail |
---|
public DefaultFrame(int width, int height)
width
- Width of this frame.height
- Height of this frame.Method Detail |
---|
public LedButtonCouple.LedState get(int x, int y)
get
in interface Frame
x
- X-coordinate of the led state needed.y
- Y-coordinate of the led state needed.
public void set(int x, int y, LedButtonCouple.LedState ledState)
set
in interface Frame
x
- X-coordinate of the led state to be modified.y
- Y-coordinate of the led state to be modified.ledState
- New led state to affect at specified coordinate.public void clear()
LedState.OFF
is affected.
public void clear(LedButtonCouple.LedState ledState)
ledState
- Led state to affect.public int getWidth()
getWidth
in interface SizedFrame
public int getHeight()
getHeight
in interface SizedFrame
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |