|
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.TimeScale
public class TimeScale
A time scale is used to map date/time values on a linear scale.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class inetsoft.graph.scale.Scale |
|---|
Scale.Value |
| Field Summary | |
|---|---|
static int |
DAY
Day interval. |
static int |
HOUR
Hour interval. |
static int |
MINUTE
Minute interval. |
static int |
MONTH
Month interval. |
static int |
QUARTER
Quarter interval. |
static int |
SECOND
Second interval. |
static int |
WEEK
Week interval. |
static int |
YEAR
Year interval. |
| Fields inherited from class inetsoft.graph.scale.Scale |
|---|
GAPS, MAX_VALUE, MIN_VALUE, NO_NULL, RAW, TICKS, ZERO, ZERO_VALUE |
| Constructor Summary | |
|---|---|
TimeScale()
Default constructor. |
|
TimeScale(Date min,
Date max)
Create a scale with user specified min and max. |
|
TimeScale(String[] fields)
Create a scale for the specified columns. |
|
| Method Summary | |
|---|---|
AxisSpec |
getAxisSpec()
Get the associated axis attributes. |
Number |
getIncrement()
Get the tick increment. |
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 |
getType()
Get the date type defined in TimeScale. |
int |
getUnitCount()
Each interval of the time scale is treated as an unit. |
Object[] |
getValues()
Get the values at each tick. |
void |
init(DataSet data)
Initialize the scale to use the values in the dataset. |
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 |
setAxisSpec(AxisSpec axisSpec)
Set the attribute for creating the axis for this scale. |
void |
setFill(boolean fill)
|
void |
setIncrement(Number increment)
Set the tick increment. |
void |
setMax(Date max)
Set the maximum value of the scale. |
void |
setMin(Date min)
Set the minimum value of the scale. |
void |
setType(int type)
Set the date type defined in TimeScale. |
| Methods inherited from class inetsoft.graph.scale.Scale |
|---|
add, clone, createScale, equals, getDataFields, getFields, getScaleOption, hashCode, map, setDataFields, setFields, setScaleOption, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SECOND
public static final int MINUTE
public static final int HOUR
public static final int DAY
public static final int WEEK
public static final int MONTH
public static final int QUARTER
public static final int YEAR
| Constructor Detail |
|---|
public TimeScale()
public TimeScale(Date min,
Date max)
public TimeScale(String[] fields)
| Method Detail |
|---|
public void init(DataSet data)
init in class Scaledata - is chart data table.public double mapValue(Object val)
mapValue in class Scalepublic double getMin()
getMin in class Scalepublic void setMin(Date min)
min - the min date.public double getMax()
getMax in class Scalepublic void setMax(Date max)
public int getType()
public void setType(int type)
type - the specified date type, e.g. MONTH, YEAR.public Number getIncrement()
public void setIncrement(Number increment)
public int getUnitCount()
getUnitCount in class Scalepublic double[] getTicks()
getTicks in class Scalepublic Object[] getValues()
getValues in class Scalepublic void setFill(boolean fill)
public boolean isFill()
public void setAxisSpec(AxisSpec axisSpec)
setAxisSpec in class Scalepublic AxisSpec getAxisSpec()
getAxisSpec 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 | ||||||||