public abstract class NumberAxisGlyph extends AxisGlyph
限定符和类型 | 字段和说明 |
---|---|
protected double |
maxLeftAlert |
protected double |
maxRightAlert |
static double |
UNIT_HEIGHT |
axisGridLength, axisLabelWidth, axisLength, axisReversed, bounds, DEFAULT_SAMPLING_TIME, DEFAULT_UNIT, endLabelDim, format, isArrowShow, isCustomMaxValue, isCustomMinValue, isLabelWrap, isShowAxisLabel, labelNumber, lineColor, lineStyle, MAIN_TICK_LENGTH, mainGridColor, mainGridStyle, mainUnit, MAX_AXIS_LABEL_HEIGHT, MAX_AXIS_LABEL_WIDTH, maxValue, MIN_TICK_LENGTH, minValue, originPoint, PIE_ANGLE, plotLastBounds, plotZeroBounds, position, SEC_TICK_LENGTH, secTickMarkType, startLabelDim, textAttr, threeDBase, TICK_WIDTH, tickMarkType, titleDim, titleGlyph, TOP_AND_DOWN_GAP, unitLength
构造器和说明 |
---|
NumberAxisGlyph() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object ob) |
ChartAlertValueGlyph[] |
getAlertValues()
获取坐标轴的警戒线数组
|
double |
getBaseLog()
获取对数坐标轴对数的底数
|
double |
getDivideUnit() |
double |
getMaxLeftAlert()
返回左边的最大距离
|
double |
getMaxRightAlert()
返回右边的最大距离
|
AxisUnitType |
getShowUnit()
返回坐标轴的显示刻度
|
void |
initMinMaxValue(double autoMin,
double autoMax)
初始化最大值、最小值以及刻度大小
|
boolean |
isLog()
获取该坐标轴是否为对数坐标轴
|
boolean |
isPercentage()
返回坐标轴是否为百分比坐标轴
|
void |
setAlertValues(ChartAlertValueGlyph[] alertValues)
设置坐标轴的警戒线结合
|
void |
setBaseLog(double baseLog)
设置当该坐标轴为对数坐标轴时对数的底
|
void |
setLog(boolean isLog)
设置该坐标轴是否为对数坐标轴
|
void |
setPercentage(boolean isPercentage)
设置坐标轴是否为百分比坐标轴
|
void |
setShowUnit(AxisUnitType showUnit)
设置坐标轴的显示刻度
|
void |
setUnitPadding(java.lang.String unitPadding) |
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
JSONObject |
toVanJSONObject(Repository repo) |
addAxisLabelJSON, addMinMaxValue, calBoundsWithMoreLabel4Cate, calculateAxisGlyph, calculateAxisLengthUnit, calculateBoundsWidthOrientationAndTitle, calculateLocationWithEllipsis, calculateTitleDimesion, calculatorTitleBounds, changeAxisLabelStringWithLabelBounds, dealPlotBoundsWithAxisLabel, dealPlotBoundsWithAxisTitle, dealPlotBoundsWithLabel, dealPlotBoundsWithLabelInHorizontal, dealWithPlotBounds, draw, draw4ThreeD, drawAfterPlot4AlertValues, drawArrow, drawAxisGrid, drawAxisLine, drawAxisTitle, drawLabel, drawLabel, drawLabelWrapWhenNeed, drawTickLine, drawTicks, drawWithOutAlert, get2ValueLength, getArrowValue, getAxisGridLength, getAxisLabelDim, getAxisLabelWidth, getAxisLabelWidth, getAxisLength, getAxisName, getAxisType, getBigDecimalMainUnit, getBottomTitleBounds, getBounds, getCateLabelWidth, getCrossValue, getCrossValueInPlot, getCubic, getFormat, getGridLine, getJSAxisType, getLabelBounds, getLabelBounds4WrapWhenAxisLeftOrRight, getLabelNumber, getLeftRightY, getLeftTitleBounds, getLineColor, getLineStyle, getMainGridColor, getMainGridStyle, getMainUnit, getMaxLabelWidthAndInitStartEndLabelDim, getMaxValue, getMinValue, getOrigin, getOtherPoint2ValueLength, getOtherPositionGridLine, getOtherPositionLabelBounds, getOtherPositionTickLine, getOtherPositionTitleBounds, getPlotLastBounds, getPlotZeroBounds, getPoint2D, getPointInBounds, getPosition, getPreLeftWidth4DataSheet, getRightTitleBounds, getSecTickMarkType, getSecUnit, getShape, getTextAttr, getThreeDBase, getTickIndex4Value, getTickLengthShow, getTickLine, getTickLineByCenterPoint, getTickMarkType, getTickSamplingTime, getTitleDim, getTopBottomX, getTopTitleBounds, getUnitLen, getVanAxisStringType, hasAxisReversed, init, isArrowShow, isCustomMainUnit, isCustomMaxValue, isCustomMinValue, isCustomSecUnit, isDrawBetweenTick, isHorizontal, isRevertAndArrow, isShowAxisLabel, isZoom, notShowAllAttr, setArrowShow, setAttr, setAxisGridLength, setAxisLabelWidth, setAxisLength, setAxisReversed, setAxisType, setBounds, setCubic, setCustomMainUnit, setCustomMaxValue, setCustomMinValue, setCustomSecUnit, setDrawBetweenTick, setFormat, setLabelNumber, setLabelWrap, setLineColor, setLineStyle, setMainGridColor, setMainGridStyle, setMainUnit, setMaxValue, setMinMaxValue, setMinValue, setOrigin, setPlotZeroBounds, setPosition, setSecTickMarkType, setSecUnit, setShowAxisLabel, setTextAttr, setThreeDBase, setTickMarkType, setTitleGlyph, setUnitLen, setZoom, shouldBeHeight, shouldDrawTickLine, value2String
clone, selectableChildren
public static final double UNIT_HEIGHT
protected transient double maxLeftAlert
protected transient double maxRightAlert
public double getMaxLeftAlert()
public double getMaxRightAlert()
public void setLog(boolean isLog)
public void setBaseLog(double baseLog)
baseLog
- 对数的底数public double getBaseLog()
public void setUnitPadding(java.lang.String unitPadding)
public void setAlertValues(ChartAlertValueGlyph[] alertValues)
alertValues
- 警戒线数组public ChartAlertValueGlyph[] getAlertValues()
public void setPercentage(boolean isPercentage)
isPercentage
- true表示是百分比坐标轴public boolean isPercentage()
isPercentage
在类中 AxisGlyph
public void setShowUnit(AxisUnitType showUnit)
showUnit
- 刻度public AxisUnitType getShowUnit()
getShowUnit
在类中 AxisGlyph
public double getDivideUnit()
getDivideUnit
在类中 AxisGlyph
public void initMinMaxValue(double autoMin, double autoMax)
initMinMaxValue
在类中 AxisGlyph
autoMin
- 最小值autoMax
- 最大值public JSONObject toVanJSONObject(Repository repo) throws JSONException
toVanJSONObject
在类中 AxisGlyph
JSONException
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 AxisGlyph
repo
- 请求JSONException
- 抛错