public class RadarAxisGlyph extends NumberAxisGlyph
maxLeftAlert, maxRightAlert, UNIT_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
构造器和说明 |
---|
RadarAxisGlyph() |
限定符和类型 | 方法和说明 |
---|---|
void |
addCategoryLabel(java.lang.Object label)
添加分类标签
|
void |
calculateAxisLengthUnit()
计算坐标轴单位
|
void |
dealPlotBoundsWithAxisLabel(java.awt.geom.Rectangle2D plotBounds,
int resolution)
计算 绘图区 坐标轴边界
|
void |
drawAxisGrid(java.awt.Graphics g)
网格线 如果单独配置每个的话.
|
protected void |
drawAxisLine(java.awt.Graphics g,
int resolution)
画坐标轴 线
|
protected void |
drawAxisTitle(java.awt.Graphics g,
int resolution)
画坐标轴标题
|
protected void |
drawFirstAxisLabel(java.awt.Graphics g,
int categoryIndex,
double value,
double divide_unit,
java.awt.geom.GeneralPath labelBoundsPath,
int resolution)
和ValueAxisGlyph 和 CategoryAxisGlyph画法不同..
|
protected void |
drawTicks(java.awt.Graphics g,
java.awt.geom.GeneralPath labelBoundsPath,
int resolution) |
protected void |
drawTicks(java.awt.Graphics g,
int resolution)
画出刻度相关.
|
boolean |
equals(java.lang.Object ob) |
double |
getArrowValue()
获取坐标轴在箭头处,也即坐标尾部的值
|
java.lang.String |
getAxisName() |
double |
getCrossValue()
返回雷达坐标轴在原点对应的值
|
java.awt.geom.Line2D[] |
getGridLine(double value)
返回网格线.
|
java.lang.String |
getJSAxisType() |
protected double |
getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
获取雷达坐标轴占用位置最大的标签的尺寸
|
java.awt.geom.Point2D |
getPointInBounds(int categoryIndex,
double value) |
double |
getPreLeftWidth4DataSheet(int resolution)
返回坐标轴在左侧位置 可能占用的空间宽度 , 为了给数据表预留位置
|
java.awt.Shape |
getShape()
返回坐标轴占据的Shape
|
void |
init(java.awt.geom.Rectangle2D plotBounds)
初始化
|
boolean |
isAllMaxMin() |
void |
paintRadarBackground(java.awt.Graphics g,
java.awt.Color color) |
void |
setAllMaxMin(boolean isAllMaxMin) |
void |
setCategoryCount(int categoryCount) |
void |
setD(double d) |
void |
setRadarMax(double[] radarMax) |
void |
setRadarMin(double[] radarMin) |
void |
setRadian(double radian) |
protected boolean |
shouldBeHeight()
根据坐标轴的方向是横着的还是竖着的
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
getAlertValues, getBaseLog, getDivideUnit, getMaxLeftAlert, getMaxRightAlert, getShowUnit, initMinMaxValue, isLog, isPercentage, setAlertValues, setBaseLog, setLog, setPercentage, setShowUnit, setUnitPadding, toVanJSONObject
addAxisLabelJSON, addMinMaxValue, calBoundsWithMoreLabel4Cate, calculateAxisGlyph, calculateBoundsWidthOrientationAndTitle, calculateLocationWithEllipsis, calculateTitleDimesion, calculatorTitleBounds, changeAxisLabelStringWithLabelBounds, dealPlotBoundsWithAxisTitle, dealPlotBoundsWithLabel, dealPlotBoundsWithLabelInHorizontal, dealWithPlotBounds, draw, draw4ThreeD, drawAfterPlot4AlertValues, drawArrow, drawLabel, drawLabel, drawLabelWrapWhenNeed, drawTickLine, drawWithOutAlert, get2ValueLength, getAxisGridLength, getAxisLabelDim, getAxisLabelWidth, getAxisLabelWidth, getAxisLength, getAxisType, getBigDecimalMainUnit, getBottomTitleBounds, getBounds, getCateLabelWidth, getCrossValueInPlot, getCubic, getFormat, 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, getTextAttr, getThreeDBase, getTickIndex4Value, getTickLengthShow, getTickLine, getTickLineByCenterPoint, getTickMarkType, getTickSamplingTime, getTitleDim, getTopBottomX, getTopTitleBounds, getUnitLen, getVanAxisStringType, hasAxisReversed, 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, shouldDrawTickLine, value2String
clone, selectableChildren
public boolean isAllMaxMin()
public java.lang.String getJSAxisType()
getJSAxisType
在类中 AxisGlyph
public java.lang.String getAxisName()
getAxisName
在类中 AxisGlyph
public void setRadarMax(double[] radarMax)
public void setRadarMin(double[] radarMin)
public void setAllMaxMin(boolean isAllMaxMin)
public void setCategoryCount(int categoryCount)
public void setD(double d)
public void setRadian(double radian)
public java.awt.Shape getShape()
AxisGlyph
public double getCrossValue()
getCrossValue
在类中 AxisGlyph
public double getArrowValue()
getArrowValue
在类中 AxisGlyph
public void addCategoryLabel(java.lang.Object label)
label
- 标签public void init(java.awt.geom.Rectangle2D plotBounds)
public void dealPlotBoundsWithAxisLabel(java.awt.geom.Rectangle2D plotBounds, int resolution)
dealPlotBoundsWithAxisLabel
在类中 AxisGlyph
plotBounds
- 绘图区Boundsresolution
- 分辨率public void calculateAxisLengthUnit()
calculateAxisLengthUnit
在类中 AxisGlyph
protected double getMaxLabelWidthAndInitStartEndLabelDim(int resolution)
getMaxLabelWidthAndInitStartEndLabelDim
在类中 AxisGlyph
resolution
- 分辨率protected boolean shouldBeHeight()
AxisGlyph
shouldBeHeight
在类中 AxisGlyph
public java.awt.geom.Point2D getPointInBounds(int categoryIndex, double value)
public void drawAxisGrid(java.awt.Graphics g)
drawAxisGrid
在类中 AxisGlyph
g
- Graphicspublic void paintRadarBackground(java.awt.Graphics g, java.awt.Color color)
public java.awt.geom.Line2D[] getGridLine(double value)
getGridLine
在类中 AxisGlyph
value
- protected void drawAxisLine(java.awt.Graphics g, int resolution)
AxisGlyph
drawAxisLine
在类中 AxisGlyph
protected void drawTicks(java.awt.Graphics g, int resolution)
AxisGlyph
protected void drawTicks(java.awt.Graphics g, java.awt.geom.GeneralPath labelBoundsPath, int resolution)
protected void drawFirstAxisLabel(java.awt.Graphics g, int categoryIndex, double value, double divide_unit, java.awt.geom.GeneralPath labelBoundsPath, int resolution)
protected void drawAxisTitle(java.awt.Graphics g, int resolution)
AxisGlyph
drawAxisTitle
在类中 AxisGlyph
public boolean equals(java.lang.Object ob)
equals
在类中 NumberAxisGlyph
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 NumberAxisGlyph
repo
- 请求JSONException
- 抛错public double getPreLeftWidth4DataSheet(int resolution)
getPreLeftWidth4DataSheet
在类中 AxisGlyph