|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.report.xls.LineFormatInfo
public class LineFormatInfo
Contains the information of chart line format in the file.
Field Summary | |
---|---|
static short |
AUTOFORMAT
Whether the chart is in automatic format or not. |
static short |
DRAWTICK
Whether to draw tick labels on this axis or not. |
static short |
PATTERN_DARKGRAYPATTERN
Represents a dark gray line. |
static short |
PATTERN_DASH
Represents a dash line. |
static short |
PATTERN_DASH_DOT
Represents a dash-dot line |
static short |
PATTERN_DASHDOT_DOT
Represents a dash-dot-dot line. |
static short |
PATTERN_DOT
Represents a dotted line. |
static short |
PATTERN_LIGHTGRAYPATTERN
Represents a light gray line. |
static short |
PATTERN_MEDIUMGRAYPATTERN
Represents a medium gray line. |
static short |
PATTERN_NONE
Represents no line. |
static short |
PATTERN_SOLID
Represents a solid line. |
static short |
WEIGHT_HAIRLINE
Represents the weight of hair line. |
static short |
WEIGHT_MEDIUM
Represents the weight of medium line. |
static short |
WEIGHT_NARROW
Represents the weight of narrow line. |
static short |
WEIGHT_WIDE
Represents the weight of wide line. |
Constructor Summary | |
---|---|
LineFormatInfo()
Constructs a LineFormatInfo object with the default parameter. |
|
LineFormatInfo(int rgb,
short pattern,
short weight,
short grbit,
GlobalWorksheet gws)
Constructs a LineFormatInfo object with these parameters: |
Method Summary | |
---|---|
int |
getLineColor()
Gets the color of line. |
short |
getPattern()
Gets the pattern of line. |
short |
getWeight()
Gets the weight of line. |
boolean |
isAutoFormat()
Gets whether the chart is in automatic format or not. |
boolean |
isDrawTick()
Gets whether to draw tick labels on this axis or not. |
void |
setIsRound(boolean round)
The border is a round border. |
void |
setLineColor(int color,
GlobalWorksheet gws)
Sets the color of line. |
void |
setPattern(short pattern)
Sets the pattern of line. |
void |
setWeight(short weight)
Sets the weight of line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short AUTOFORMAT
public static final short DRAWTICK
public static final short PATTERN_SOLID
public static final short PATTERN_DASH
public static final short PATTERN_DOT
public static final short PATTERN_DASH_DOT
public static final short PATTERN_DASHDOT_DOT
public static final short PATTERN_NONE
public static final short PATTERN_DARKGRAYPATTERN
public static final short PATTERN_MEDIUMGRAYPATTERN
public static final short PATTERN_LIGHTGRAYPATTERN
public static final short WEIGHT_HAIRLINE
public static final short WEIGHT_NARROW
public static final short WEIGHT_MEDIUM
public static final short WEIGHT_WIDE
Constructor Detail |
---|
public LineFormatInfo()
LineFormatInfo
object with the default parameter.
public LineFormatInfo(int rgb, short pattern, short weight, short grbit, GlobalWorksheet gws)
LineFormatInfo
object with these parameters:
rgb
- color of line, in which RGB value hight byte must be set to zeropattern
- pattern of lineweight
- weight of linegrbit
- Format flags of line, see DRAWTICK
and AUTOFORMAT
.Method Detail |
---|
public void setPattern(short pattern)
pattern
- solid, dash, dot, dash-dot, dash dot-dot, dark gray pattern,and so on.PATTERN_SOLID
,
PATTERN_DASH
,
PATTERN_DOT
,
PATTERN_DASH_DOT
,
DOT_DOT
,
PATTERN_DARKGRAYPATTERN
,
PATTERN_NONE
,
PATTERN_MEDIUMGRAYPATTERN
,
PATTERN_LIGHTGRAYPATTERN
public short getPattern()
public void setWeight(short weight)
weight
- hairline, narrow, medium, wide.WEIGHT_HAIRLINE
,
WEIGHT_NARROW
,
WEIGHT_MEDIUM
,
WEIGHT_WIDE
public short getWeight()
public boolean isAutoFormat()
public boolean isDrawTick()
public void setLineColor(int color, GlobalWorksheet gws)
color
- the color of linepublic int getLineColor()
public void setIsRound(boolean round)
round
- true specifies the border to be round
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |