|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.tickunit.DoubleTickUnit
com.ijchart.xychart.tickunit.LogTickUnit
public class LogTickUnit
Title: IJChart
Description: a chart library for the Java(tm) platform.
用于计算对数数字类型的数据的坐标轴刻度值.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static double |
DEFAULT_LOGARITHM_BASE
缺省的对数基数. |
Constructor Summary | |
---|---|
LogTickUnit()
缺省构造器. |
|
LogTickUnit(boolean notUseFlag,
double step)
构造器. |
|
LogTickUnit(double logarithmBase,
boolean notUseFlag)
构造器. |
|
LogTickUnit(double logarithmBase,
double step)
构造器. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of the object. |
boolean |
equals(java.lang.Object obj)
测试本对象是否和另一个对象相等. |
double |
getBaseLogValue()
返回基数的log值. |
java.lang.String[] |
getExponentLabels()
返回指数标签. |
double |
getLogarithmBase()
返回对数基数. |
java.lang.String[] |
getTickUnits(double minValue,
double maxValue,
int maxCount,
boolean includeZero)
根据最小值和最大值及数据的最大个数来确定坐标轴上的刻度值,刻度值都是double类型的浮点数. |
int |
hashCode()
覆盖hashCode方法. |
java.lang.String |
toString()
覆盖toString方法. |
Methods inherited from class com.ijchart.xychart.tickunit.DoubleTickUnit |
---|
getStep |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_LOGARITHM_BASE
Constructor Detail |
---|
public LogTickUnit()
public LogTickUnit(double logarithmBase, boolean notUseFlag)
logarithmBase
- double 对数基数,须大于1.
notUseFlag
- 布尔值.
public LogTickUnit(boolean notUseFlag, double step)
notUseFlag
- 布尔值.
step
- double 步长.
public LogTickUnit(double logarithmBase, double step)
logarithmBase
- double 对数基数,须大于1.
step
- double 步长.
Method Detail |
---|
public double getLogarithmBase()
public double getBaseLogValue()
public java.lang.String[] getExponentLabels()
public java.lang.String[] getTickUnits(double minValue, double maxValue, int maxCount, boolean includeZero)
getTickUnits
in interface INumberTickUnit
getTickUnits
in class DoubleTickUnit
minValue
- double 最小值.
maxValue
- double 最大值.
maxCount
- int 刻度值的最大个数,必须大于0.
includeZero
- boolean 布尔值,是否包含0值.
public boolean equals(java.lang.Object obj)
equals
in class DoubleTickUnit
obj
- the object (null permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class DoubleTickUnit
java.lang.CloneNotSupportedException
- if some component of the axis does
not support cloning.public int hashCode()
hashCode
in class DoubleTickUnit
public java.lang.String toString()
toString
in class DoubleTickUnit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |