public class ValueAxisGlyph extends NumberAxisGlyph
maxLeftAlert, maxRightAlert, UNIT_HEIGHTaxisGridLength, 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| 构造器和说明 |
|---|
ValueAxisGlyph() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
calculateAxisLengthUnit()
计算坐标轴 单位长度
|
protected void |
dealAlertLabelWidth(int resolution) |
void |
dealPlotBoundsWithAlert(java.awt.geom.Rectangle2D plotBounds,
int resolution)
处理绘图区的边界,考虑警戒线的情况
|
void |
dealPlotBoundsWithAxisLabel(java.awt.geom.Rectangle2D plotBounds,
int resolution)
处理警戒线的字符
|
void |
draw4ThreeD(java.awt.Graphics g,
int resolution) |
protected void |
drawAfterPlot4AlertValues(java.awt.Graphics2D g2d,
int resolution)
在绘图区之后 画警戒线
|
void |
drawAxisGrid(java.awt.Graphics g)
主次网格线以及警戒线
|
protected void |
drawAxisLine(java.awt.Graphics g,
int resolution)
画坐标轴本身 和 刻度
|
protected void |
drawTicks(java.awt.Graphics g,
int resolution)
画刻度 y轴
|
boolean |
equals(java.lang.Object ob) |
double |
getArrowValue()
返回坐标轴箭头处的值, 最大值
|
java.lang.String |
getAxisName() |
protected double |
getCateLabelWidth(java.awt.geom.Rectangle2D plotBounds,
int resolution) |
double |
getCrossValue()
返回最小值
|
double |
getCrossValueInPlot()
返回交叉点的值.
|
java.lang.String |
getJSAxisType()
返回对应的js类型.
|
protected java.awt.geom.Rectangle2D |
getLabelBounds(double value,
double offset,
java.lang.String labelString,
int resolution) |
protected double |
getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
获取值坐标轴占用位置最大的标签的尺寸, 横向坐标轴返回标签的最大高度,纵向坐标轴返回标签的最大宽度
初始化最初和最后的标签Dim大小
|
double |
getModelAlertValue(ChartAlertValueGlyph chartAlertValue,
int alertIndex) |
java.awt.geom.Point2D |
getPoint2D(double value)
返回值 所对应的坐标轴点
|
java.awt.geom.Point2D |
getPointInBounds(double value)
返回值 对应绘图区位置的坐标点
处理了越界的情况.
|
double |
getPreLeftWidth4DataSheet(int resolution)
返回坐标轴在左侧位置 可能占用的空间宽度 , 为了给数据表预留位置
|
int |
getTickSamplingTime() |
java.lang.String |
getVanAxisStringType() |
boolean |
isAlignZeroValue()
返回是否0值对齐
|
boolean |
isNeedAutoWrap()
是否需要换行
|
void |
setAlignZeroValue(boolean alignZeroValue)
设置是否0值对齐(组合图)
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
JSONObject |
toVanJSONObject(Repository repo) |
getAlertValues, getBaseLog, getDivideUnit, getMaxLeftAlert, getMaxRightAlert, getShowUnit, initMinMaxValue, isLog, isPercentage, setAlertValues, setBaseLog, setLog, setPercentage, setShowUnit, setUnitPaddingaddAxisLabelJSON, addMinMaxValue, calBoundsWithMoreLabel4Cate, calculateAxisGlyph, calculateBoundsWidthOrientationAndTitle, calculateLocationWithEllipsis, calculateTitleDimesion, calculatorTitleBounds, changeAxisLabelStringWithLabelBounds, dealPlotBoundsWithAxisTitle, dealPlotBoundsWithLabel, dealPlotBoundsWithLabelInHorizontal, dealWithPlotBounds, draw, drawArrow, drawAxisTitle, drawLabel, drawLabel, drawLabelWrapWhenNeed, drawTickLine, drawWithOutAlert, get2ValueLength, getAxisGridLength, getAxisLabelDim, getAxisLabelWidth, getAxisLabelWidth, getAxisLength, getAxisType, getBigDecimalMainUnit, getBottomTitleBounds, getBounds, getCubic, getFormat, getGridLine, getLabelBounds4WrapWhenAxisLeftOrRight, getLabelNumber, getLeftRightY, getLeftTitleBounds, getLineColor, getLineStyle, getMainGridColor, getMainGridStyle, getMainUnit, getMaxValue, getMinValue, getOrigin, getOtherPoint2ValueLength, getOtherPositionGridLine, getOtherPositionLabelBounds, getOtherPositionTickLine, getOtherPositionTitleBounds, getPlotLastBounds, getPlotZeroBounds, getPosition, getRightTitleBounds, getSecTickMarkType, getSecUnit, getShape, getTextAttr, getThreeDBase, getTickIndex4Value, getTickLengthShow, getTickLine, getTickLineByCenterPoint, getTickMarkType, getTitleDim, getTopBottomX, getTopTitleBounds, getUnitLen, 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, value2Stringclone, selectableChildrenpublic void setAlignZeroValue(boolean alignZeroValue)
public boolean isAlignZeroValue()
public void dealPlotBoundsWithAxisLabel(java.awt.geom.Rectangle2D plotBounds,
int resolution)
dealPlotBoundsWithAxisLabel 在类中 AxisGlyphplotBounds - 绘图区边界resolution - 分辨率public void dealPlotBoundsWithAlert(java.awt.geom.Rectangle2D plotBounds,
int resolution)
plotBounds - 绘图区边界resolution - 分辨率public double getPreLeftWidth4DataSheet(int resolution)
getPreLeftWidth4DataSheet 在类中 AxisGlyphprotected double getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
getMaxLabelWidthAndInitStartEndLabelDim 在类中 AxisGlyphresolution - 分辨率protected void dealAlertLabelWidth(int resolution)
public boolean isNeedAutoWrap()
protected double getCateLabelWidth(java.awt.geom.Rectangle2D plotBounds,
int resolution)
getCateLabelWidth 在类中 AxisGlyphpublic void calculateAxisLengthUnit()
calculateAxisLengthUnit 在类中 AxisGlyphpublic double getCrossValue()
getCrossValue 在类中 AxisGlyphpublic double getCrossValueInPlot()
getCrossValueInPlot 在类中 AxisGlyphpublic double getArrowValue()
getArrowValue 在类中 AxisGlyphpublic java.awt.geom.Point2D getPointInBounds(double value)
getPointInBounds 在类中 AxisGlyphvalue - 坐标轴上的值public java.awt.geom.Point2D getPoint2D(double value)
getPoint2D 在类中 AxisGlyphpublic int getTickSamplingTime()
getTickSamplingTime 在类中 AxisGlyphpublic void draw4ThreeD(java.awt.Graphics g,
int resolution)
draw4ThreeD 在类中 AxisGlyphpublic void drawAxisGrid(java.awt.Graphics g)
drawAxisGrid 在类中 AxisGlyphg - Graphicsprotected void drawAfterPlot4AlertValues(java.awt.Graphics2D g2d,
int resolution)
AxisGlyphdrawAfterPlot4AlertValues 在类中 AxisGlyphprotected void drawAxisLine(java.awt.Graphics g,
int resolution)
drawAxisLine 在类中 AxisGlyphprotected void drawTicks(java.awt.Graphics g,
int resolution)
protected java.awt.geom.Rectangle2D getLabelBounds(double value,
double offset,
java.lang.String labelString,
int resolution)
getLabelBounds 在类中 AxisGlyphvalue - 标签的位置offset - 偏移量,标签画在刻度之间时为0.5,画在刻度下面时为0labelString - 标签文本resolution - 屏幕分辨率public double getModelAlertValue(ChartAlertValueGlyph chartAlertValue, int alertIndex)
public boolean equals(java.lang.Object ob)
equals 在类中 NumberAxisGlyphpublic JSONObject toVanJSONObject(Repository repo) throws JSONException
toVanJSONObject 在类中 NumberAxisGlyphJSONExceptionpublic JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject 在接口中 GlyphtoJSONObject 在类中 NumberAxisGlyphrepo - 请求JSONException - 抛错public java.lang.String getJSAxisType()
getJSAxisType 在类中 AxisGlyphpublic java.lang.String getVanAxisStringType()
getVanAxisStringType 在类中 AxisGlyphpublic java.lang.String getAxisName()
getAxisName 在类中 AxisGlyph