|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.aesthetic.VisualFrame
inetsoft.graph.aesthetic.ColorFrame
inetsoft.graph.aesthetic.CategoricalColorFrame
public class CategoricalColorFrame
This class defines a color frame for categorical values. Each value is assigned a distinct color.
| Field Summary | |
|---|---|
static Color[] |
COLOR_PALETTE
The color palette. |
| Constructor Summary | |
|---|---|
CategoricalColorFrame()
Create a color frame for categorical values. |
|
CategoricalColorFrame(String field)
Create a color frame. |
|
| Method Summary | |
|---|---|
Object |
clone()
Create a copy of this object. |
boolean |
equals(Object obj)
Check if equals another object. |
Color |
getColor(DataSet data,
String col,
int row)
Get the color for the chart object. |
Color |
getColor(int index)
Get the color at the specified index. |
Color |
getColor(Object val)
Get the color for the specified value. |
int |
getColorCount()
Get the number of colors in the frame. |
void |
init(DataSet data)
Initialize the categorical color frame with categorical values. |
void |
init(Object[] vals)
Initialize the categorical color frame with categorical values. |
void |
init(Object[] vals,
Color[] clrs)
Initialize the categorical color frame with categorical values and colors. |
boolean |
isStatic(Object val)
Check if the value is assigned a static aesthetic value. |
void |
setColor(int index,
Color color)
Set or append the color at the specified index. |
void |
setColor(Object val,
Color color)
Set the color for the specified value. |
| Methods inherited from class inetsoft.graph.aesthetic.ColorFrame |
|---|
getBrightness, isGrayscale, process, setBrightness, setGrayscale |
| Methods inherited from class inetsoft.graph.aesthetic.VisualFrame |
|---|
createComparator, getField, getLabels, getLegendFrame, getLegendSpec, getScale, getScaleOption, getTitle, getValues, hashCode, isValid, isVisible, setField, setLegendFrame, setLegendSpec, setScale, setScaleOption, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static Color[] COLOR_PALETTE
| Constructor Detail |
|---|
public CategoricalColorFrame()
public CategoricalColorFrame(String field)
field - field to get value to map to color.| Method Detail |
|---|
public void init(Object[] vals)
public void init(Object[] vals,
Color[] clrs)
public void init(DataSet data)
init in class VisualFrame
public Color getColor(DataSet data,
String col,
int row)
getColor in class ColorFramedata - the specified dataset.col - the name of the specified column.row - the specified row index.public Color getColor(Object val)
getColor in class ColorFrame
public void setColor(Object val,
Color color)
public boolean isStatic(Object val)
isStatic in interface CategoricalFramepublic Color getColor(int index)
public void setColor(int index,
Color color)
public int getColorCount()
public boolean equals(Object obj)
equals in class ColorFramepublic Object clone()
clone in class VisualFrame
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||