Package com.day.cq.graphics.chart
Class Axis
- java.lang.Object
-
- com.day.cq.graphics.chart.Axis
-
public final class Axis extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
LABEL_ABOVE
static int
LABEL_BELOW
static int
LABEL_CENTER
static int
LABEL_LEFT
static int
LABEL_RIGHT
static int
LABEL_TYPE_DATE
static int
LABEL_TYPE_NUMBER
static int
NO_AXIS
static int
TITLE_POS_ABOVE
static int
TITLE_POS_BELOW
static int
TITLE_POS_BOTH
static int
TITLE_POS_NONE
static int
TYPE_CATEG
static int
TYPE_CATEGINV
static int
TYPE_INVERT
static int
TYPE_LOG
static int
TYPE_LOGINV
static int
TYPE_NORMAL
static int
U_AXIS
static int
V_AXIS
static int
X_AXIS
static int
Y_AXIS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Layer
draw(Graph graph, boolean doDraw)
static Axis
getInstance(Graph graph)
static Axis
getInstance(Graph graph, int type)
java.lang.String
getLabelformat()
int
getNumticks()
double
getRangemax()
double
getRangemin()
double
getRangeoffset()
double
getRangescale()
double
getRangestep()
java.lang.String
getSublabelformat()
double
getTickSample(int i)
int
getType()
void
setHeight(int height)
void
setInflate(double inflate)
void
setLabelalign(int labelalign)
void
setLabelcolor(java.awt.Color labelcolor)
void
setLabelcs(int labelcs)
void
setLabeldx(int labeldx)
void
setLabeldy(int labeldy)
void
setLabelfont(Font labelfont)
void
setLabelformat(java.lang.String labelformat)
void
setLabeltype(int labeltype)
void
setLabelwidth(int labelwidth)
void
setNumticks(int numticks)
void
setRangemax(double rangemax)
void
setRangemin(double rangemin)
void
setRangeoffset(double rangeoffset)
void
setRangescale(double rangescale)
void
setRangestep(double rangestep)
void
setRangetype(int rangetype)
void
setStyle(LineStyle style)
void
setSublabelformat(java.lang.String sublabelformat)
void
setSubtickfrom(int subtickfrom)
void
setSubtickspertick(int subtickspertick)
void
setSubtickstyle(LineStyle subtickstyle)
void
setSubtickto(int subtickto)
void
setTickdistance(int tickdistance)
void
setTickfrom(int tickfrom)
void
setTickstyle(LineStyle tickstyle)
void
setTickto(int tickto)
void
setTitlepos(int titlepos)
void
setType(int type)
void
setWidth(int width)
-
-
-
Field Detail
-
TYPE_NORMAL
public static final int TYPE_NORMAL
- See Also:
- Constant Field Values
-
TYPE_INVERT
public static final int TYPE_INVERT
- See Also:
- Constant Field Values
-
TYPE_LOG
public static final int TYPE_LOG
- See Also:
- Constant Field Values
-
TYPE_LOGINV
public static final int TYPE_LOGINV
- See Also:
- Constant Field Values
-
TYPE_CATEG
public static final int TYPE_CATEG
- See Also:
- Constant Field Values
-
TYPE_CATEGINV
public static final int TYPE_CATEGINV
- See Also:
- Constant Field Values
-
NO_AXIS
public static final int NO_AXIS
- See Also:
- Constant Field Values
-
X_AXIS
public static final int X_AXIS
- See Also:
- Constant Field Values
-
Y_AXIS
public static final int Y_AXIS
- See Also:
- Constant Field Values
-
U_AXIS
public static final int U_AXIS
- See Also:
- Constant Field Values
-
V_AXIS
public static final int V_AXIS
- See Also:
- Constant Field Values
-
LABEL_ABOVE
public static final int LABEL_ABOVE
- See Also:
- Constant Field Values
-
LABEL_BELOW
public static final int LABEL_BELOW
- See Also:
- Constant Field Values
-
LABEL_RIGHT
public static final int LABEL_RIGHT
- See Also:
- Constant Field Values
-
LABEL_LEFT
public static final int LABEL_LEFT
- See Also:
- Constant Field Values
-
LABEL_CENTER
public static final int LABEL_CENTER
- See Also:
- Constant Field Values
-
LABEL_TYPE_NUMBER
public static final int LABEL_TYPE_NUMBER
- See Also:
- Constant Field Values
-
LABEL_TYPE_DATE
public static final int LABEL_TYPE_DATE
- See Also:
- Constant Field Values
-
TITLE_POS_NONE
public static final int TITLE_POS_NONE
- See Also:
- Constant Field Values
-
TITLE_POS_ABOVE
public static final int TITLE_POS_ABOVE
- See Also:
- Constant Field Values
-
TITLE_POS_BELOW
public static final int TITLE_POS_BELOW
- See Also:
- Constant Field Values
-
TITLE_POS_BOTH
public static final int TITLE_POS_BOTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static Axis getInstance(Graph graph, int type) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
getRangemin
public double getRangemin()
-
setRangemin
public void setRangemin(double rangemin)
-
getRangemax
public double getRangemax()
-
setRangemax
public void setRangemax(double rangemax)
-
getRangestep
public double getRangestep()
-
setRangestep
public void setRangestep(double rangestep)
-
getRangescale
public double getRangescale()
-
setRangescale
public void setRangescale(double rangescale)
-
getRangeoffset
public double getRangeoffset()
-
setRangeoffset
public void setRangeoffset(double rangeoffset)
-
getLabelformat
public java.lang.String getLabelformat()
-
setLabelformat
public void setLabelformat(java.lang.String labelformat)
-
getSublabelformat
public java.lang.String getSublabelformat()
-
setSublabelformat
public void setSublabelformat(java.lang.String sublabelformat)
-
setType
public void setType(int type) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
getType
public int getType()
-
setStyle
public void setStyle(LineStyle style)
-
setWidth
public void setWidth(int width)
-
setHeight
public void setHeight(int height)
-
setTickfrom
public void setTickfrom(int tickfrom)
-
setTickto
public void setTickto(int tickto)
-
setTickdistance
public void setTickdistance(int tickdistance)
-
setNumticks
public void setNumticks(int numticks)
-
setTickstyle
public void setTickstyle(LineStyle tickstyle)
-
setSubtickfrom
public void setSubtickfrom(int subtickfrom)
-
setSubtickto
public void setSubtickto(int subtickto)
-
setSubtickspertick
public void setSubtickspertick(int subtickspertick)
-
setSubtickstyle
public void setSubtickstyle(LineStyle subtickstyle)
-
setLabelfont
public void setLabelfont(Font labelfont)
-
setLabelcolor
public void setLabelcolor(java.awt.Color labelcolor)
-
setLabeldx
public void setLabeldx(int labeldx)
-
setLabeldy
public void setLabeldy(int labeldy)
-
setLabelalign
public void setLabelalign(int labelalign)
-
setLabelcs
public void setLabelcs(int labelcs)
-
setLabelwidth
public void setLabelwidth(int labelwidth)
-
setLabeltype
public void setLabeltype(int labeltype)
-
setRangetype
public void setRangetype(int rangetype)
-
setTitlepos
public void setTitlepos(int titlepos)
-
setInflate
public void setInflate(double inflate)
-
getTickSample
public double getTickSample(int i)
-
getNumticks
public int getNumticks()
-
-