|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.caff.maze.MazePropertyOwner
de.caff.maze.MazePaintProperties
de.caff.maze.MazePrintProperties
public class MazePrintProperties
Properties describing how a maze is painted.
![]() |
![]() |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.caff.maze.MazePropertyOwner |
---|
MazePropertyOwner.BooleanPropertyInformation, MazePropertyOwner.EnumPropertyInformation, MazePropertyOwner.InfoPropertyDisplay, MazePropertyOwner.IntegerPropertyInformation, MazePropertyOwner.PaintPropertyInformation |
Nested classes/interfaces inherited from interface de.caff.maze.MazePrintPropertiesProvider |
---|
MazePrintPropertiesProvider.BlowUpFactor |
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_BLOW_UP_FACTOR
Property key of BlowupFactor property describing on how many pages a maze should be drawn. |
static java.lang.String |
PROPERTY_PRINT_INFO
Property key of boolean property describing whether information about the maze should be printed. |
Fields inherited from interface de.caff.maze.MazePrintPropertiesProvider |
---|
RESOURCE_PAGE, RESOURCE_PAGES |
Constructor Summary | |
---|---|
MazePrintProperties(java.lang.String myKey)
Create a maze print properties element with the given key. |
Method Summary | |
---|---|
MazePrintPropertiesProvider.BlowUpFactor |
getBlowUpFactor()
Get the blow-up factor. |
static MazePrintPropertiesProvider.BlowUpFactor |
getBlowUpFactor(int factor)
Map a number of pages to a blowup factor. |
static MazePrintProperties |
getPrintMazePaintProperties(DataStorage systemAccess)
Get print properties. |
java.util.Collection<PropertyInformation> |
getPropertyInformations()
Get the property informations. |
boolean |
isPrintInfo()
Should the maze information be printed? |
(package private) void |
overwriteFromPersistentData(DataStorage dataStorage)
Overwrite the properties from the given data storage. |
void |
setBlowUpFactor(MazePrintPropertiesProvider.BlowUpFactor blowUpFactor)
Set the blow-up factor. |
void |
setPrintInfo(boolean printInfo)
Set whether the maze information should be printed. |
(package private) void |
storePersistentData(DataStorage dataStorage)
Store the settings in a data storage. |
Methods inherited from class de.caff.maze.MazePropertyOwner |
---|
addPropertyChangeListener, firePropertyChange, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.caff.maze.MazePaintPropertiesProvider |
---|
getBackgroundPaint, getCellBorderPaint, getInnerWallsPaint, getOuterWallPaint, getSolutionPaint, getWayEndPaint, getWayStartPaint, isShowingCellBorders, isShowingSolution |
Field Detail |
---|
public static final java.lang.String PROPERTY_BLOW_UP_FACTOR
public static final java.lang.String PROPERTY_PRINT_INFO
Constructor Detail |
---|
public MazePrintProperties(java.lang.String myKey)
myKey
- key of the propertiesMethod Detail |
---|
public static MazePrintProperties getPrintMazePaintProperties(DataStorage systemAccess)
systemAccess
- system access used to overwrite default settings
public static MazePrintPropertiesProvider.BlowUpFactor getBlowUpFactor(int factor)
factor
- number of pages
null
public MazePrintPropertiesProvider.BlowUpFactor getBlowUpFactor()
getBlowUpFactor
in interface MazePrintPropertiesProvider
public void setBlowUpFactor(MazePrintPropertiesProvider.BlowUpFactor blowUpFactor)
blowUpFactor
- the blow-up factorpublic boolean isPrintInfo()
isPrintInfo
in interface MazePrintPropertiesProvider
public void setPrintInfo(boolean printInfo)
printInfo
- true
: print info, false
: don't print infopublic java.util.Collection<PropertyInformation> getPropertyInformations()
getPropertyInformations
in class MazePaintProperties
void overwriteFromPersistentData(DataStorage dataStorage)
overwriteFromPersistentData
in class MazePaintProperties
dataStorage
- data storage to use for access to stored settingsvoid storePersistentData(DataStorage dataStorage)
storePersistentData
in class MazePaintProperties
dataStorage
- storage to store to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |