public class VanChartLegendGlyph extends LegendGlyph
font, MAX_LEFT_WIDTH, PADDING_GAP, ROW_COL_GAP, START_HEIGHT, START_WIDTH, THIRTY_PERCENT
bounds, visible
构造器和说明 |
---|
VanChartLegendGlyph() |
限定符和类型 | 方法和说明 |
---|---|
void |
addLegendJSON(JSONObject js,
Repository repo)
系列写入json
|
JSONObject |
addLegendJSON4Refresh(JSONObject js,
Repository repo) |
double |
getFloatPercentX()
返回悬浮位置 距离左上角横向位置
|
double |
getFloatPercentY()
返回悬浮位置 距离左上角纵向位置
|
protected double |
getLegendHeight(java.awt.geom.Rectangle2D chartBounds,
int resolution) |
protected double |
getLegendWidth(java.awt.geom.Rectangle2D chartBounds,
int resolution) |
protected double |
getLegendWithProportion()
设置区域宽度最大占比
|
protected double |
getLegendX(java.awt.geom.Rectangle2D chartOriginalBounds,
java.awt.geom.Rectangle2D chartBounds,
int resolution) |
protected double |
getLegendY(java.awt.geom.Rectangle2D chartOriginalBounds,
java.awt.geom.Rectangle2D chartBounds,
int resolution) |
double |
getMaxHeight()
返回区域最大占比
|
boolean |
isFloating()
返回是否自定义悬浮位置
|
boolean |
isHighlight() |
boolean |
isLimitSize()
返回是否限制区域大小
|
protected java.awt.geom.Dimension2D |
preLegendDim4TopAndBottom(java.awt.geom.Rectangle2D legendBounds,
int resolution) |
protected void |
refreshChartBoundsWithLegendBounds(java.awt.geom.Rectangle2D chartBounds,
java.awt.geom.Rectangle2D legendBounds,
double widthGap,
double heightGap) |
protected void |
refreshItem4TopAndBottom(java.awt.geom.Rectangle2D legendBounds,
int resolution) |
void |
setFloating(boolean floating)
设置是否自定义悬浮位置
|
void |
setFloatPercentX(double x)
设置悬浮位置 距离左上角横向位置
|
void |
setFloatPercentY(double y)
设置悬浮位置 距离左上角纵向位置
|
void |
setHighlight(boolean isHighlight) |
protected void |
setLegendBounds(java.awt.geom.Rectangle2D legendBounds) |
void |
setLimitSize(boolean limitSize)
设置是否限制区域大小
|
void |
setMaxHeight(double maxHeight)
设置区域最大占比
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
changeLegendBounds, draw, equals, getFont, getItems, getPosition, initMaxLegendWidth4DrawisCut, isNotEnough4ItemInTopAndBottom, layoutLegendAndRefreshChartBounds, 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 setFloating(boolean floating)
floating
- 设置是否自定义悬浮位置public boolean isFloating()
public void setFloatPercentX(double x)
x
- 横向位置public double getFloatPercentX()
public void setFloatPercentY(double y)
y
- 纵向位置public double getFloatPercentY()
public void setLimitSize(boolean limitSize)
limitSize
- 是否限制区域大小public boolean isLimitSize()
public void setMaxHeight(double maxHeight)
maxHeight
- 区域最大占比public double getMaxHeight()
public boolean isHighlight()
public void setHighlight(boolean isHighlight)
protected double getLegendWithProportion()
getLegendWithProportion
在类中 LegendGlyph
protected void setLegendBounds(java.awt.geom.Rectangle2D legendBounds)
setLegendBounds
在类中 LegendGlyph
protected void refreshChartBoundsWithLegendBounds(java.awt.geom.Rectangle2D chartBounds, java.awt.geom.Rectangle2D legendBounds, double widthGap, double heightGap)
protected double getLegendX(java.awt.geom.Rectangle2D chartOriginalBounds, java.awt.geom.Rectangle2D chartBounds, int resolution)
getLegendX
在类中 LegendGlyph
protected double getLegendY(java.awt.geom.Rectangle2D chartOriginalBounds, java.awt.geom.Rectangle2D chartBounds, int resolution)
getLegendY
在类中 LegendGlyph
protected double getLegendWidth(java.awt.geom.Rectangle2D chartBounds, int resolution)
getLegendWidth
在类中 LegendGlyph
protected double getLegendHeight(java.awt.geom.Rectangle2D chartBounds, int resolution)
getLegendHeight
在类中 LegendGlyph
protected java.awt.geom.Dimension2D preLegendDim4TopAndBottom(java.awt.geom.Rectangle2D legendBounds, int resolution)
preLegendDim4TopAndBottom
在类中 LegendGlyph
protected void refreshItem4TopAndBottom(java.awt.geom.Rectangle2D legendBounds, int resolution)
refreshItem4TopAndBottom
在类中 LegendGlyph
public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 Glyph
toJSONObject
在类中 LegendGlyph
repo
- 请求JSONException
- 抛错public void addLegendJSON(JSONObject js, Repository repo) throws JSONException
js
- json对象repo
- 请求JSONException
- 抛错public JSONObject addLegendJSON4Refresh(JSONObject js, Repository repo) throws JSONException
JSONException