|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.brewer.color.PaletteSuitability
Contains the suitability information for a single palette with several colour schemes.
Field Summary | |
static int |
QUALITY_BAD
Suitability = BAD |
static int |
QUALITY_DOUBTFUL
Suitability = DOUBTFUL |
static int |
QUALITY_GOOD
Suitability = GOOD |
static int |
QUALITY_UNKNOWN
Suitability = UNKNOWN |
static int |
VIEWER_COLORBLIND
ViewerType = Suitable for the colorblind? |
static int |
VIEWER_CRT
ViewerType = Suitable for CRT monitors? |
static int |
VIEWER_LCD
ViewerType = Suitable for LCD monitors? |
static int |
VIEWER_PHOTOCOPY
ViewerType = Suitable for photocopiers? |
static int |
VIEWER_PRINT
ViewerType = Suitable for colour printing? |
static int |
VIEWER_PROJECTOR
ViewerType = Suitable for overhead projectors (lcd)? |
Constructor Summary | |
PaletteSuitability()
|
Method Summary | |
int |
getMaxColors()
|
int[] |
getSuitability(int numClasses)
Indexed getter for property paletteSuitability. |
int |
getSuitability(int numClasses,
int viewerType)
Indexed getter for the property paletteSuitability. |
void |
setSuitability(int numClasses,
java.lang.String[] suitability)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int QUALITY_GOOD
public static final int QUALITY_UNKNOWN
public static final int QUALITY_DOUBTFUL
public static final int QUALITY_BAD
public static final int VIEWER_COLORBLIND
public static final int VIEWER_PHOTOCOPY
public static final int VIEWER_PROJECTOR
public static final int VIEWER_LCD
public static final int VIEWER_CRT
public static final int VIEWER_PRINT
Constructor Detail |
public PaletteSuitability()
Method Detail |
public int[] getSuitability(int numClasses)
numClasses
- The number of colors to determine the suitability for
public int getSuitability(int numClasses, int viewerType)
numClasses
- number of colours in this paletteviewerType
- PaletteSuitability.VIEWER_COLORBLIND, VIEWER_PHOTOCOPY,
VIEWER_PROJECTOR, VIEWER_LCD, VIEWER_CRT, or VIEWER_PRINT.
public void setSuitability(int numClasses, java.lang.String[] suitability) throws java.io.IOException
numClasses
- Index of the property.suitability
- New value of the property atindex
.
java.io.IOException
public int getMaxColors()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |