|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.psika.numerist.Style
public class Style
Numerology characteristics style settings.
Nested Class Summary | |
---|---|
protected static class |
Style.ConfigColor
Static class with static methods returning Color objects
initialized from configuration strings. |
Field Summary | |
---|---|
protected static java.awt.Color |
defDiagonalLineColor
Default color for diagonal lines. |
protected static java.awt.Color |
defLineColor
Default color for lines. |
static java.awt.Color |
defNumberColor
Default color for digits. |
protected java.util.Map<java.lang.String,java.lang.String> |
map
Map of characters and their corresponding values and some other configuration values. |
protected cz.psika.numerist.Style.Mapping |
mapping
Mapping of numbers. |
protected java.lang.String |
styleName
Name of this style. |
Constructor Summary | |
---|---|
protected |
Style(java.io.File styleConfigFile)
Protected constructor. |
|
Style(Style oldStyle)
Copy constructor. |
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String key)
Get parameter value of this style. |
java.awt.Color |
getColorForLine(int line)
Returns color of concrete lines. |
java.awt.Color |
getColorForNumber(int number)
Each numbers could have it's own color. |
cz.psika.numerist.Style.Mapping |
getMapping()
Get mapping of numbers <-> numbers. |
java.lang.String |
getName()
Get name of this style. |
int |
getNumberOnPos(int pos)
Returns digit on given diagram position. |
int |
getPositionOfNumber(int number)
Returns position of concrete number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,java.lang.String> map
protected cz.psika.numerist.Style.Mapping mapping
public static final java.awt.Color defNumberColor
protected static final java.awt.Color defLineColor
protected static final java.awt.Color defDiagonalLineColor
protected java.lang.String styleName
Constructor Detail |
---|
protected Style(java.io.File styleConfigFile) throws java.io.IOException
styleConfigFile
- file with style definition
java.io.IOException
- in case of problems reading configuration file
java.lang.IllegalArgumentException
- if styleConfigFile
is null
public Style(Style oldStyle)
oldStyle
- old Style
objectMethod Detail |
---|
public java.lang.String get(java.lang.String key)
key
- parameter definition
null
when not existspublic int getNumberOnPos(int pos)
pos
- position start with zero, i.e place in top left corner
Style.Mapping.numbers
public int getPositionOfNumber(int number)
number
- or digit, we want to know it's position
Style.Mapping.positions
public java.awt.Color getColorForNumber(int number)
number
- number in diagram for which we want to know it's color
public java.awt.Color getColorForLine(int line)
line
- public java.lang.String getName()
public cz.psika.numerist.Style.Mapping getMapping()
Mapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |