|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.pattern.TiledPatternGenerator
public class TiledPatternGenerator
Creates arbitrary-sized pattern blocks, assuming you have enough pattern files to supply it with.
This object keeps track of what pattern blocks you have used. It stores it in a map of each page (basically a Rectangle2D bounds). Once a request comes in that is not servicable by this SINGLE page, it will increment the patternFile Number, and allow you to get pattern from the next page.
This software is distributed under the BSD License.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_PATTERN_PACKAGE_NAME
The name of the default pattern package (stored in pattern/default/). |
Constructor Summary | |
---|---|
TiledPatternGenerator()
Default Pattern Path Location (PaperToolkit\data\pattern), automatically copied by eclipse to the export folder: PaperToolkit\bin\pattern. |
|
TiledPatternGenerator(java.io.File patternPathLocation)
Customize the location of pattern definition files. |
Method Summary | |
---|---|
void |
displayTilingInformation(Units horizontal,
Units vertical)
Prints out some information on the tiling... |
PatternPackage |
getCurrentPatternPackage()
|
TiledPattern |
getPattern(Units width,
Units height)
Returned pattern that is tiled appropriately, and automatically selected from the pattern package. |
PatternPackage |
getPatternPackageByName(java.lang.String name)
|
java.util.List<java.lang.String> |
listAvailablePatternPackageNames()
|
void |
resetUniquePatternTracker()
Resets the tracked history in this object. |
void |
setPatternFileNumber(int num)
Explicitly manipulate the page number which will be the source of pattern for the next call to getPattern(...) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_PATTERN_PACKAGE_NAME
Constructor Detail |
---|
public TiledPatternGenerator()
public TiledPatternGenerator(java.io.File patternPathLocation)
Method Detail |
---|
public void displayTilingInformation(Units horizontal, Units vertical)
public PatternPackage getCurrentPatternPackage()
public TiledPattern getPattern(Units width, Units height)
width
- the amount of pattern we needheight
-
public PatternPackage getPatternPackageByName(java.lang.String name)
name
-
public java.util.List<java.lang.String> listAvailablePatternPackageNames()
public void resetUniquePatternTracker()
public void setPatternFileNumber(int num)
num
-
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |