|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.report.xls.LegendInfo
public class LegendInfo
contains the information of chart legend in the file.
| Field Summary | |
|---|---|
static short |
AUTOPOSITION
|
static short |
AUTOPOSX
|
static short |
AUTOPOSY
|
static short |
AUTOSERIES
|
static byte |
BOTTOM
|
static byte |
CORNER
|
static byte |
LEFT
|
static byte |
NODOCK
|
static byte |
RIGHT
|
static byte |
TOP
|
static short |
VERT
|
| Constructor Summary | |
|---|---|
LegendInfo()
Constructs a LegendInfo class |
|
LegendInfo(int x,
int y,
int width,
int height,
byte type,
short grbit)
Constructs a LegendInfo class and sets its fields appropriately. |
|
| Method Summary | |
|---|---|
FontInfo |
getFontInfo()
Get the Information of legend text font |
int |
getHeight()
Get the height of chart legend |
ChartAreaInfo |
getLegendArea()
Get the Information of legend Area |
byte |
getType()
get the type of the location of the legend relative to the plot rectangle of the chart |
int |
getWidth()
Get the width of chart legend |
int |
getX()
Get the x position of chart legend |
int |
getY()
Get the y position of chart legend |
boolean |
isAutoPosition()
get whether to use automatic position |
boolean |
isAutoPosX()
get whether to use automatic X position |
boolean |
isAutoPosY()
get whether to use automatic Y position |
boolean |
isAutoSeries()
get whether to use automatic Series |
boolean |
isVert()
get whether to use vertical legend (a single column of entries) |
void |
setAutoPosition(boolean b)
set whether to use automatic position |
void |
setAutoPosX(boolean b)
set whether to use automatic X position |
void |
setAutoPosY(boolean b)
set whether to use automatic Y position |
void |
setAutoSeries(boolean b)
set whether to use automatic series |
void |
setFontInfo(FontInfo fontInfo)
Set the Information of legend text font |
void |
setHeight(int height)
Set the height of chart legend |
void |
setLegendArea(ChartAreaInfo legendAreaInfo)
Set the Information of legend Area |
void |
setType(byte type)
set the type of the location of the legend relative to the plot rectangle of the chart |
void |
setVert(boolean b)
set whether to use vertical legend |
void |
setWidth(int width)
Set the width of chart legend |
void |
setX(int x)
Set the x position of chart legend |
void |
setY(int y)
Set the y position of chart legend |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte BOTTOM
public static final byte CORNER
public static final byte TOP
public static final byte RIGHT
public static final byte LEFT
public static final byte NODOCK
public static final short AUTOPOSITION
public static final short AUTOSERIES
public static final short AUTOPOSX
public static final short AUTOPOSY
public static final short VERT
| Constructor Detail |
|---|
public LegendInfo()
public LegendInfo(int x,
int y,
int width,
int height,
byte type,
short grbit)
x - x-position of upper-left cornery - y-position of upper-left cornerwidth - width of the Legendheight - height of the Legendtype - defines the location of the legend relative to the plot rectangle of the chartgrbit - option flags| Method Detail |
|---|
public void setX(int x)
public int getX()
public void setY(int y)
public int getY()
public void setWidth(int width)
public int getWidth()
public void setHeight(int height)
public int getHeight()
public void setType(byte type)
type - is the type of the location of the legend relative to the plot rectangle of the chartBOTTOM,
CORNER,
TOP,
RIGHT,
LEFT,
NODOCKpublic byte getType()
public void setLegendArea(ChartAreaInfo legendAreaInfo)
legendAreaInfo - the Information of legend Areapublic ChartAreaInfo getLegendArea()
public boolean isAutoPosition()
public void setAutoPosition(boolean b)
b - - use automatic position or notpublic boolean isAutoSeries()
public void setAutoSeries(boolean b)
b - - use automatic series or notpublic boolean isAutoPosX()
public void setAutoPosX(boolean b)
b - - use automatic X position or notpublic boolean isAutoPosY()
public void setAutoPosY(boolean b)
b - - use automatic Y position or notpublic boolean isVert()
public void setVert(boolean b)
b - - use vertical legend or notpublic void setFontInfo(FontInfo fontInfo)
fontInfo - the Information of legend text fontpublic FontInfo getFontInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||