|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.AxisSpec
public class AxisSpec
This class holds the attributes used for creating an axis for a scale.
| Field Summary | |
|---|---|
static int |
AXIS_CROSS
Place the axis at the zero position of the cross axis. |
static int |
AXIS_DOUBLE
Create two axes for each scale, with one opposite the default axis. |
static int |
AXIS_DOUBLE2
Create two axes and display the label on the secondary axis. |
static int |
AXIS_NONE
No axis on this coord. |
static int |
AXIS_SINGLE
Use a single axis for each scale. |
static int |
AXIS_SINGLE2
Use the secondary axis. |
| Constructor Summary | |
|---|---|
AxisSpec()
Create a new AxisSpec. |
|
| Method Summary | |
|---|---|
Object |
clone()
Make a copy of the spec. |
double |
getAxisSize()
Get the fixed size of the axis. |
int |
getAxisStyle()
Get the axis style for this coord. |
Color |
getGridColor()
Get the grid line color. |
int |
getGridStyle()
Get the grid line style. |
Color |
getLineColor()
Get the axis line color. |
TextFrame |
getTextFrame()
Get a text frame for mapping scale values to axis label. |
TextSpec |
getTextSpec()
Get axis label text formatting attributes. |
boolean |
isAbbreviate()
Check whether label should be abbreviated. |
boolean |
isAllTicks()
Check whether to include ticks whose labels are ignored by abbreviation. |
boolean |
isGridAsShape()
Check if grid lines are treated as shapes or positions. |
boolean |
isGridOnTop()
Check whether grid lines should be drawn on top of visual objects. |
boolean |
isInPlot()
Check if space should be reserved for the max label. |
boolean |
isLabelVisible()
Get the axis label visibility. |
boolean |
isLineVisible()
Get the axis line visibility. |
boolean |
isTickVisible()
Get the axis ticks visibility. |
boolean |
isTruncate()
Check whether label could be truncated with "..". |
void |
setAbbreviate(boolean abbr)
Set label abbreviation. |
void |
setAllTicks(boolean allTick)
Set whether to include ticks whose labels are ignored by abbreviation. |
void |
setAxisSize(double size)
Set the fixed size of the axis. |
void |
setAxisStyle(int style)
Set the axis style. |
void |
setGridAsShape(boolean asShape)
Set whether grid lines are treated as shapes or positions. |
void |
setGridColor(Color gridColor)
Set the grid line color. |
void |
setGridOnTop(boolean top)
Set whether grid lines should be drawn on top of visual objects. |
void |
setGridStyle(int gridStyle)
Set the grid line style, e.g., GraphConstants.DOT_LINE. |
void |
setInPlot(boolean inside)
Set whether space should be reserved for the max label so it doesn't need to be moved to be fit inside the plot. |
void |
setLabelVisible(boolean labelVisible)
Set the axis label visibility. |
void |
setLineColor(Color lineColor)
Set the axis line color property. |
void |
setLineVisible(boolean lineVisible)
Set the axis line visibility. |
void |
setTextFrame(TextFrame textFrame)
Set a text frame to map scale values to axis labels. |
void |
setTextSpec(TextSpec textSpec)
Set axis label text formatting attributes. |
void |
setTickVisible(boolean tickVisible)
Set the axis ticks visibility. |
void |
setTruncate(boolean truncated)
Set whethert label could be truncated. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int AXIS_NONE
public static final int AXIS_SINGLE
public static final int AXIS_SINGLE2
public static final int AXIS_DOUBLE
public static final int AXIS_DOUBLE2
public static final int AXIS_CROSS
| Constructor Detail |
|---|
public AxisSpec()
| Method Detail |
|---|
public void setAxisStyle(int style)
style - one of the following, AXIS_NONE, AXIS_DOUBLE, AXIS_SINGLE.public int getAxisStyle()
public Color getLineColor()
public void setLineColor(Color lineColor)
public TextSpec getTextSpec()
public void setTextSpec(TextSpec textSpec)
public void setTextFrame(TextFrame textFrame)
public TextFrame getTextFrame()
public boolean isAbbreviate()
public void setAbbreviate(boolean abbr)
public void setAllTicks(boolean allTick)
public boolean isAllTicks()
public boolean isTruncate()
public void setTruncate(boolean truncated)
public boolean isLabelVisible()
public void setLabelVisible(boolean labelVisible)
public boolean isLineVisible()
public void setLineVisible(boolean lineVisible)
public boolean isTickVisible()
public void setTickVisible(boolean tickVisible)
public Color getGridColor()
public void setGridColor(Color gridColor)
public int getGridStyle()
public void setGridStyle(int gridStyle)
public boolean isGridAsShape()
public void setGridAsShape(boolean asShape)
public boolean isGridOnTop()
public void setGridOnTop(boolean top)
public void setInPlot(boolean inside)
public boolean isInPlot()
public void setAxisSize(double size)
public double getAxisSize()
public Object clone()
clone in class Object
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||