public final class OfficeLineFormat extends Object
Represents a shape line format.
Constructor and Description |
---|
OfficeLineFormat()
Initializes a new instance of the
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()
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()
The default value is
.Color.getBlack()
public final void setColor(Color value)
The default value is
.Color.getBlack()
value
- The color of the line.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()
public final void setDashStyle(int value)
public final int getLineStyle()
The default value is
.OfficeLineStyle.Single
public final void setLineStyle(int value)
The default value is
.OfficeLineStyle.Single
value
- The line style.