References > Creo Schematics 4.0 API Guide > The Design Package > Class DesignColors
  
Class DesignColors
This concrete class manages design colors.
public class DesignColors
extends java.lang.Object
Hierarchical Diagram
Direct Known Subclasses
None
Methods
getMaxColorIndex
Returns the highest color index in the design.
public int getMaxColorIndex()
Throws: RSDException
setColor
Sets the color for the index provided.
public void setColor (int index, color)
Where:
index—A valid color index.
color—The color to set for the index in RGB values.
Throws: RSDException
getColor
Returns the color (RGB) set for the specified index.
public Color getColor (int index)
Where:
index—The index for which to get the color.
Throws: RSDException
indexValid
Checks that the index is valid or not.
public boolean indexValid (int index)
Throws: RSDException
Where:
index—The index to check. A valid index is between 1 and the getMaxColorIndex() value.
Methods Inherited
None