|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.paper.Bundle
public class Bundle
A Collection of Sheets (see Sheet.java). A collection of pages/sheets of interactive paper. A bundle contains multiple Sheets. Bundles are one of the data types that can be added to an Application.
One benefit of bundles is that they can manage page numbers... If you want to create a notebook, or multiple data sheets, you will want a bundle. In the future, we will allow adding regions to a Bundle. This means that you can have one region duplicated across sheets. Whenever a person interacts with ANY sheet in the area occupied by that region, the region's event handler will be notified.
This software is distributed under the BSD License.
Constructor Summary | |
---|---|
Bundle(java.lang.String bundleName)
A bunch of sheets that are related to each other in some way. |
Method Summary | |
---|---|
void |
addGlobalRegion(Region gr)
Deprecated. because it is incomplete! It doesn't work yet... |
void |
addSheet(Sheet sheetToAdd)
|
void |
addSheets(Sheet... sheetsToAdd)
|
void |
createAndAddSheets(int numSheets,
java.lang.String sheetNameRoot,
Units w,
Units h)
Convenience function to add a bunch of sheets to this bundle. |
java.util.List<Region> |
getGlobalRegions()
|
java.lang.String |
getName()
|
Sheet |
getSheet(int index)
|
int |
getSheetNumber(Sheet s)
Allows you to identify a sheet by its index in the list. |
java.util.List<Sheet> |
getSheets()
WARNING: returns the reference to the sheet. |
void |
removeSheets(Sheet... sheetsToRemove)
Remove all of the specified sheets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bundle(java.lang.String bundleName)
Method Detail |
---|
public void addGlobalRegion(Region gr)
r
- the global region to addpublic void addSheet(Sheet sheetToAdd)
sheetToAdd
- public void addSheets(Sheet... sheetsToAdd)
sheetsToAdd
- public void createAndAddSheets(int numSheets, java.lang.String sheetNameRoot, Units w, Units h)
numSheets
- sheetNameRoot
- public java.util.List<Region> getGlobalRegions()
public java.lang.String getName()
public Sheet getSheet(int index)
index
- starting from 0
public int getSheetNumber(Sheet s)
s
-
public java.util.List<Sheet> getSheets()
public void removeSheets(Sheet... sheetsToRemove)
sheetsToRemove
-
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |