ChartColorBarpublic class ChartLegend extends Object
| 限定符和类型 | 类 | 说明 |
|---|---|---|
class |
ChartLegend.LayoutLegendBean |
|
static class |
ChartLegend.LayoutLegendBeanBeanInfo |
|
static class |
ChartLegend.PlotOrientationEditor |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected double |
_hBarHeight |
|
protected double |
_vBarWidth |
|
protected int |
aspect |
|
protected boolean |
autoExtendFrac |
|
protected Color |
background |
|
protected boolean |
drawBackground |
|
protected boolean |
drawMaxLabel |
|
protected boolean |
drawMinLabel |
|
protected boolean |
drawNeatLine |
|
protected boolean |
extendRect |
|
protected int |
height |
|
protected ChartText |
label |
|
protected String |
labelLocation |
|
protected int |
legendHeight |
|
protected LegendScheme |
legendScheme |
|
protected int |
legendWidth |
|
protected Color |
neatLineColor |
|
protected float |
neatLineSize |
|
protected PlotOrientation |
orientation |
|
protected float |
shrink |
|
protected float |
tickLabelAngle |
|
protected Color |
tickLabelColor |
|
protected Font |
tickLabelFont |
|
protected int |
width |
|
protected float |
x |
|
protected float |
xshift |
|
protected float |
y |
|
protected float |
yshift |
| 构造器 | 说明 |
|---|---|
ChartLegend(LegendScheme ls) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
draw(Graphics2D g,
PointF point) |
Draw legend
|
int |
getAspect() |
Get aspect
|
Color |
getBackground() |
Get background
|
int |
getColumnNumber() |
Get column number
|
int |
getHeight() |
Get height
|
ChartText |
getLabel() |
Get label
|
Color |
getLabelColor() |
Get label color
|
Font |
getLabelFont() |
Get label font
|
String |
getLabelLocation() |
Get label location (in, out, top, bottom, left, right)
|
Dimension |
getLegendDimension(Graphics2D g,
Dimension limitDim) |
Get legend dimension
|
int |
getLegendHeight() |
Get legend height
|
LegendScheme |
getLegendScheme() |
Get legend scheme
|
int |
getLegendWidth() |
Get legend width
|
Color |
getNeatLineColor() |
Get neat line color
|
float |
getNeatLineSize() |
Get neat line size
|
PlotOrientation |
getPlotOrientation() |
Get plot orientation
|
LegendPosition |
getPosition() |
Get legend position
|
float |
getShrink() |
Get shrink
|
Dimension |
getSymbolDimension() |
Get symbol dimension
|
protected int |
getTickGap(Graphics2D g) |
Update tick gap
|
protected int |
getTickHeight(Graphics2D g) |
|
float |
getTickLabelAngle() |
Get tick lable angle
|
Color |
getTickLabelColor() |
Get tick label color
|
Font |
getTickLabelFont() |
Get Tick label font
|
protected int |
getTickWidth(Graphics2D g) |
|
int |
getWidth() |
Get width
|
float |
getX() |
Get X
|
float |
getXShift() |
Get x shift - pixel unit
|
float |
getY() |
Get Y
|
float |
getYShift() |
Get y shift - pixel unit
|
boolean |
isAutoExtendFrac() |
Get if auto set extend fraction - extend has save width and height Only
valid for colorbar
|
boolean |
isAutoRowColNum() |
Get if automatic set row/col number
|
boolean |
isColorbar() |
Get if is color bar
|
boolean |
isDrawBackground() |
Get if draw background
|
boolean |
isDrawMaxLabel() |
Get if draw maximum value label
|
boolean |
isDrawMinLabel() |
Get if draw minimum value label
|
boolean |
isDrawNeatLine() |
Get if draw neat line
|
boolean |
isExtendRect() |
Get if extend rectangle - or triangle
|
void |
setAspect(int value) |
Set aspect
|
void |
setAutoExtendFrac(boolean value) |
Set if auto set extend fraction - extend has save width and height Only
valid for colorbar
|
void |
setAutoRowColNum(boolean value) |
Set if automatic set row/col number
|
void |
setBackground(Color value) |
Set background
|
void |
setColorbar(boolean value) |
Set if is color bar
|
void |
setColumnNumber(int value) |
Set column number
|
void |
setDrawBackground(boolean value) |
Set if draw background
|
void |
setDrawMaxLabel(boolean value) |
Set if draw maximum value label
|
void |
setDrawMinLabel(boolean value) |
Set if draw minimum value label
|
void |
setDrawNeatLine(boolean istrue) |
Set if draw neat line
|
void |
setExtendRect(boolean value) |
Set if extend rectangle - or triangle
|
void |
setHeight(int value) |
Set height
|
void |
setLabel(ChartText value) |
Set label
|
void |
setLabelColor(Color value) |
Set label color
|
void |
setLabelFont(Font value) |
Set label font
|
void |
setLabelLocation(String value) |
Set label location
|
void |
setLegendHeight(int value) |
Set legend height
|
void |
setLegendScheme(LegendScheme value) |
Set legend scheme
|
void |
setLegendWidth(int value) |
Set legend width
|
void |
setNeatLineColor(Color color) |
Set neat line color
|
void |
setNeatLineSize(float size) |
Set neat line size
|
void |
setPlotOrientation(PlotOrientation value) |
Set plot orientation
|
void |
setPosition(LegendPosition value) |
Set legend position
|
void |
setShrink(float value) |
Set shrink
|
void |
setSymbolDimension(Dimension value) |
Set symbol dimension
|
void |
setSymbolHeight(int value) |
Set symbol height
|
void |
setSymbolScale(float value) |
Set symbol scale
|
void |
setSymbolWidth(int value) |
Set symbol width
|
void |
setTickCaptions(List<String> value) |
Set tick labels
|
void |
setTickLabelAngle(float value) |
Set tick label angle
|
void |
setTickLabelColor(Color value) |
Set tick label color
|
void |
setTickLabelFont(Font font) |
Set Tick label font
|
void |
setWidth(int value) |
Set width
|
void |
setX(float value) |
Set X
|
void |
setXShift(float value) |
Set x shift
|
void |
setY(float value) |
Set Y
|
void |
setYShift(float value) |
Set y shift
|
protected LegendScheme legendScheme
protected float shrink
protected int aspect
protected float x
protected float y
protected PlotOrientation orientation
protected Color background
protected boolean drawBackground
protected int width
protected int height
protected int legendWidth
protected int legendHeight
protected ChartText label
protected String labelLocation
protected Font tickLabelFont
protected Color tickLabelColor
protected float tickLabelAngle
protected boolean drawNeatLine
protected Color neatLineColor
protected float neatLineSize
protected double _vBarWidth
protected double _hBarHeight
protected boolean extendRect
protected boolean autoExtendFrac
protected boolean drawMinLabel
protected boolean drawMaxLabel
protected float xshift
protected float yshift
public ChartLegend(LegendScheme ls)
ls - LegendSchemepublic LegendScheme getLegendScheme()
public void setLegendScheme(LegendScheme value)
value - Legend schemepublic boolean isColorbar()
public void setColorbar(boolean value)
value - Booleanpublic LegendPosition getPosition()
public void setPosition(LegendPosition value)
value - Legend positionpublic float getShrink()
public void setShrink(float value)
value - Shrinkpublic int getAspect()
public void setAspect(int value)
value - Aspectpublic float getX()
public void setX(float value)
value - X valuepublic float getY()
public void setY(float value)
value - Y valuepublic int getWidth()
public void setWidth(int value)
value - Widthpublic int getHeight()
public void setHeight(int value)
value - Heightpublic int getLegendWidth()
public void setLegendWidth(int value)
value - Legend widthpublic int getLegendHeight()
public void setLegendHeight(int value)
value - Legend heightpublic PlotOrientation getPlotOrientation()
public void setPlotOrientation(PlotOrientation value)
value - Plot orientationpublic Color getBackground()
public void setBackground(Color value)
value - Backgroundpublic boolean isDrawBackground()
public void setDrawBackground(boolean value)
value - Booleanpublic boolean isDrawNeatLine()
public void setDrawNeatLine(boolean istrue)
istrue - If draw neat linepublic Color getNeatLineColor()
public void setNeatLineColor(Color color)
color - Neat line colorpublic float getNeatLineSize()
public void setNeatLineSize(float size)
size - Neat line sizepublic ChartText getLabel()
public void setLabel(ChartText value)
value - Labelpublic Font getLabelFont()
public void setLabelFont(Font value)
value - Label fontpublic Color getLabelColor()
public void setLabelColor(Color value)
value - Label colorpublic String getLabelLocation()
public void setLabelLocation(String value)
value - Label locationpublic Font getTickLabelFont()
public void setTickLabelFont(Font font)
font - The Tick label fontpublic Color getTickLabelColor()
public void setTickLabelColor(Color value)
value - Tick label colorpublic float getTickLabelAngle()
public void setTickLabelAngle(float value)
value - Tick label anglepublic int getColumnNumber()
public void setColumnNumber(int value)
value - Column numberpublic boolean isAutoRowColNum()
public void setAutoRowColNum(boolean value)
value - Booleanpublic Dimension getSymbolDimension()
public void setSymbolDimension(Dimension value)
value - Symbol dimensionpublic void setSymbolWidth(int value)
value - Widthpublic void setSymbolHeight(int value)
value - heightpublic void setSymbolScale(float value)
value - Symble scalepublic boolean isExtendRect()
public void setExtendRect(boolean value)
value - Booleanpublic boolean isAutoExtendFrac()
public void setAutoExtendFrac(boolean value)
value - public void setTickCaptions(List<String> value)
value - Tick labelspublic boolean isDrawMinLabel()
public void setDrawMinLabel(boolean value)
value - Booleanpublic boolean isDrawMaxLabel()
public void setDrawMaxLabel(boolean value)
value - Booleanpublic float getXShift()
public void setXShift(float value)
value - X shiftpublic float getYShift()
public void setYShift(float value)
value - Y shiftpublic void draw(Graphics2D g, PointF point)
g - Graphics2Dpoint - Start pointpublic Dimension getLegendDimension(Graphics2D g, Dimension limitDim)
g - Graphics2DlimitDim - Limit dimensionprotected int getTickWidth(Graphics2D g)
protected int getTickHeight(Graphics2D g)
protected int getTickGap(Graphics2D g)
g - Graphics2DCopyright © 2019. All rights reserved.