public class CategoryAxisGlyph extends AxisGlyph
限定符和类型 | 字段和说明 |
---|---|
protected java.util.ArrayList |
categoryLabelList |
static double |
LABEL_OFFSET |
static double |
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
构造器和说明 |
---|
CategoryAxisGlyph() |
限定符和类型 | 方法和说明 |
---|---|
void |
addCategoryLabel(java.lang.Object label)
添加分类轴标签,
|
void |
addSecondLabel(java.lang.Object label)
添加多分类轴 第二层 标签
|
void |
addThirdLabel(java.lang.Object label)
添加多分类第三层 标签
|
protected void |
calBoundsWithMoreLabel4Cate(java.awt.geom.Rectangle2D plotBounds)
处理多层级的 标签高度计算.
|
protected void |
calculateAxisLengthUnit()
计算坐标轴长度等 属性.
|
protected double |
dealWithPlotBounds() |
void |
deletedRepeatLabel()
去除重复Label
|
void |
draw4ThreeD(java.awt.Graphics g,
int resolution) |
void |
drawAxisGrid(java.awt.Graphics g)
画坐标轴的网格线
|
protected void |
drawAxisLine(java.awt.Graphics g,
int resolution)
画坐标轴的线
|
protected void |
drawTickLable(java.awt.Graphics g,
int resolution) |
protected void |
drawTicks(java.awt.Graphics g,
int resolution)
画出刻度相关.
|
boolean |
equals(java.lang.Object ob) |
double |
getArrowValue()
获取坐标轴在箭头处,也即坐标尾部的值
|
java.lang.String |
getAxisName() |
protected java.awt.geom.Rectangle2D |
getBottomTitleBounds(java.awt.geom.Dimension2D titleDim,
int titlePosition) |
double |
getCrossValue()
此坐标轴在zero点对应的值是多少,
|
protected double |
getDateTypeNumber() |
java.lang.String |
getJSAxisType() |
int |
getLabelSamplingTime(int tickSamplingTime,
boolean isToNumber,
int labelSamplingTime,
int resolution,
double offset) |
java.lang.String |
getLabelString(int value,
boolean isToNumber) |
int |
getMainType() |
protected double |
getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
获取分类坐标轴占用位置最大的标签的尺寸
|
protected double |
getMaxTickValue() |
double |
getPreLeftWidth4DataSheet(int resolution)
返回坐标轴在左侧位置 可能占用的空间宽度 , 为了给数据表预留位置
|
int |
getSecondType() |
int |
getTickNumber4CalDim() |
int |
getTickSamplingTime() |
java.lang.String |
getVanAxisStringType() |
void |
initMinMaxValue(double autoMin,
double autoMax)
初始化最大最小值
|
void |
setCategoryLabelList(java.util.ArrayList categoryLabelList)
设置分类轴标签
|
void |
setMainType(int mainType) |
void |
setSecondType(int secondType) |
void |
setTimeSwitchMap(java.util.ArrayList<TimeSwitchAttr> array) |
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
addAxisLabelJSON, addMinMaxValue, 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, getPoint2D, getPointInBounds, getPosition, getRightTitleBounds, getSecTickMarkType, getSecUnit, getShape, getShowUnit, getTextAttr, getThreeDBase, getTickIndex4Value, 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 static final double LABEL_OFFSET
public static final double PRE_LABEL_HEIGHT
protected java.util.ArrayList categoryLabelList
public void setMainType(int mainType)
public int getMainType()
public void setSecondType(int secondType)
public int getSecondType()
public void setTimeSwitchMap(java.util.ArrayList<TimeSwitchAttr> array)
public void initMinMaxValue(double autoMin, double autoMax)
initMinMaxValue
在类中 AxisGlyph
autoMin
- 最小值autoMax
- 最大值protected double getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
getMaxLabelWidthAndInitStartEndLabelDim
在类中 AxisGlyph
resolution
- 分辨率public double getPreLeftWidth4DataSheet(int resolution)
getPreLeftWidth4DataSheet
在类中 AxisGlyph
public void deletedRepeatLabel()
protected void calculateAxisLengthUnit()
AxisGlyph
calculateAxisLengthUnit
在类中 AxisGlyph
protected double dealWithPlotBounds()
dealWithPlotBounds
在类中 AxisGlyph
protected java.awt.geom.Rectangle2D getBottomTitleBounds(java.awt.geom.Dimension2D titleDim, int titlePosition)
getBottomTitleBounds
在类中 AxisGlyph
protected void calBoundsWithMoreLabel4Cate(java.awt.geom.Rectangle2D plotBounds)
calBoundsWithMoreLabel4Cate
在类中 AxisGlyph
public void addCategoryLabel(java.lang.Object label)
label
- 标签.public void setCategoryLabelList(java.util.ArrayList categoryLabelList)
categoryLabelList
- 分类轴标签public void addSecondLabel(java.lang.Object label)
label
- 标签对象public void addThirdLabel(java.lang.Object label)
label
- 标签对象public int getTickNumber4CalDim()
public int getTickSamplingTime()
getTickSamplingTime
在类中 AxisGlyph
protected double getDateTypeNumber()
public int getLabelSamplingTime(int tickSamplingTime, boolean isToNumber, int labelSamplingTime, int resolution, double offset)
public java.lang.String getLabelString(int value, boolean isToNumber)
public void drawAxisGrid(java.awt.Graphics g)
AxisGlyph
drawAxisGrid
在类中 AxisGlyph
g
- Graphicsprotected void drawAxisLine(java.awt.Graphics g, int resolution)
drawAxisLine
在类中 AxisGlyph
public void draw4ThreeD(java.awt.Graphics g, int resolution)
draw4ThreeD
在类中 AxisGlyph
protected void drawTickLable(java.awt.Graphics g, int resolution)
protected void drawTicks(java.awt.Graphics g, int resolution)
AxisGlyph
protected double getMaxTickValue()
public double getCrossValue()
AxisGlyph
getCrossValue
在类中 AxisGlyph
public double getArrowValue()
AxisGlyph
getArrowValue
在类中 AxisGlyph
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 AxisGlyph
repo
- 请求JSONException
- 抛错public java.lang.String getJSAxisType()
getJSAxisType
在类中 AxisGlyph
public java.lang.String getVanAxisStringType()
getVanAxisStringType
在类中 AxisGlyph
public java.lang.String getAxisName()
getAxisName
在类中 AxisGlyph