public class OfficeLineFormat extends Object
Represents a shape line format.
Constructor and Description |
---|
OfficeLineFormat()
Initializes a new instance of the
OfficeLineFormat class. |
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Gets the color of the line.
|
int |
getDashStyle()
Gets the dot and dash pattern for a line.
|
boolean |
getEnabled()
Gets a value indicating whether a shape will be stroked.
|
int |
getLineStyle()
Gets the line style.
|
double |
getOpacity()
Gets the line opacity.
|
double |
getWeight()
Gets the brush thickness that strokes the path of a shape.
|
void |
setColor(Color value)
Sets the color of the line.
|
void |
setDashStyle(int value)
Sets the dot and dash pattern for a line.
|
void |
setEnabled(boolean value)
Sets a value indicating whether a shape will be stroked.
|
void |
setLineStyle(int value)
Sets the line style.
|
void |
setOpacity(double value)
Sets the line opacity.
|
void |
setWeight(double value)
Sets the brush thickness that strokes the path of a shape.
|
public OfficeLineFormat()
Initializes a new instance of the OfficeLineFormat
class.
public final double getWeight()
Gets the brush thickness that strokes the path of a shape.
public final void setWeight(double value)
Sets the brush thickness that strokes the path of a shape.
value
- The line thickness in points. The default value is 0.75.public final Color getColor()
Gets the color of the line.
Color.Black
.public final void setColor(Color value)
Sets the color of the line.
value
- The default value is Color.Black
.public final double getOpacity()
Gets the line opacity.
public final void setOpacity(double value)
Sets the line opacity.
value
- The value should be between 0 and 1. Default value is 1.public final boolean getEnabled()
Gets a value indicating whether a shape will be stroked.
public final void setEnabled(boolean value)
Sets a value indicating whether a shape will be stroked.
value
- The default value is false.public final int getDashStyle()
Gets the dot and dash pattern for a line.
OfficeDashStyle.Solid
.public final void setDashStyle(int value)
Sets the dot and dash pattern for a line.
value
- The default value is OfficeDashStyle.Solid
.public final int getLineStyle()
Gets the line style.
OfficeLineStyle.Single
.public final void setLineStyle(int value)
Sets the line style.
value
- The default value is OfficeLineStyle.Single
.Copyright © 2018. All rights reserved.