| 构造器 | 说明 |
|---|---|
Axis() |
Constructor
|
Axis(String label) |
Constructor
|
Axis(String label,
boolean xAxis) |
Constructor
|
Axis(String label,
boolean xAxis,
Location loc) |
Constructor
|
Axis(String label,
boolean xAxis,
Location loc,
boolean drawTickLabel) |
Constructor
|
Axis(Axis axis) |
Constructor
|
Axis(ChartText label) |
Constructor
|
Axis(ChartText label,
boolean xAxis) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Object |
clone() |
|
void |
draw(Graphics2D g,
Rectangle2D area,
AbstractPlot2D plot) |
Draw axis
|
ChartText |
getLabel() |
Get axis label
|
Color |
getLabelColor() |
Get label color
|
Font |
getLabelFont() |
Get label font
|
int |
getLabelGap(Graphics2D g,
double len) |
Update lable gap
|
Color |
getLineColor() |
Get line color
|
Stroke |
getLineStroke() |
Get line stroke
|
LineStyles |
getLineStyle() |
|
float |
getLineWidth() |
Get line width
|
Location |
getLocation() |
Get location
|
int |
getMaxLabelLength(Graphics2D g) |
Get maximum label string length
|
String |
getMaxLenLable() |
Get label string with maximum length
|
ChartText |
getMaxLenText() |
Get tick label text with maximum length
|
ChartText |
getMaxLinesText() |
Get tick label text with maximum lines
|
Dimension |
getMaxTickDim(Graphics2D g) |
Get maximum tick label dimension
|
int |
getMaxTickLableLines() |
Get maximum tick label line number
|
double |
getMaxValue() |
Get maximum value
|
int |
getMinorTickNum() |
Get minor tick number
|
double |
getMinValue() |
Get minimum value
|
float |
getShift() |
Get shift
|
Color |
getTickColor() |
Get tick color
|
double |
getTickDeltaValue() |
Get tick delta value
|
float |
getTickLabelAngle() |
Get tick label angle
|
Color |
getTickLabelColor() |
Get tick label color
|
Font |
getTickLabelFont() |
Get tick label font
|
int |
getTickLabelGap() |
Get tick label gap
|
List<ChartText> |
getTickLabels() |
Get tick labels
|
List<String> |
getTickLabelText() |
Get tick label text
|
int |
getTickLength() |
Get tick length
|
List<Double> |
getTickLocations() |
Tick locations
|
int |
getTickSpace() |
Get tick space
|
double |
getTickStartValue() |
Get tick start value
|
Stroke |
getTickStroke() |
Get tick stroke
|
double[] |
getTickValues() |
Get tick values
|
int |
getXAxisHeight(Graphics2D g) |
Get x axis height
|
int |
getYAxisWidth(Graphics2D g) |
Get y axis width
|
boolean |
isAutoTick() |
Get if is auto tick labels
|
boolean |
isDrawLabel() |
Get if draw label
|
boolean |
isDrawTickLabel() |
Get is draw tick label
|
boolean |
isDrawTickLine() |
Get if draw tick lines
|
boolean |
isInsideTick() |
Get if is inside tick
|
boolean |
isInverse() |
Get if is inverse
|
boolean |
isMinorTickVisible() |
Get if minor tick visible or not
|
boolean |
isVisible() |
If is visible
|
boolean |
isXAxis() |
Get if is x axis
|
void |
setAutoTick(boolean value) |
Set if auto tick labels
|
void |
setColor_All(Color c) |
Set color to all elements
|
void |
setDrawLabel(boolean value) |
Set if draw label
|
void |
setDrawTickLabel(boolean value) |
Set if draw tick label
|
void |
setDrawTickLine(boolean value) |
Set if draw tick lines
|
void |
setInsideTick(boolean value) |
Set if is inside tick
|
void |
setInverse(boolean value) |
Set if is inverse
|
void |
setLabel(String value) |
Set axis label
|
void |
setLabel(ChartText value) |
Set axis label
|
void |
setLabelColor(Color value) |
Set label color
|
void |
setLabelFont(Font value) |
Set lable font
|
void |
setLineColor(Color value) |
Set line color
|
void |
setLineStyle(LineStyles value) |
|
void |
setLineWidth(float value) |
Set line width
|
void |
setLocation(Location value) |
Set location
|
void |
setMaxValue(double value) |
Set maximum value
|
void |
setMinMaxValue(double minValue,
double maxValue) |
Set minimum and maximum values
|
void |
setMinorTickNum(int value) |
Set minor tick number
|
void |
setMinorTickVisible(boolean value) |
Set if minor tick visible or not
|
void |
setMinValue(double value) |
Set minimum value
|
void |
setShift(float value) |
Set shift
|
void |
setTickColor(Color value) |
Set tick color
|
void |
setTickDeltaValue(double value) |
Set tick delta value
|
void |
setTickLabelAngle(float value) |
Set tick label angle
|
void |
setTickLabelColor(Color value) |
Set tick label color
|
void |
setTickLabelFont(Font value) |
Set tick lable font
|
void |
setTickLabelGap(int value) |
Set tick label gap
|
void |
setTickLabels(List<ChartText> value) |
Set tick labels.
|
void |
setTickLabels_Number(List<Number> value) |
Set tick labels
|
void |
setTickLabelText(List<String> value) |
Set tick label text
|
void |
setTickLength(int value) |
Set tick length
|
void |
setTickLocations(double[] value) |
Set tick locations
|
void |
setTickLocations(List<Number> value) |
Set tick locations
|
void |
setTickSpace(int value) |
Set tick space
|
void |
setTickStartValue(double value) |
Set tick start value
|
void |
setTickStroke(Stroke value) |
Set tick stroke
|
void |
setTickValues(double[] value) |
Set tick values
|
void |
setTickValues(List<Double> value) |
Set tick values
|
void |
setVisible(boolean value) |
Set if is visible
|
void |
setXAxis(boolean value) |
Set if is x axis
|
void |
updateLabelGap(Graphics2D g,
Rectangle2D rect) |
Update lable gap
|
void |
updateTickLabels() |
Get tick labels
|
void |
updateTickValues() |
Update tick values
|
public Axis()
public Axis(ChartText label)
label - Axis labelpublic Axis(String label)
label - Axis labelpublic Axis(String label, boolean xAxis)
label - Axis labelxAxis - If is x axispublic Axis(ChartText label, boolean xAxis)
label - Axis labelxAxis - If is x axispublic Axis(String label, boolean xAxis, Location loc)
label - Axis labelxAxis - If is x axisloc - Locationpublic Axis(String label, boolean xAxis, Location loc, boolean drawTickLabel)
label - Axis labelxAxis - If is x axisloc - LocationdrawTickLabel - If draw tick labelpublic Axis(Axis axis)
axis - Axispublic boolean isXAxis()
public void setXAxis(boolean value)
value - Booleanpublic Location getLocation()
public void setLocation(Location value)
value - Locationpublic ChartText getLabel()
public void setLabel(ChartText value)
value - Axis labelpublic void setLabel(String value)
value - Axis labelpublic boolean isVisible()
public void setVisible(boolean value)
value - Booleanpublic boolean isDrawTickLine()
public void setDrawTickLine(boolean value)
value - Booleanpublic boolean isDrawTickLabel()
public void setDrawTickLabel(boolean value)
value - Booleanpublic boolean isDrawLabel()
public void setDrawLabel(boolean value)
value - Booleanpublic Color getLineColor()
public void setLineColor(Color value)
value - Line colorpublic float getLineWidth()
public void setLineWidth(float value)
value - Line widthpublic LineStyles getLineStyle()
public void setLineStyle(LineStyles value)
public Stroke getLineStroke()
public Color getTickColor()
public void setTickColor(Color value)
value - Tick colorpublic Stroke getTickStroke()
public void setTickStroke(Stroke value)
value - Tick strokepublic int getTickLength()
public void setTickLength(int value)
value - Tick lengthpublic boolean isInsideTick()
public void setInsideTick(boolean value)
value - Booleanpublic Font getLabelFont()
public void setLabelFont(Font value)
value - Lable fontpublic Color getLabelColor()
public void setLabelColor(Color value)
value - Label colorpublic Font getTickLabelFont()
public void setTickLabelFont(Font value)
value - Tick lable fontpublic Color getTickLabelColor()
public void setTickLabelColor(Color value)
value - Tick label colorpublic float getTickLabelAngle()
public void setTickLabelAngle(float value)
value - Anglepublic int getTickLabelGap()
public void setTickLabelGap(int value)
value - Tick label gappublic double getTickStartValue()
public void setTickStartValue(double value)
value - Tick start valuepublic double getTickDeltaValue()
public void setTickDeltaValue(double value)
value - Tick delta valuepublic double getMinValue()
public void setMinValue(double value)
value - Minimum valuepublic double getMaxValue()
public void setMaxValue(double value)
value - Maximum valuepublic double[] getTickValues()
public void setTickValues(double[] value)
value - Tick valuespublic void setTickValues(List<Double> value)
value - Tick value listpublic boolean isInverse()
public void setInverse(boolean value)
value - Booleanpublic float getShift()
public void setShift(float value)
value - Shiftpublic void setTickLocations(List<Number> value)
value - Tick locationspublic void setTickLocations(double[] value)
value - Tick locationspublic void setTickLabelText(List<String> value)
value - Tick label textpublic void setTickLabels(List<ChartText> value)
value - Tick labelspublic void setTickLabels_Number(List<Number> value)
value - Tick labelspublic boolean isAutoTick()
public void setAutoTick(boolean value)
value - Booleanpublic boolean isMinorTickVisible()
public void setMinorTickVisible(boolean value)
value - Booleanpublic int getMinorTickNum()
public void setMinorTickNum(int value)
value - Minor tick numberpublic int getTickSpace()
public void setTickSpace(int value)
value - Tick spacepublic void setMinMaxValue(double minValue,
double maxValue)
minValue - Start valuemaxValue - End valuepublic void updateTickValues()
public void updateTickLabels()
public int getMaxLabelLength(Graphics2D g)
g - Graphics2Dpublic String getMaxLenLable()
public ChartText getMaxLenText()
public Dimension getMaxTickDim(Graphics2D g)
g - Graphics2Dpublic ChartText getMaxLinesText()
public int getMaxTickLableLines()
public void updateLabelGap(Graphics2D g, Rectangle2D rect)
g - Graphics2Drect - The rectanglepublic int getLabelGap(Graphics2D g, double len)
g - Graphics2Dlen - Lengthpublic void setColor_All(Color c)
c - Colorpublic void draw(Graphics2D g, Rectangle2D area, AbstractPlot2D plot)
g - Graphics2Darea - Areaplot - XYPlotpublic int getXAxisHeight(Graphics2D g)
g - Graphics2Dpublic int getYAxisWidth(Graphics2D g)
g - Graphics2Dpublic Object clone() throws CloneNotSupportedException
clone 在类中 ObjectCloneNotSupportedExceptionCopyright © 2019. All rights reserved.