|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRandomColorRamp
Provides access to members that control the properties of a RandomColorRamp. A color ramp that is a list of randomly picked colors.
IRandomColorRamp generates a specified number of unique, equally different, colors. The range of colors can be restricted based on a hue range, value range, or saturation range. The RandomColorRamp is designed around the HSV color model and therefore the colors in a random color ramp may be restricted in terms of hue, saturation, and value. Setting the StartHue and EndHue properties to values between 0 and 360 will restrict the colors that may appear in the ramp. Setting MinValue and MaxValue to between 0 and 100 will restrict the brightness, and setting MinSaturation and MaxSaturation to between 0 and 100 will restrict the purity of the colors in the ramp. Remember when you are setting your ranges that StartHue must alwasy be less than the EndHue, MinSaturation less than MaxSaturation, and MinValue less than MaxValue. If the values are set incorrectly, the RandomColorRamp will use the full range of hue, saturation, or value.
By default, the UseSeed property of the IRandomColorRamp is False. In this case, the RandomColorRamp creates a new random number to use as the seed value for each call to CreateRamp, ensuring that the Colors created are random and different each time CreateRamp is called. If the UseSeed property is set to True, the seed used for the RandomColorRamp is taken from the Seed property, and therefore each time you call CreateRamp with a specific Seed value, the sequence of colors created is unchanged.
IPresetColorRamp
,
IMultiPartColorRamp
,
IAlgorithmicColorRamp
,
IColorRamp.getColor(int)
,
IRandomColorRamp
,
IColorRamp.createRamp(boolean[])
,
IColorRamp
Method Summary | |
---|---|
int |
getEndHue()
The end hue (0-360). |
int |
getMaxSaturation()
The maximum saturation (0-100). |
int |
getMaxValue()
The maximum value (0-100). |
int |
getMinSaturation()
The minimum saturation (0-100). |
int |
getMinValue()
The minimum value (0-100). |
int |
getSeed()
The seed of the random number generator. |
int |
getStartHue()
The start hue (0-360). |
boolean |
isUseSeed()
Indicates if a seed is used when the ramp is generated. |
void |
setEndHue(int endHue)
The end hue (0-360). |
void |
setMaxSaturation(int maxSaturation)
The maximum saturation (0-100). |
void |
setMaxValue(int maxValue)
The maximum value (0-100). |
void |
setMinSaturation(int minSaturation)
The minimum saturation (0-100). |
void |
setMinValue(int minValue)
The minimum value (0-100). |
void |
setSeed(int seed)
The seed of the random number generator. |
void |
setStartHue(int startHue)
The start hue (0-360). |
void |
setUseSeed(boolean useSeed)
Indicates if a seed is used when the ramp is generated. |
Methods inherited from interface com.esri.arcgis.display.IColorRamp |
---|
createRamp, getColor, getColors, getName, getSize, setName, setSize |
Method Detail |
---|
void setSeed(int seed) throws IOException, AutomationException
seed
- The seed (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSeed() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setUseSeed(boolean useSeed) throws IOException, AutomationException
useSeed
- The useSeed (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isUseSeed() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMinValue(int minValue) throws IOException, AutomationException
minValue
- The minValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMinValue() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxValue(int maxValue) throws IOException, AutomationException
maxValue
- The maxValue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxValue() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMinSaturation(int minSaturation) throws IOException, AutomationException
minSaturation
- The minSaturation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMinSaturation() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxSaturation(int maxSaturation) throws IOException, AutomationException
maxSaturation
- The maxSaturation (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxSaturation() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStartHue(int startHue) throws IOException, AutomationException
startHue
- The startHue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IHsvColor
,
IHlsColor
int getStartHue() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IHsvColor
,
IHlsColor
void setEndHue(int endHue) throws IOException, AutomationException
endHue
- The endHue (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IHsvColor
,
IHlsColor
int getEndHue() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IHsvColor
,
IHlsColor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |