|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.scale.Scale
inetsoft.graph.scale.CategoricalScale
public class CategoricalScale
A categorical scale is used to map nominal values to their logical position.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class inetsoft.graph.scale.Scale |
|---|
Scale.Value |
| Field Summary |
|---|
| Fields inherited from class inetsoft.graph.scale.Scale |
|---|
GAPS, MAX_VALUE, MIN_VALUE, NO_NULL, RAW, TICKS, ZERO, ZERO_VALUE |
| Constructor Summary | |
|---|---|
CategoricalScale()
Default constructor. |
|
CategoricalScale(String[] fields)
Create a categorical scale for the specified fields. |
|
| Method Summary | |
|---|---|
void |
addValue(Object val)
Add a value to the categorical list. |
Object |
clone()
Clone this object. |
double |
getMax()
Get the maximum value on the scale. |
double |
getMin()
Get the minimum value on the scale. |
double[] |
getTicks()
Get the tick positions. |
int |
getUnitCount()
Categorical scale is divided into same number of units as the weighted number of ticks plus the gap on each side. |
Object[] |
getValues()
Get the values at each tick. |
void |
init(DataSet data)
Initialize the scale to use the values in the chartLens. |
void |
init(Object[] vals)
Initialize the scale with the supplied value. |
boolean |
isFill()
Check whether the scale should fill or leave gaps at two sides. |
double |
mapValue(Object val)
Map a value to a logical position using this scale. |
void |
setFill(boolean fill)
Set whether the scale should fill or leave gaps at two sides. |
void |
setScaleOption(int option)
Override the setScaleOption method to provide the ability to remove null for the notShowNull combobox. |
void |
setValues(Object[] vals)
Set the values on the scale. |
| Methods inherited from class inetsoft.graph.scale.Scale |
|---|
add, createScale, equals, getAxisSpec, getDataFields, getFields, getScaleOption, hashCode, map, setAxisSpec, setDataFields, setFields, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CategoricalScale()
public CategoricalScale(String[] fields)
| Method Detail |
|---|
public void init(DataSet data)
init in class Scaledata - is chart data table.public void setScaleOption(int option)
setScaleOption in class Scalepublic void init(Object[] vals)
public double mapValue(Object val)
mapValue in class Scaleval - the value need to get the logical position.
public double getMin()
getMin in class Scalepublic double getMax()
getMax in class Scalepublic double[] getTicks()
getTicks in class Scalepublic Object[] getValues()
getValues in class Scalepublic void setValues(Object[] vals)
public void addValue(Object val)
public void setFill(boolean fill)
public boolean isFill()
public int getUnitCount()
getUnitCount in class Scalepublic Object clone()
clone in class Scale
|
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 | ||||||||