public class HorizontalRuleFormat
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
int |
getAlignment()
Gets the alignment of the horizontal rule.
|
java.awt.Color |
getColor()
Gets the brush color that fills the horizontal rule.
|
double |
getHeight()
Gets the height of the horizontal rule.
|
boolean |
getNoShade()
Indicates the presence of 3D shading for the horizontal rule.
|
double |
getWidthPercent()
Gets the length of the specified horizontal rule expressed as a percentage of the window width.
|
void |
setAlignment(int value)
Sets the alignment of the horizontal rule.
|
void |
setColor(java.awt.Color value)
Sets the brush color that fills the horizontal rule.
|
void |
setHeight(double value)
Sets the height of the horizontal rule.
|
void |
setNoShade(boolean value)
Indicates the presence of 3D shading for the horizontal rule.
|
void |
setWidthPercent(double value)
Sets the length of the specified horizontal rule expressed as a percentage of the window width.
|
public double getWidthPercent()
Valid values range from 1 to 100 inclusive.
The default value is 100.
java.lang.IllegalArgumentException - Throws when argument was out of the range of valid values.public void setWidthPercent(double value)
Valid values range from 1 to 100 inclusive.
The default value is 100.
value - The length of the specified horizontal rule expressed as a percentage of the window width.java.lang.IllegalArgumentException - Throws when argument was out of the range of valid values.public double getHeight()
This is a shortcut to the ShapeBase.getHeight() / ShapeBase.setHeight(double) property.
Valid values range from 0 to 1584 inclusive.
The default value is 1.5.
java.lang.IllegalArgumentException - Throws when argument was out of the range of valid values.public void setHeight(double value)
throws java.lang.Exception
This is a shortcut to the ShapeBase.getHeight() / ShapeBase.setHeight(double) property.
Valid values range from 0 to 1584 inclusive.
The default value is 1.5.
value - The height of the horizontal rule.java.lang.IllegalArgumentException - Throws when argument was out of the range of valid values.java.lang.Exceptionpublic boolean getNoShade()
The default value is false.
boolean value.public void setNoShade(boolean value)
The default value is false.
value - The corresponding boolean value.public java.awt.Color getColor()
This is a shortcut to the Fill.getColor() / Fill.setColor(java.awt.Color) property.
The default value is .
public void setColor(java.awt.Color value)
This is a shortcut to the Fill.getColor() / Fill.setColor(java.awt.Color) property.
The default value is .
value - The brush color that fills the horizontal rule.public int getAlignment()
The default value is HorizontalRuleAlignment.LEFT.
HorizontalRuleAlignment constants.public void setAlignment(int value)
The default value is HorizontalRuleAlignment.LEFT.
value - The alignment of the horizontal rule. The value must be one of HorizontalRuleAlignment constants.