|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.table.FontStyle
public class FontStyle
A customizable set of font properties.
See CellStyle for more details.
FontStyles
,
FontWeights
,
FontWidths
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
NAME
String used to identify the name property in the bag. |
static java.lang.String |
SIZE
String used to identify the size property in the bag. |
static java.lang.String |
STYLE
String used to identify the style property in the bag. |
static java.lang.String |
WEIGHT
String used to identify the weight property in the bag. |
static java.lang.String |
WIDTH
String used to identify the width property in the bag. |
Constructor Summary | |
---|---|
FontStyle()
|
Method Summary | |
---|---|
java.awt.Font |
getFont()
Creates and returns a font with the characteristics defined by this FontStyle. |
java.lang.String |
getName()
Returns the name. |
double |
getSize()
Returns the size in points. |
int |
getStyle()
Returns the style -- one of com.sas.awt.util.FontStyles. |
int |
getWeight()
Returns the weight -- one of com.sas.awt.util.FontWeights. |
int |
getWidth()
Returns the width -- one of com.sas.awt.util.FontWidths. |
boolean |
isNameSet()
Determines if the name property is in the bag. |
boolean |
isSizeSet()
Determines if the size property is in the bag. |
boolean |
isStyleSet()
Determines if the style property is in the bag. |
boolean |
isWeightSet()
Determines if the weight property is in the bag. |
boolean |
isWidthSet()
Determines if the width property is in the bag. |
void |
setFont(java.awt.Font font)
Sets the name, size, style, weight, and width properties based on the characteristics of a given font. |
void |
setName(java.lang.String newValue)
Specifies the name. |
void |
setSize(double newValue)
Specifies the size in points. |
void |
setStyle(int newValue)
Specifies the style -- one of com.sas.awt.util.FontStyles. |
void |
setWeight(int newValue)
Specifies the weight -- one of com.sas.awt.util.FontWeights. |
void |
setWidth(int newValue)
Specifies the width -- one of com.sas.awt.util.FontWidths. |
void |
unsetName()
Removes the name property from the bag. |
void |
unsetSize()
Removes the size property from the bag. |
void |
unsetStyle()
Removes the style property from the bag. |
void |
unsetWeight()
Removes the weight property from the bag. |
void |
unsetWidth()
Removes the width property from the bag. |
Field Detail |
---|
public static final java.lang.String NAME
public static final java.lang.String SIZE
public static final java.lang.String STYLE
public static final java.lang.String WEIGHT
public static final java.lang.String WIDTH
Constructor Detail |
---|
public FontStyle()
Method Detail |
---|
public java.lang.String getName()
isNameSet()
,
setName(java.lang.String)
,
unsetName()
public void setName(java.lang.String newValue)
newValue
- The new value to assign the named property.getName()
,
isNameSet()
,
unsetName()
public boolean isNameSet()
true
if name has been set,
and false
otherwise.getName()
,
setName(java.lang.String)
,
unsetName()
public void unsetName()
getName()
,
isNameSet()
,
setName(java.lang.String)
public double getSize()
isSizeSet()
,
setSize(double)
,
unsetSize()
public void setSize(double newValue)
newValue
- The new value to assign the size property.getSize()
,
isSizeSet()
,
unsetSize()
public boolean isSizeSet()
true
if size has been set,
and false
otherwise.getSize()
,
setSize(double)
,
unsetSize()
public void unsetSize()
getSize()
,
isSizeSet()
,
setSize(double)
public int getStyle()
isStyleSet()
,
setStyle(int)
,
unsetStyle()
public void setStyle(int newValue)
newValue
- The new value to assign the style property.getStyle()
,
isStyleSet()
,
unsetStyle()
public boolean isStyleSet()
true
if style has been set,
and false
otherwise.getStyle()
,
setStyle(int)
,
unsetStyle()
public void unsetStyle()
getStyle()
,
isStyleSet()
,
setStyle(int)
public int getWeight()
isWeightSet()
,
setWeight(int)
,
unsetWeight()
public void setWeight(int newValue)
newValue
- The new value to assign the weight property.getWeight()
,
isWeightSet()
,
unsetWeight()
public boolean isWeightSet()
true
if weight has been set,
and false
otherwise.getWeight()
,
setWeight(int)
,
unsetWeight()
public void unsetWeight()
getWeight()
,
isWeightSet()
,
setWeight(int)
public int getWidth()
isWidthSet()
,
setWidth(int)
,
unsetWidth()
public void setWidth(int newValue)
newValue
- The new value to assign the width property.getWidth()
,
isWidthSet()
,
unsetWidth()
public boolean isWidthSet()
true
if width has been set,
and false
otherwise.getWidth()
,
setWidth(int)
,
unsetWidth()
public void unsetWidth()
getWidth()
,
isWidthSet()
,
setWidth(int)
public java.awt.Font getFont()
public void setFont(java.awt.Font font)
font
- The font to mimic.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |