public class VanChartCategoryAxisGlyph extends VanChartBaseAxisGlyph
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.List<java.lang.String> |
categoryLabelList |
static double |
HALF |
DEFAULT_MAX, niceMaxValue, niceMinValue, TICK_COUNTaxisGridLength, 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| 构造器和说明 |
|---|
VanChartCategoryAxisGlyph() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCategoryLabel(java.lang.String label)
添加分类轴标签,
|
protected void |
calculateAxisLengthUnit()
计算坐标轴长度等 属性.
|
void |
drawAxisGrid(java.awt.Graphics g)
画坐标轴的网格线
|
protected void |
drawTickLabel(java.awt.Graphics g,
int resolution,
int labelCrement,
boolean isToNumber,
double offset) |
protected void |
drawTicks(java.awt.Graphics g,
int resolution)
画出刻度相关.
|
java.awt.geom.Point2D |
getAlertValuePoint(java.lang.Object ob)
对象在坐标轴的位置,category、time、value,如果drawBetween 则返回中间位置
|
double |
getArrowValue()
获取坐标轴在箭头处,也即坐标尾部的值
|
java.lang.String |
getAxisName() |
int |
getCategoryCount() |
java.util.Map<java.lang.String,java.lang.Integer> |
getCategoryIndexMap() |
double |
getCrossValue()
此坐标轴在zero点对应的值是多少,
|
java.lang.String |
getJSAxisType() |
int |
getLabelSamplingTime(int tickSamplingTime,
boolean isToNumber,
int labelSamplingTime,
int resolution,
double offset) |
java.lang.String |
getLabelString(int value,
boolean isToNumber) |
protected double |
getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
得到坐标轴标签中 占用位置最大的标签的尺寸
|
protected double |
getMaxTickValue() |
double |
getObjectValue(java.lang.Object ob) |
double |
getPreLeftWidth4DataSheet(int resolution)
返回坐标轴在左侧位置 可能占用的空间宽度 , 为了给数据表预留位置
|
boolean |
hasLabel(java.lang.String label)
是否已經有相同的坐標軸標籤了
|
void |
initMinMaxValue(double autoMin,
double autoMax)
初始化坐标轴的最大值和最小值
|
boolean |
isToNumber() |
void |
setCategoryIndexMap(java.util.Map<java.lang.String,java.lang.Integer> categoryIndexMap) |
addAxisLabelJSON, addMinMaxValue, addValueFormat, calculateBoundsWidthOrientationAndTitle, calculateTitleDimesion, calculateValueTimeNiceDomain, calculatorTitleBounds, dealOnZeroAxisGlyphLocation, draw, drawAfterPlot4AlertValues, drawAlertValueGlyph, drawAxisLine, drawAxisTitle, drawIntervalBackground, drawLabel, drawLabel, finallyUpdateAxisGridLength, getAlertValues, getCategoryNum, getCateLabelWidth, getCustomBackgroundShape, getCustomIntervalBackgroundArray, getDefaultIntervalBackgroundColor, getDefaultTickCount, getLeftRightY, getMainTickLine, getMaxHeight, getNiceMaxValue, getNiceMinValue, getObjectFromFormula, getOtherPoint2ValueLength, getOtherPositionGridLine, getOtherPositionLabelBounds, getOtherPositionTickLine, getOtherPositionTitleBounds, getPoint2D, getSecTickLine, getTickLengthShow, getTickLine, getTickLineByCenterPoint, getValuePoint, getVanAxisName, getVanAxisType, gridLineToJSON, init, initAxisGlyphStartPoint, initMinMaxValue, 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, toJSONObjectcalBoundsWithMoreLabel4Cate, 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, getTickSamplingTime, 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, value2Stringclone, selectableChildrenprotected java.util.List<java.lang.String> categoryLabelList
public static final double HALF
public java.util.Map<java.lang.String,java.lang.Integer> getCategoryIndexMap()
public void setCategoryIndexMap(java.util.Map<java.lang.String,java.lang.Integer> categoryIndexMap)
public void addCategoryLabel(java.lang.String label)
label - 标签.public boolean hasLabel(java.lang.String label)
public int getCategoryCount()
public void initMinMaxValue(double autoMin,
double autoMax)
initMinMaxValue 在类中 AxisGlyphautoMin - 最小值autoMax - 最大值protected double getMaxTickValue()
getMaxTickValue 在类中 VanChartBaseAxisGlyphpublic double getCrossValue()
getCrossValue 在类中 AxisGlyphpublic double getArrowValue()
getArrowValue 在类中 AxisGlyphpublic java.lang.String getJSAxisType()
getJSAxisType 在类中 AxisGlyphpublic java.lang.String getAxisName()
getAxisName 在类中 AxisGlyphpublic double getPreLeftWidth4DataSheet(int resolution)
getPreLeftWidth4DataSheet 在类中 AxisGlyphprotected double getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
getMaxLabelWidthAndInitStartEndLabelDim 在类中 AxisGlyphresolution - 分辨率protected void calculateAxisLengthUnit()
calculateAxisLengthUnit 在类中 AxisGlyphpublic java.awt.geom.Point2D getAlertValuePoint(java.lang.Object ob)
getAlertValuePoint 在类中 VanChartBaseAxisGlyphob - 该对象public double getObjectValue(java.lang.Object ob)
getObjectValue 在类中 VanChartBaseAxisGlyphpublic void drawAxisGrid(java.awt.Graphics g)
drawAxisGrid 在类中 AxisGlyphg - Graphicsprotected void drawTicks(java.awt.Graphics g,
int resolution)
protected void drawTickLabel(java.awt.Graphics g,
int resolution,
int labelCrement,
boolean isToNumber,
double offset)
public boolean isToNumber()
public int getLabelSamplingTime(int tickSamplingTime,
boolean isToNumber,
int labelSamplingTime,
int resolution,
double offset)
public java.lang.String getLabelString(int value,
boolean isToNumber)