![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.cells.Line
public class Line
Encapsulates the object that represents the chart line.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object another)
|
short |
getBeginArrowLengthType()
Gets the begin arrow length type. |
short |
getBeginArrowType()
Gets the begin type of arrow settings for line style. |
short |
getBeginArrowWidthType()
Gets the begin arrow width type. |
byte |
getCapType()
Gets the cap type for line style. |
Color |
getColor()
Gets the Color of the line. |
short |
getCompoundType()
Gets the compound type for line style. |
short |
getDashType()
Gets the dash type for line style. |
short |
getEndArrowLengthType()
Gets the end arrow length type. |
short |
getEndArrowType()
Gets the end type of arrow settings for line style. |
short |
getEndArrowWidthType()
Gets the end arrow width type. |
Fill |
getFill()
Gets the GradientFill or PatternFill when the border is set to gradient or pattern. |
byte |
getJoinType()
Gets the join type for line style. |
int |
getStyle()
Gets the style of the line. |
float |
getTransparency()
Gets the transparency. |
int |
getWeight()
Gets the weight type of the line. |
float |
getWidth()
Gets the width of line, in points. |
boolean |
isAuto()
Indicates whether Microsoft Workbook automatically determines the line pattern. |
boolean |
isVisible()
Indicates whether the line is visible in the chart. |
void |
setAuto(boolean isAuto)
Sets whether Microsoft Workbook automatically determines the line pattern. |
void |
setBeginArrowLengthType(short type)
Sets the begin arrow length type. |
void |
setBeginArrowType(short type)
Sets the begin type of arrow settings for line style. |
void |
setBeginArrowWidthType(short type)
Sets the begin arrow width type. |
void |
setCapType(byte type)
Sets the cap type for line style. |
void |
setColor(Color color)
Sets the Color of the line. |
void |
setCompoundType(short type)
Sets compound type for line style. |
void |
setDashType(short type)
Sets the dash type for line style. |
void |
setEndArrowLengthType(short type)
Sets the end arrow length type. |
void |
setEndArrowType(short type)
Sets the end type of arrow settings for line style. |
void |
setEndArrowWidthType(short type)
Sets the end arrow width type. |
void |
setFill(Fill fill)
Sets the border color to gradient or pattern using given fill settings. |
void |
setJoinType(byte type)
Sets the join type for line style. |
void |
setStyle(int style)
Sets the style of the line |
void |
setTransparency(float val)
Sets the transparency. |
void |
setVisible(boolean visible)
Sets whether the line is visible in the chart. |
void |
setWeight(int weightType)
Sets the weight type of the line. |
void |
setWidth(float points)
Sets the width of line, in points. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object another)
equals
in class java.lang.Object
public Color getColor()
public void setColor(Color color)
color
- the Color of the line.public boolean isVisible()
public void setVisible(boolean visible)
visible
- whether the line is visible in the chart.public int getStyle()
setStyle(int)
public void setStyle(int style)
style
- the style of the line.
It could be one of the following values: LineType.DARK_GRAY |
LineType.DASH |
LineType.DASH_DOT |
LineType.DASH_DOT_DOT |
LineType.DOT |
LineType.LIGHT_GRAY |
LineType.MEDIUM_GRAY |
LineType.SOLID |
java.lang.IllegalArgumentException
- if line type is invalid.public int getWeight()
setWeight(int)
public void setWeight(int weightType)
weightType
- the weight type of the line.
It could be one of the following values: WeightType.HAIR_LINE |
WeightType.MEDIUME_LINE |
WeightType.SINGLE_LINE |
WeightType.WIDE_LINE |
java.lang.IllegalArgumentException
- if line weight type is invalid.public float getWidth()
public void setWidth(float points)
points
- line width in points. Can only be 0~1584public void setAuto(boolean isAuto)
isAuto
- whether Microsoft Workbook automatically determines the line pattern.public boolean isAuto()
public short getCompoundType()
setCompoundType(short)
public void setCompoundType(short type)
type
- compound type. Valid values defined in MsoLineStyle.MsoLineStyle
public short getDashType()
setDashType(short)
public void setDashType(short type)
type
- dash type. Valid values defined in MsoLineDashStyle.MsoLineDashStyle
public byte getCapType()
setCapType(byte)
public void setCapType(byte type)
type
- cap type. Valid values defined in LineCapType.LineCapType
public byte getJoinType()
setJoinType(byte)
public void setJoinType(byte type)
type
- join type. Valid values defined in LineJoinType.LineJoinType
public short getBeginArrowType()
setBeginArrowType(short)
public void setBeginArrowType(short type)
type
- arrow type. Valid values defined in MsoLineEndType.MsoLineEndType
public short getBeginArrowWidthType()
setBeginArrowWidthType(short)
public void setBeginArrowWidthType(short type)
type
- begin arrow width type. Valid values defined in MsoLineEndWidth.MsoLineEndWidth
public short getBeginArrowLengthType()
setBeginArrowLengthType(short)
public void setBeginArrowLengthType(short type)
type
- begin arrow length type. Valid values defined in MsoLineEndLength.MsoLineEndLength
public short getEndArrowType()
setEndArrowType(short)
public void setEndArrowType(short type)
type
- arrow type. Valid values defined in MsoLineEndType.MsoLineEndType
public short getEndArrowWidthType()
setEndArrowWidthType(short)
public void setEndArrowWidthType(short type)
type
- end arrow width type. Valid values defined in MsoLineEndWidth.MsoLineEndWidth
public short getEndArrowLengthType()
setEndArrowLengthType(short)
public void setEndArrowLengthType(short type)
type
- end arrow length type. Valid values defined in MsoLineEndLength.MsoLineEndLength
public float getTransparency()
setTransparency(float)
public void setTransparency(float val)
val
- transparency. Can only be a value from 0 to 1.public Fill getFill()
public void setFill(Fill fill)
fill
- Fill settings for border. Can be GradientFill or PatternFill.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |