public class VanChartRangeLegendGlyph extends VanChartLegendGlyph
font, MAX_LEFT_WIDTH, PADDING_GAP, ROW_COL_GAP, START_HEIGHT, START_WIDTH, THIRTY_PERCENT
bounds, visible
构造器和说明 |
---|
VanChartRangeLegendGlyph() |
限定符和类型 | 方法和说明 |
---|---|
void |
addLegendJSON(JSONObject js,
Repository repo)
系列写入json
|
JSONObject |
addLegendJSON4Refresh(JSONObject js,
Repository repo) |
void |
draw(java.awt.Graphics g,
int resolution)
画GeneralGlyph
|
java.awt.Color |
getColor(double value)
根据数值计算在范围图例中应该有的颜色
|
java.util.ArrayList<GradualColorDist> |
getGradualColors() |
LegendLabelFormat |
getLegendLabelFormat() |
LegendType |
getLegendType() |
double |
getMax() |
double |
getMaxValueFromAreaColor(AreaColor areaColor) |
double |
getMin() |
double |
getMinValueFromAreaColor(AreaColor areaColor) |
java.util.List<AreaColor> |
getSectionColors() |
void |
layoutLegendAndRefreshChartBounds(java.awt.geom.Rectangle2D chartOriginalBounds,
java.awt.geom.Rectangle2D chartBounds,
double width_gap,
double height_gap,
int resolution)
布局图例内部并刷新图表的边界
|
void |
setCustomMax(boolean customMax) |
void |
setCustomMin(boolean customMin) |
void |
setCustomSection(boolean customSection) |
void |
setGradualColors(java.util.ArrayList<GradualColorDist> gradualColors) |
void |
setLegendLabelFormat(LegendLabelFormat legendLabelFormat) |
void |
setLegendType(LegendType legendType) |
void |
setMainColor(java.awt.Color mainColor) |
void |
setMax(double max) |
void |
setMin(double min) |
void |
setNumber(int number) |
void |
setSectionColors(java.util.List<AreaColor> sectionColors) |
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
boolean |
ValueIncludedRange(double value) |
getFloatPercentX, getFloatPercentY, getLegendHeight, getLegendWidth, getLegendWithProportion, getLegendX, getLegendY, getMaxHeight, isFloating, isHighlight, isLimitSize, preLegendDim4TopAndBottom, refreshChartBoundsWithLegendBounds, refreshItem4TopAndBottom, setFloating, setFloatPercentX, setFloatPercentY, setHighlight, setLegendBounds, setLimitSize, setMaxHeight
changeLegendBounds, equals, getFont, getItems, getPosition, initMaxLegendWidth4DrawisCut, isNotEnough4ItemInTopAndBottom, prefferedLegendSizeWithChartBounds, refresItemBounds, selectableChildren, setFont, setItemBoundsNull, setItems, setPosition, toVanJSONObject
clone, getBounds, getOutline4Fill, getShape, isInvisible, isVisible, setBounds, setVisible
dealCondition, dealConditionWithSeriesColor, drawOnlyBorder, drawWithOutBorder, getAlpha, getBackground, getBorderColor, getBorderStyle, getGeneralInfo, getRoundRadius, is3DIE6, isRoundBorder, isShadow, paint, paintBackground, putBackgroundJSON, putPlotBackgroundJSON, setAlpha, setBackground, setBorderColor, setBorderStyle, setGeneralInfo, setRoundBorder
public void setCustomSection(boolean customSection)
public void setMainColor(java.awt.Color mainColor)
public void setNumber(int number)
public void setCustomMin(boolean customMin)
public void setCustomMax(boolean customMax)
public LegendType getLegendType()
public void setLegendType(LegendType legendType)
public LegendLabelFormat getLegendLabelFormat()
public void setLegendLabelFormat(LegendLabelFormat legendLabelFormat)
public double getMin()
public void setMin(double min)
public double getMax()
public void setMax(double max)
public java.util.ArrayList<GradualColorDist> getGradualColors()
public void setGradualColors(java.util.ArrayList<GradualColorDist> gradualColors)
public java.util.List<AreaColor> getSectionColors()
public void setSectionColors(java.util.List<AreaColor> sectionColors)
public void layoutLegendAndRefreshChartBounds(java.awt.geom.Rectangle2D chartOriginalBounds, java.awt.geom.Rectangle2D chartBounds, double width_gap, double height_gap, int resolution)
layoutLegendAndRefreshChartBounds
在类中 LegendGlyph
chartOriginalBounds
- 最初图表边界(没有title等裁剪)chartBounds
- 图表边界width_gap
- 宽度间隔height_gap
- 高度间隔resolution
- 分辨率public java.awt.Color getColor(double value)
value
- public boolean ValueIncludedRange(double value)
public double getMinValueFromAreaColor(AreaColor areaColor)
public double getMaxValueFromAreaColor(AreaColor areaColor)
public void draw(java.awt.Graphics g, int resolution)
GeneralGlyph
draw
在接口中 Glyph
draw
在类中 LegendGlyph
g
- 图形对象resolution
- 分辨率public JSONObject toJSONObject(Repository repo) throws JSONException
VanChartLegendGlyph
toJSONObject
在接口中 Glyph
toJSONObject
在类中 VanChartLegendGlyph
repo
- 请求JSONException
- 抛错public void addLegendJSON(JSONObject js, Repository repo) throws JSONException
VanChartLegendGlyph
addLegendJSON
在类中 VanChartLegendGlyph
js
- json对象repo
- 请求JSONException
- 抛错public JSONObject addLegendJSON4Refresh(JSONObject js, Repository repo) throws JSONException
addLegendJSON4Refresh
在类中 VanChartLegendGlyph
JSONException