sky.monome
Class Container


java.lang.Object

  extended by sky.monome.Component

      extended by sky.monome.Container

Direct Known Subclasses:
AbstractGroup

public abstract class Container
extends Component

Monome container. This class is the base class of all containers on a Monome device.

Author:
PJ Skyman

Field Summary
protected  int height
          Height of this container.
protected  int width
          Width of this container.
 
Fields inherited from class sky.monome.Component
container, eventListenerList, lockObject, name, x, y
 
Constructor Summary
Container(java.lang.String name, Container container, int x, int y, int width, int height)
          Deprecated. Since SkyMonome v1.2, all components register themselves inside their container, so you don't need to specify the container by calling this constructor.
Container(java.lang.String name, int x, int y, int width, int height)
          Constructs a container with the specified name and specified coordinates and dimensions.
 
Method Summary
 int getHeight()
          Returns the height of this container.
 int getWidth()
          Returns the width of this container.
 
Methods inherited from class sky.monome.Component
canHaveParentContainer, getAbsoluteX, getAbsoluteY, getBounds, getContainer, getLockObject, getMonome, getName, getX, getY, isVisible, notify, toString, writeOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width


protected final int width
Width of this container.


height


protected final int height
Height of this container.

Constructor Detail

Container


@Deprecated

public Container(java.lang.String name,

                            Container container,

                            int x,

                            int y,

                            int width,

                            int height)
Deprecated. Since SkyMonome v1.2, all components register themselves inside their container, so you don't need to specify the container by calling this constructor.

Constructs a container with the specified name and specified coordinates and dimensions and contained by the specified container. These coordinates denote the upper-left corner of this container.

Parameters:
name - Name of this container.
container - Container that contains this container.
x - X-coordinate of this container in the local context of its container.
y - Y-coordinate of this container in the local context of its container.
width - Width of this container.
height - Height of this container.

Container


public Container(java.lang.String name,

                 int x,

                 int y,

                 int width,

                 int height)
Constructs a container with the specified name and specified coordinates and dimensions. These coordinates denote the upper-left corner of this container.

Parameters:
name - Name of this container.
x - X-coordinate of this container in the local context of its container.
y - Y-coordinate of this container in the local context of its container.
width - Width of this container.
height - Height of this container.
Since:
SkyMonome v1.2
Method Detail

getWidth


public int getWidth()
Returns the width of this container.

Returns:
The width of this container.

getHeight


public int getHeight()
Returns the height of this container.

Returns:
The height of this container.