|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.metafiles.ColorMap
public final class ColorMap
The ColorMap class contains collection of color replacements for metafiles.
Field Summary | |
---|---|
static MetafilesRenderingHintKey |
METAFILES_COLOR_MAP
RenderingHint Key to use with ColorMap |
Constructor Summary | |
---|---|
ColorMap(int initialSize)
Constructs an empty ColorMap with the specified initial capacity. |
|
ColorMap(java.util.Map colorMap)
Constructs a new ColorMap with the same mappings as the specified Map. |
Method Summary | |
---|---|
boolean |
isEmpty()
Returns true if this map contains no color mappings. |
java.awt.Color |
mapColor(java.awt.Color color)
Returns the color to which the specified color is mapped, or null if the map contains no mapping for this color. |
void |
put(java.awt.Color key,
java.awt.Color value)
Associates the specified color with specified key-color in this map. |
void |
putAll(java.util.Map colorMap)
Copies all of the mappings from the specified map to this map. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static MetafilesRenderingHintKey METAFILES_COLOR_MAP
Constructor Detail |
---|
public ColorMap(int initialSize)
initialSize
- the initial capacity.public ColorMap(java.util.Map colorMap) throws MetafilesException
colorMap
- the map whose mappings are to be placed in this map.
MetafilesException
- if the specified map contains any keys or values except
Color.Method Detail |
---|
public void putAll(java.util.Map colorMap) throws MetafilesException
colorMap
- mappings to be stored in this map.
MetafilesException
- if the specified map contains any keys or values except
Color.public void put(java.awt.Color key, java.awt.Color value) throws MetafilesException
key
- key-color with which the specified color is to be associated.value
- color to be associated with the specified key-color.
MetafilesException
- if any of both colors is null.public java.awt.Color mapColor(java.awt.Color color)
color
- the color whose associated value is to be returned.
public boolean isEmpty()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |