public class PaletteEntry extends Object
Constructor and Description |
---|
PaletteEntry()
Creates an instance of
PaletteEntry with transparent colors. |
PaletteEntry(int fill)
Creates an instance of
PaletteEntry with transparent colors and the specified fill. |
PaletteEntry(int fill,
int stroke)
Creates an instance of
PaletteEntry with transparent colors and the specified fill and stroke. |
PaletteEntry(int fill,
int stroke,
int additionalFill)
Creates an instance of
PaletteEntry with transparent colors and the specified fill, stroke and additional fill. |
PaletteEntry(int fill,
int stroke,
int additionalFill,
int additionalStroke)
Creates an instance of
PaletteEntry with the specified colors. |
PaletteEntry(int fill,
int stroke,
int additionalFill,
int additionalStroke,
float strokeWidth)
Creates an instance of
PaletteEntry with the specified colors. |
PaletteEntry(PaletteEntry entry)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
PaletteEntry |
clone() |
int |
getAdditionalFill()
Gets the additional fill color.
|
int |
getAdditionalStroke()
Gets the additional stroke color.
|
String |
getCustomValue(String keyName)
Gets a value for the provided key in the current
PaletteEntry . |
String |
getCustomValue(String keyName,
Object defaultValue)
Gets a value for the provided key in the current
PaletteEntry . |
String |
getCustomValue(String keyName,
String defaultValue)
Gets a value for the provided key in the current
PaletteEntry . |
int |
getFill()
Gets the fill color.
|
int |
getStroke()
Gets the stroke color.
|
float |
getStrokeWidth()
Gets the width of the stroke.
|
void |
setAdditionalFill(int value)
Sets the additional fill color.
|
void |
setAdditionalStroke(int value)
Sets the additional stroke color.
|
void |
setCustomValue(String keyName,
Object value)
Sets a value for the provided key in the current
PaletteEntry . |
void |
setCustomValue(String keyName,
String value)
Sets a value for the provided key in the current
PaletteEntry . |
void |
setFill(int value)
Sets the fill color.
|
void |
setStroke(int value)
Sets the stroke color.
|
void |
setStrokeWidth(float value)
Sets the width of the stroke.
|
public PaletteEntry()
PaletteEntry
with transparent colors.public PaletteEntry(int fill)
PaletteEntry
with transparent colors and the specified fill.public PaletteEntry(int fill, int stroke)
PaletteEntry
with transparent colors and the specified fill and stroke.public PaletteEntry(int fill, int stroke, int additionalFill)
PaletteEntry
with transparent colors and the specified fill, stroke and additional fill.public PaletteEntry(int fill, int stroke, int additionalFill, int additionalStroke)
PaletteEntry
with the specified colors.public PaletteEntry(int fill, int stroke, int additionalFill, int additionalStroke, float strokeWidth)
PaletteEntry
with the specified colors.public PaletteEntry(PaletteEntry entry)
public float getStrokeWidth()
public void setStrokeWidth(float value)
value
- the stroke width.public int getFill()
public void setFill(int value)
public int getStroke()
public void setStroke(int value)
public int getAdditionalFill()
public void setAdditionalFill(int value)
public int getAdditionalStroke()
public void setAdditionalStroke(int value)
public String getCustomValue(String keyName)
PaletteEntry
.
This method can be used by Chart elements that do not rely on the standard PaletteEntry
API for retrieving values.keyName
- the name of the key for which to retrieve the provided value.null
if there is no value present for the key.public String getCustomValue(String keyName, String defaultValue)
PaletteEntry
.
This method can be used by Chart elements that do not rely on the standard PaletteEntry
API for retrieving values.keyName
- the name of the key for which to retrieve the provided value.defaultValue
- the default value that will be returned if no custom value is present for the provided key.null
if there is no value present for the key.public String getCustomValue(String keyName, Object defaultValue)
PaletteEntry
.
This method can be used by Chart elements that do not rely on the standard PaletteEntry
API for retrieving values.keyName
- the name of the key for which to retrieve the provided value.defaultValue
- the default value that will be returned if no custom value is present for the provided key.null
if there is no value present for the key.public void setCustomValue(String keyName, String value)
PaletteEntry
.
This method can be used by Chart elements that do not rely on the standard PaletteEntry
API for storing values.keyName
- the name of the key for which to store the provided value.value
- the string value to store.public void setCustomValue(String keyName, Object value)
PaletteEntry
.
This method can be used by Chart elements that do not rely on the standard PaletteEntry
API for storing values.keyName
- the name of the key for which to store the provided value.value
- the value to store.public PaletteEntry clone()