|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.report.xls.LegendInfo
public class LegendInfo
Contains the information of chart legend in the file.
Field Summary | |
---|---|
static short |
AUTOPOSITION
The legend is auto positioned. |
static byte |
BOTTOM
Displays the legend to the bottom of the chart's plot area. |
static byte |
CORNER
Displays the legend to the corner of the chart's plot area. |
static byte |
LEFT
Displays the legend to the left of the chart's plot area. |
static byte |
NODOCK
Represents that the legend is not docked. |
static byte |
RIGHT
Displays the legend to the right of the chart's plot area. |
static byte |
TOP
Displays the legend to the top of the chart's plot area. |
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()
Gets the information of legend text font. |
int |
getHeight()
Gets the height of the chart legend. |
ChartAreaInfo |
getLegendArea()
Gets the information of the legend area. |
byte |
getType()
Gets the type of the location of the legend relative to the plot rectangle of the chart. |
int |
getWidth()
Gets the width of the chart legend. |
int |
getX()
Gets the x position of the chart legend. |
int |
getY()
Gets the y position of the chart legend. |
boolean |
isAutoPosition()
Gets whether to use automatic position. |
boolean |
isAutoPosX()
Gets whether to use automatic X position. |
boolean |
isAutoPosY()
Gets whether to use automatic Y position. |
boolean |
isAutoSeries()
Gets whether to use automatic series. |
boolean |
isVert()
Gets whether to use vertical legend (a single column of entries). |
void |
setAutoPosition(boolean b)
Sets whether to use automatic position. |
void |
setAutoPosX(boolean b)
Sets whether to use automatic X position. |
void |
setAutoPosY(boolean b)
Sets whether to use automatic Y position. |
void |
setAutoSeries(boolean b)
Sets whether to use automatic series. |
void |
setFontInfo(FontInfo fontInfo)
Sets the information of legend text font. |
void |
setHeight(int height)
Sets the height of the chart legend. |
void |
setLegendArea(ChartAreaInfo legendAreaInfo)
Sets the information of the legend area. |
void |
setType(byte type)
Sets the type of the location of the legend relative to the plot rectangle of the chart. |
void |
setVert(boolean b)
Sets whether to use vertical legend. |
void |
setWidth(int width)
Sets the width of the chart legend. |
void |
setX(int x)
Sets the x position of the chart legend. |
void |
setY(int y)
Sets the y position of the 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
Constructor Detail |
---|
public LegendInfo()
public LegendInfo(int x, int y, int width, int height, byte type, short grbit)
x
- x-position of the upper-left cornery
- y-position of the 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 AUTOPOSITION
Method Detail |
---|
public void setX(int x)
x
- the x position of the chart legendpublic int getX()
public void setY(int y)
y
- the y position of the chart legendpublic int getY()
public void setWidth(int width)
width
- the width of the chart legendpublic int getWidth()
public void setHeight(int height)
height
- the height of the chart legendpublic int getHeight()
public void setType(byte type)
type
- the type of the location of the legend relative to the plot rectangle of the chartBOTTOM
,
CORNER
,
TOP
,
RIGHT
,
LEFT
,
NODOCK
public byte getType()
public void setLegendArea(ChartAreaInfo legendAreaInfo)
legendAreaInfo
- the information of the legend areapublic ChartAreaInfo getLegendArea()
public boolean isAutoPosition()
public void setAutoPosition(boolean b)
b
- - whether to use automatic position or notpublic boolean isAutoSeries()
public void setAutoSeries(boolean b)
b
- - whether to use automatic series or notpublic boolean isAutoPosX()
public void setAutoPosX(boolean b)
b
- - whether to use automatic X position or notpublic boolean isAutoPosY()
public void setAutoPosY(boolean b)
b
- - whether to use automatic Y position or notpublic boolean isVert()
public void setVert(boolean b)
b
- - whether to 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 |