public class DateAxisGlyph extends CategoryAxisGlyph
categoryLabelList, LABEL_OFFSET, PRE_LABEL_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, VERTICAL_ANGLE
构造器和说明 |
---|
DateAxisGlyph() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addMinMaxValue(JSONObject js,
Repository repo) |
protected void |
calculateAxisLengthUnit()
计算坐标轴长度等 属性.
|
void |
drawAxisGrid(java.awt.Graphics g)
画坐标轴的网格线
|
protected void |
drawAxisLine(java.awt.Graphics g,
int resolution)
画坐标轴的线
|
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() |
protected double |
getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
获取日期坐标轴占用位置最大的标签的尺寸
|
java.awt.geom.Point2D |
getPoint2D(double value)
得到坐标轴上值所对应的坐标轴点.
|
int |
getTickIndex4Value(int value)
返回数值对应的 刻度序号.
|
java.lang.String |
getVanAxisStringType() |
void |
initMinMaxValue(double autoMin,
double autoMax)
计算最大值最小值
|
java.util.Date |
nextDate(java.util.Date startDate,
int dateType,
int addValue)
kunsnat: 直接用日期对应的 刻度计算.
|
protected int |
tickNumberChangeUponLabelLocation() |
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
addCategoryLabel, addSecondLabel, addThirdLabel, calBoundsWithMoreLabel4Cate, dealWithPlotBounds, deletedRepeatLabel, draw4ThreeD, drawTickLable, equals, getBottomTitleBounds, getLabelSamplingTime, getLabelString, getMainType, getMaxTickValue, getPreLeftWidth4DataSheet, getSecondType, getTickNumber4CalDim, getTickSamplingTime, setCategoryLabelList, setMainType, setSecondType, setTimeSwitchMap
addAxisLabelJSON, calculateAxisGlyph, calculateBoundsWidthOrientationAndTitle, calculateLocationWithEllipsis, calculateTitleDimesion, calculatorTitleBounds, changeAxisLabelStringWithLabelBounds, dealPlotBoundsWithAxisLabel, dealPlotBoundsWithAxisTitle, dealPlotBoundsWithLabel, dealPlotBoundsWithLabelInHorizontal, draw, drawAfterPlot4AlertValues, drawArrow, drawAxisTitle, drawLabel, drawLabel, drawLabelWrapWhenNeed, drawTickLine, drawWithOutAlert, get2ValueLength, getAxisGridLength, getAxisLabelDim, getAxisLabelWidth, getAxisLabelWidth, getAxisLength, getAxisType, getBigDecimalMainUnit, getBounds, getCateLabelWidth, getCrossValueInPlot, getCubic, getDivideUnit, getFormat, getGridLine, getLabelBounds, getLabelBounds4WrapWhenAxisLeftOrRight, getLabelNumber, getLeftRightY, getLeftTitleBounds, getLineColor, getLineStyle, getMainGridColor, getMainGridStyle, getMainUnit, getMaxValue, getMinValue, getOrigin, getOtherPoint2ValueLength, getOtherPositionGridLine, getOtherPositionLabelBounds, getOtherPositionTickLine, getOtherPositionTitleBounds, getPlotLastBounds, getPlotZeroBounds, getPointInBounds, getPosition, getRightTitleBounds, getSecTickMarkType, getSecUnit, getShape, getShowUnit, getTextAttr, getThreeDBase, getTickLengthShow, getTickLine, getTickLineByCenterPoint, getTickMarkType, getTitleDim, getTopBottomX, getTopTitleBounds, getUnitLen, hasAxisReversed, init, isArrowShow, isCustomMainUnit, isCustomMaxValue, isCustomMinValue, isCustomSecUnit, isDrawBetweenTick, isHorizontal, isLog, isPercentage, isRevertAndArrow, isShowAxisLabel, isZoom, notShowAllAttr, 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, shouldBeHeight, shouldDrawTickLine, toVanJSONObject, value2String
clone, selectableChildren
public void initMinMaxValue(double autoMin, double autoMax)
initMinMaxValue
在类中 CategoryAxisGlyph
autoMin
- 最小值autoMax
- 最大值protected int tickNumberChangeUponLabelLocation()
protected void calculateAxisLengthUnit()
AxisGlyph
protected double getDateTypeNumber()
getDateTypeNumber
在类中 CategoryAxisGlyph
public int getTickIndex4Value(int value)
AxisGlyph
getTickIndex4Value
在类中 AxisGlyph
protected double getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
getMaxLabelWidthAndInitStartEndLabelDim
在类中 CategoryAxisGlyph
resolution
- 分辨率public java.awt.geom.Point2D getPoint2D(double value)
AxisGlyph
getPoint2D
在类中 AxisGlyph
public void drawAxisGrid(java.awt.Graphics g)
AxisGlyph
drawAxisGrid
在类中 CategoryAxisGlyph
g
- Graphicsprotected void drawAxisLine(java.awt.Graphics g, int resolution)
CategoryAxisGlyph
drawAxisLine
在类中 CategoryAxisGlyph
protected void drawTicks(java.awt.Graphics g, int resolution)
AxisGlyph
drawTicks
在类中 CategoryAxisGlyph
public java.util.Date nextDate(java.util.Date startDate, int dateType, int addValue)
startDate
- 起始日期dateType
- 日期刻度类型addValue
- 增加的值public double getCrossValue()
AxisGlyph
getCrossValue
在类中 CategoryAxisGlyph
public double getArrowValue()
AxisGlyph
getArrowValue
在类中 CategoryAxisGlyph
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 CategoryAxisGlyph
repo
- 请求JSONException
- 抛错public java.lang.String getJSAxisType()
getJSAxisType
在类中 CategoryAxisGlyph
public java.lang.String getVanAxisStringType()
protected void addMinMaxValue(JSONObject js, Repository repo) throws JSONException
addMinMaxValue
在类中 AxisGlyph
JSONException
public java.lang.String getAxisName()
getAxisName
在类中 CategoryAxisGlyph