|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsky.monome.Component
sky.monome.Container
sky.monome.AbstractGroup<Component>
sky.monome.Group
sky.monome.Page
public class Page
Page of components to be added in a page switcher.
| Field Summary | |
|---|---|
protected AbstractPageSwitcher |
pageSwitcher
Page switcher which contains this page. |
| Fields inherited from class sky.monome.AbstractGroup |
|---|
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 | |
|---|---|
Page(java.lang.String name)
Constructs a page with the specified name. |
|
Page(java.lang.String name,
PageSwitcher pageSwitcher)
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. |
|
| Method Summary | |
|---|---|
boolean |
canHaveParentContainer()
Indicates whether this page can have a parent container in the Monome assembling tree. |
int |
getAbsoluteX()
Returns the absolute X-coordinate of this page. |
int |
getAbsoluteY()
Returns the absolute Y-coordinate of this page. |
java.awt.Rectangle |
getBounds()
Returns bounds of this page in the local context of its page switcher. |
int |
getHeight()
Returns the height of this page. |
int |
getWidth()
Returns the width of this page. |
boolean |
isVisible()
Indicates whether this page is actually visible. |
java.lang.String |
toString()
Returns a string representation of this page. |
| Methods inherited from class sky.monome.Group |
|---|
addComponent, getComponents, removeComponent, removeComponents |
| Methods inherited from class sky.monome.AbstractGroup |
|---|
getMonome, notify, writeOn |
| Methods inherited from class sky.monome.Component |
|---|
getContainer, getLockObject, getName, getX, getY |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AbstractPageSwitcher pageSwitcher
AbstractPageSwitcher
instead of a PageSwitcher for more flexibility.
| Constructor Detail |
|---|
@Deprecated
public Page(java.lang.String name,
PageSwitcher pageSwitcher)
name - Name of this page.pageSwitcher - Page switcher which contains this page.public Page(java.lang.String name)
name - Name of this page.| Method Detail |
|---|
public java.lang.String toString()
toString in class Grouppublic int getAbsoluteX()
getAbsoluteX in class AbstractGroup<Component>public int getAbsoluteY()
getAbsoluteY in class AbstractGroup<Component>public boolean isVisible()
isVisible in class AbstractGroup<Component>true if this page is actually visible, false otherwise.public boolean canHaveParentContainer()
canHaveParentContainer in class AbstractGroup<Component>false, since pages are contained only by page switchers.public java.awt.Rectangle getBounds()
getBounds in class AbstractGroup<Component>public int getWidth()
getWidth in class Containerpublic int getHeight()
getHeight in class Container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||