|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.monad.homerun.view.Region
public class Region
A Region is a collection of 1 or more views, to be placed in a Scene at a specified location
Constructor Summary | |
---|---|
Region()
|
|
Region(java.lang.String location)
|
|
Region(java.lang.String name,
Region region)
|
Method Summary | |
---|---|
void |
addView(View view)
Adds a view to the region |
java.lang.String |
getLocation()
Returns the location of the region within the scene |
int |
getNumViews()
Returns the number of views in this region |
View |
getView(int index)
Returns the view at index i of the region |
View[] |
getViews()
Returns an ordered list of views in this region |
void |
removeView(int index)
Removes the view at index i of the region |
void |
setLocation(java.lang.String location)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Region()
public Region(java.lang.String location)
public Region(java.lang.String name, Region region)
Method Detail |
---|
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
public View[] getViews()
public int getNumViews()
public void addView(View view)
view
- the view to addpublic void removeView(int index)
index
- the location of the view to removepublic View getView(int index)
index
- the index of the desired view
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |