|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.Component sky.monome.Container sky.monome.AbstractGroup<T>
T
- Type of contained components.public abstract class AbstractGroup<T extends Component>
Skeletton class for all groups.
Field Summary | |
---|---|
protected SynchronizedList<T> |
components
List of contained components. |
Fields inherited from class sky.monome.Container |
---|
height, width |
Fields inherited from class sky.monome.Component |
---|
container, eventListenerList, lockObject, name, x, y |
Constructor Summary | |
---|---|
AbstractGroup(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. |
|
AbstractGroup(java.lang.String name,
int x,
int y,
int width,
int height)
Constructs an abstract group with the specified name and specified coordinates and dimensions. |
Method Summary | |
---|---|
boolean |
canHaveParentContainer()
Indicates whether this abstract group can have a parent container in the Monome assembling tree. |
int |
getAbsoluteX()
Returns the absolute X-coordinate of this abstract group. |
int |
getAbsoluteY()
Returns the absolute Y-coordinate of this abstract group. |
java.awt.Rectangle |
getBounds()
Returns bounds of this abstract group in the local context of its container. |
Monome |
getMonome()
Returns the logical Monome device that contains this abstract group. |
boolean |
isVisible()
Indicates whether this abstract group is actually visible. |
void |
notify(OSCMessageDigester messageDigester)
Notifies this abstract group that a message comes from the Monome device. |
void |
writeOn(Frame frame)
Writes this abstract group on the specified frame in order to refresh the Monome device. |
Methods inherited from class sky.monome.Container |
---|
getHeight, getWidth |
Methods inherited from class sky.monome.Component |
---|
getContainer, getLockObject, getName, getX, getY, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final SynchronizedList<T extends Component> components
Constructor Detail |
---|
@Deprecated public AbstractGroup(java.lang.String name, Container container, int x, int y, int width, int height)
name
- Name of this abstract group.container
- Container that contains this abstract group.x
- X-coordinate of this abstract group in the local context of its container.y
- Y-coordinate of this abstract group in the local context of its container.width
- Width of this abstract group.height
- Height of this abstract group.public AbstractGroup(java.lang.String name, int x, int y, int width, int height)
name
- Name of this abstract group.x
- X-coordinate of this abstract group in the local context of its container.y
- Y-coordinate of this abstract group in the local context of its container.width
- Width of this abstract group.height
- Height of this abstract group.Method Detail |
---|
public int getAbsoluteX()
getAbsoluteX
in class Component
public int getAbsoluteY()
getAbsoluteY
in class Component
public Monome getMonome()
getMonome
in class Component
public void notify(OSCMessageDigester messageDigester) throws MonomeException
notify
in class Component
messageDigester
- Message digester that prepares and encapsulates the message for an easy access of informations contained in the message.
MonomeException
- When a problem has occured when treating the message.
By example, a led/button couple can treat a message by lighting on the led, and lighting on a led is a potentially risked operation.public void writeOn(Frame frame) throws MonomeException
writeOn
in class Component
frame
- Frame in which this abstract group must write its led state.
MonomeException
- When a problem has occured while getting the led state of a component inside this abstract group.Monome.refresh()
public boolean isVisible()
isVisible
in class Component
true
if this abstract group is actually visible, false
otherwise.public boolean canHaveParentContainer()
canHaveParentContainer
in class Component
true
.public java.awt.Rectangle getBounds()
getBounds
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |