jet.report.xls
Class AxisInfo

java.lang.Object
  extended by jet.report.xls.AxisInfo
Direct Known Subclasses:
YAxisInfo

public class AxisInfo
extends java.lang.Object

contains the information of chart axis in the file.


Field Summary
static byte CROSS
           
static byte INSIDE
           
static byte NONE
           
static byte OUTSIDE
           
 
Constructor Summary
AxisInfo()
           
AxisInfo(LineFormatInfo axisLine, FontInfo labelInfo, byte tickType, short n, boolean showLabel)
          Constructs a AxisInfo class and sets its fields appropriately.
 
Method Summary
 LineFormatInfo getAxisLine()
          Get the Information of axis
 FontInfo getLabelInfo()
          Get the Information of axis label
 short getNTick()
          gets show a label every n tick mark
 boolean getShowLabel()
          gets show axis label or not
 byte getTickType()
          gets the type of tick mark
 void setAxisLine(LineFormatInfo axisLine)
          Set the Information of axis
 void setLabelInfo(FontInfo labelInfo)
          Set the Information of axis label
 void setNTick(short n)
          sets show a label every n tick mark
 void setShowLabel(boolean b)
          sets show axis label or not
 void setTickType(byte type)
          sets the type of tick mark
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final byte NONE
See Also:
Constant Field Values

INSIDE

public static final byte INSIDE
See Also:
Constant Field Values

OUTSIDE

public static final byte OUTSIDE
See Also:
Constant Field Values

CROSS

public static final byte CROSS
See Also:
Constant Field Values
Constructor Detail

AxisInfo

public AxisInfo()

AxisInfo

public AxisInfo(LineFormatInfo axisLine,
                FontInfo labelInfo,
                byte tickType,
                short n,
                boolean showLabel)
Constructs a AxisInfo class and sets its fields appropriately.

Parameters:
axisLine - Information of axis line
labelInfo - Information of label
tickType - Type of tick mark
n - show a label every n tick mark
showLabel - Show label or not
Method Detail

setAxisLine

public void setAxisLine(LineFormatInfo axisLine)
Set the Information of axis

Parameters:
axisLine - the Information of axis

getAxisLine

public LineFormatInfo getAxisLine()
Get the Information of axis

Returns:
the Information of axis

setLabelInfo

public void setLabelInfo(FontInfo labelInfo)
Set the Information of axis label

Parameters:
axisLine - the Information of axis label

getLabelInfo

public FontInfo getLabelInfo()
Get the Information of axis label

Returns:
the Information of axis label

setTickType

public void setTickType(byte type)
sets the type of tick mark

Parameters:
type - type of tick mark

getTickType

public byte getTickType()
gets the type of tick mark

Returns:
type of tick mark

setNTick

public void setNTick(short n)
sets show a label every n tick mark

Parameters:
n - show a label every n tick mark

getNTick

public short getNTick()
gets show a label every n tick mark

Returns:
show a label every n tick mark

setShowLabel

public void setShowLabel(boolean b)
sets show axis label or not

Parameters:
b - show axis label or not

getShowLabel

public boolean getShowLabel()
gets show axis label or not

Returns:
show axis label or not