|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.image.ColorModel
java.awt.image.IndexColorModel
ilog.views.maps.graphic.style.IlvEnumerationColorModel
public class IlvEnumerationColorModel
IlvEnumerationColorModel implements a color model that attaches
a color to each of the values passed in an array list.
| Field Summary |
|---|
| Fields inherited from class java.awt.image.ColorModel |
|---|
pixel_bits, transferType |
| Fields inherited from interface java.awt.Transparency |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
|---|---|
IlvEnumerationColorModel(IlvInputStream stream)
Creates a new IlvEnumerationColorModel instance. |
|
IlvEnumerationColorModel(int[] rgb,
IlvEnumerationColorModel origin)
Creates a new IlvEnumerationColorModel instance. |
|
| Method Summary | |
|---|---|
boolean |
allowLimitChange()
Should the color model editor be able to change the value of the limits Returns false. |
String |
format(int value)
Returns the string attached to the value. |
int |
getValueRGB(Object value)
Encodes a graphical object meta data into a color. |
static IlvEnumerationColorModel |
makeModel(ArrayList valuesList)
Creates an enumeration model with one random color for each of the values. |
int |
parse(String limit)
Finds the value attached to the limit. |
void |
write(IlvOutputStream out)
Writes the attributes of a persistent object. |
| Methods inherited from class java.awt.image.IndexColorModel |
|---|
convertToIntDiscrete, createCompatibleSampleModel, createCompatibleWritableRaster, finalize, getAlpha, getAlphas, getBlue, getBlues, getComponents, getComponents, getComponentSize, getDataElement, getDataElements, getDataElements, getGreen, getGreens, getMapSize, getRed, getReds, getRGB, getRGBs, getTransparency, getTransparentPixel, getValidPixels, isCompatibleRaster, isCompatibleSampleModel, isValid, isValid, toString |
| Methods inherited from class java.awt.image.ColorModel |
|---|
coerceData, equals, getAlpha, getAlphaRaster, getBlue, getColorSpace, getComponentSize, getDataElement, getDataElements, getGreen, getNormalizedComponents, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRGB, getRGBdefault, getTransferType, getUnnormalizedComponents, hasAlpha, hashCode, isAlphaPremultiplied |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvEnumerationColorModel(int[] rgb,
IlvEnumerationColorModel origin)
IlvEnumerationColorModel instance.
rgb - A new array of RGB colors.origin - The initial color model.
public IlvEnumerationColorModel(IlvInputStream stream)
throws IlvReadFileException
IlvEnumerationColorModel instance.
stream - The stream to read data from.
IlvReadFileException - if there is a problem reading from
stream.| Method Detail |
|---|
public static IlvEnumerationColorModel makeModel(ArrayList valuesList)
valuesList - A list of values that should be attached to colors.
public boolean allowLimitChange()
false.
allowLimitChange in interface IlvColorIntervalLimitFormatIlvColorIntervalLimitFormat.allowLimitChange()public String format(int value)
format in interface IlvColorIntervalLimitFormatvalue - The value.
IlvColorIntervalLimitFormat.format(int)public int parse(String limit)
parse in interface IlvColorIntervalLimitFormatlimit - The limit.
IlvColorIntervalLimitFormat.parse(java.lang.String)public int getValueRGB(Object value)
getValueRGB in interface IlvColorEncodervalue - The metadata to encode.
ColorModel.getRGBdefault() color model.IlvColorEncoder.getValueRGB(java.lang.Object)
public void write(IlvOutputStream out)
throws IOException
write in interface IlvPersistentObjectout - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.IlvPersistentObject.write(ilog.views.io.IlvOutputStream)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||