XmpColorantBase

Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage, com.groupdocs.metadata.core.XmpMetadataContainer, com.groupdocs.metadata.core.XmpComplexType

public class XmpColorantBase extends XmpComplexType

A structure containing the characteristics of a colorant (swatch) used in a document.

Methods

Method Description
getMode() Gets the colour space in which the colour is defined.
getSwatchName() Gets the name of the swatch.
setSwatchName(String value) Sets the name of the swatch.
getColorType() Gets the type of color.
setColorType(XmpColorType value) Sets the type of color.

getMode()

public final XmpColorantColorMode getMode()

Gets the colour space in which the colour is defined. One of: CMYK, RGB, LAB.

Returns: XmpColorantColorMode - The color mode.

getSwatchName()

public final String getSwatchName()

Gets the name of the swatch.

Returns: java.lang.String - The name of the swatch.

setSwatchName(String value)

public final void setSwatchName(String value)

Sets the name of the swatch.

Parameters:

Parameter Type Description
value java.lang.String The name of the swatch.

getColorType()

public final XmpColorType getColorType()

Gets the type of color.

Returns: XmpColorType - The color type.

setColorType(XmpColorType value)

public final void setColorType(XmpColorType value)

Sets the type of color.

Parameters:

Parameter Type Description
value XmpColorType The color type.