public class VanChartTimeAxisGlyph extends VanChartBaseAxisGlyph
DEFAULT_MAX, niceMaxValue, niceMinValue, TICK_COUNT
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, VERTICAL_ANGLE
构造器和说明 |
---|
VanChartTimeAxisGlyph() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addMinMaxValue(JSONObject js,
Repository repo) |
protected void |
addValueFormat(JSONObject js,
Repository repo) |
protected void |
calculateAxisLengthUnit()
计算坐标轴长度等 属性.
|
void |
calculateTimeNiceDomain(boolean adjustMinMax,
double minValue,
double maxValue) |
void |
drawAxisGrid(java.awt.Graphics g)
画坐标轴的网格线
|
protected void |
drawTicks(java.awt.Graphics g,
int resolution)
画出刻度相关.
|
double |
getArrowValue()
获取坐标轴在箭头处,也即坐标尾部的值
|
java.lang.String |
getAxisName() |
double |
getCrossValue()
此坐标轴在zero点对应的值是多少,
|
protected double |
getDateTypeNumber() |
java.lang.String |
getJSAxisType() |
TimeType |
getMainType()
返回主要日期类型
|
protected double |
getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
得到坐标轴标签中 占用位置最大的标签的尺寸
|
double |
getObjectValue(java.lang.Object ob) |
double |
getPreLeftWidth4DataSheet(int resolution)
返回左轴可能的预留宽度 标签 + 标题 + 警戒值
|
TimeType |
getSecondType()
返回次要日期类型
|
int |
getTickNumber4CalDim() |
int |
getTickSamplingTime() |
void |
initMinMaxValue(double autoMin,
double autoMax)
计算最大值最小值
|
void |
initMinMaxValue(double autoMin,
double autoMax,
boolean adjustMinMax)
初始化坐标轴的最大值和最小值
|
java.util.Date |
nextDate(java.util.Date startDate,
int dateType,
int addValue)
kunsnat: 直接用日期对应的 刻度计算.
|
void |
setMainType(TimeType mainType)
设置主要日期类型
|
void |
setSecondType(TimeType secondType)
设置次要日期类型
|
addAxisLabelJSON, calculateBoundsWidthOrientationAndTitle, calculateTitleDimesion, calculateValueTimeNiceDomain, calculatorTitleBounds, dealOnZeroAxisGlyphLocation, draw, drawAfterPlot4AlertValues, drawAlertValueGlyph, drawAxisLine, drawAxisTitle, drawIntervalBackground, drawLabel, drawLabel, finallyUpdateAxisGridLength, getAlertValuePoint, getAlertValues, getCategoryNum, getCateLabelWidth, getCustomBackgroundShape, getCustomIntervalBackgroundArray, getDefaultIntervalBackgroundColor, getDefaultTickCount, getLeftRightY, getMainTickLine, getMaxHeight, getMaxTickValue, getNiceMaxValue, getNiceMinValue, getObjectFromFormula, getOtherPoint2ValueLength, getOtherPositionGridLine, getOtherPositionLabelBounds, getOtherPositionTickLine, getOtherPositionTitleBounds, getPoint2D, getSecTickLine, getTickLengthShow, getTickLine, getTickLineByCenterPoint, getValuePoint, getVanAxisName, getVanAxisType, gridLineToJSON, init, initAxisGlyphStartPoint, isAutoLabelGap, isCommonValueFormat, isHorizontalAxis, isLimitSize, isRevertAndArrow, isRotation, isTitleUseHtml, isXAdd, isYAdd, notShowAllAttr, setAlertValues, setAutoLabelGap, setCategoryNum, setChartBounds, setCommonValueFormat, setCustomIntervalBackgroundArray, setCustomMaxValue, setCustomMinValue, setDefaultIntervalBackgroundColor, setHtmlLabel, setISXAxis, setLimitSize, setMainTickLine, setMaxHeight, setMinMaxTickInterval, setNiceMaxValue, setNiceMinValue, setRotation, setSecTickLine, setTitleUseHtml, setVanAxisName, setVanAxisType, shouldBeHeight, shouldDrawTickLine, toJSONObject
calBoundsWithMoreLabel4Cate, calculateAxisGlyph, calculateLocationWithEllipsis, changeAxisLabelStringWithLabelBounds, dealPlotBoundsWithAxisLabel, dealPlotBoundsWithAxisTitle, dealPlotBoundsWithLabel, dealPlotBoundsWithLabelInHorizontal, dealWithPlotBounds, draw4ThreeD, drawArrow, drawLabelWrapWhenNeed, drawTickLine, drawWithOutAlert, equals, get2ValueLength, getAxisGridLength, getAxisLabelDim, getAxisLabelWidth, getAxisLabelWidth, getAxisLength, getAxisType, getBigDecimalMainUnit, getBottomTitleBounds, getBounds, getCrossValueInPlot, getCubic, getDivideUnit, getFormat, getGridLine, getLabelBounds, getLabelBounds4WrapWhenAxisLeftOrRight, getLabelNumber, getLeftTitleBounds, getLineColor, getLineStyle, getMainGridColor, getMainGridStyle, getMainUnit, getMaxValue, getMinValue, getOrigin, getPlotLastBounds, getPlotZeroBounds, getPointInBounds, getPosition, getRightTitleBounds, getSecTickMarkType, getSecUnit, getShape, getShowUnit, getTextAttr, getThreeDBase, getTickIndex4Value, getTickLine, getTickLineByCenterPoint, getTickMarkType, getTitleDim, getTopBottomX, getTopTitleBounds, getUnitLen, getVanAxisStringType, hasAxisReversed, isArrowShow, isCustomMainUnit, isCustomMaxValue, isCustomMinValue, isCustomSecUnit, isDrawBetweenTick, isHorizontal, isLog, isPercentage, isShowAxisLabel, isZoom, setArrowShow, setAttr, setAxisGridLength, setAxisLabelWidth, setAxisLength, setAxisReversed, setAxisType, setBounds, setCubic, setCustomMainUnit, setCustomMaxValue, setCustomMinValue, setCustomSecUnit, setDrawBetweenTick, setFormat, setLabelNumber, setLabelWrap, setLineColor, setLineStyle, setLog, setMainGridColor, setMainGridStyle, setMainUnit, setMaxValue, setMinMaxValue, setMinValue, setOrigin, setPlotZeroBounds, setPosition, setSecTickMarkType, setSecUnit, setShowAxisLabel, setTextAttr, setThreeDBase, setTickMarkType, setTitleGlyph, setUnitLen, setZoom, toVanJSONObject, value2String
clone, selectableChildren
public void setMainType(TimeType mainType)
public TimeType getMainType()
public void setSecondType(TimeType secondType)
public TimeType getSecondType()
public void initMinMaxValue(double autoMin, double autoMax)
initMinMaxValue
在类中 AxisGlyph
autoMin
- 最小值autoMax
- 最大值public void initMinMaxValue(double autoMin, double autoMax, boolean adjustMinMax)
initMinMaxValue
在类中 VanChartBaseAxisGlyph
autoMin
- 自动计算后是否调整最大最小值(柱形图x轴为数值或者时间)autoMax
- 最小值adjustMinMax
- 最大值public void calculateTimeNiceDomain(boolean adjustMinMax, double minValue, double maxValue)
public void drawAxisGrid(java.awt.Graphics g)
AxisGlyph
drawAxisGrid
在类中 AxisGlyph
g
- Graphicspublic java.util.Date nextDate(java.util.Date startDate, int dateType, int addValue)
startDate
- 起始日期dateType
- 日期刻度类型addValue
- 增加的值public double getObjectValue(java.lang.Object ob)
getObjectValue
在类中 VanChartBaseAxisGlyph
public int getTickSamplingTime()
getTickSamplingTime
在类中 AxisGlyph
public int getTickNumber4CalDim()
protected double getDateTypeNumber()
protected void calculateAxisLengthUnit()
calculateAxisLengthUnit
在类中 AxisGlyph
protected double getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
getMaxLabelWidthAndInitStartEndLabelDim
在类中 AxisGlyph
resolution
- 分辨率protected void addValueFormat(JSONObject js, Repository repo) throws JSONException
addValueFormat
在类中 VanChartBaseAxisGlyph
JSONException
protected void drawTicks(java.awt.Graphics g, int resolution)
public double getCrossValue()
getCrossValue
在类中 AxisGlyph
public double getArrowValue()
getArrowValue
在类中 AxisGlyph
public java.lang.String getJSAxisType()
getJSAxisType
在类中 AxisGlyph
public java.lang.String getAxisName()
getAxisName
在类中 AxisGlyph
public double getPreLeftWidth4DataSheet(int resolution)
getPreLeftWidth4DataSheet
在类中 AxisGlyph
protected void addMinMaxValue(JSONObject js, Repository repo) throws JSONException
addMinMaxValue
在类中 VanChartBaseAxisGlyph
JSONException