public class FontSupport extends AttributeSubSet
Modifier and Type | Class and Description |
---|---|
static class |
FontSupport.FontStretch
The 'font-stretch' property selects a normal, condensed, or extended
face from a font family.
|
static class |
FontSupport.Style |
static class |
FontSupport.Weight |
Constructor and Description |
---|
FontSupport() |
FontSupport(java.lang.String name) |
FontSupport(java.lang.String family,
int size) |
FontSupport(java.lang.String family,
int size,
FontSupport.Weight weight) |
FontSupport(java.lang.String family,
int size,
FontSupport.Weight weight,
FontSupport.Style style) |
Modifier and Type | Method and Description |
---|---|
FontSupport |
cloned() |
java.lang.Object |
getAttribute(int keyIdx) |
java.lang.String |
getFamily() |
FontSupport.FontStretch |
getFontStretch() |
Measure |
getSize() |
FontSupport.Style |
getStyle() |
FontSupport.Weight |
getWeight() |
void |
setFamily(java.lang.String family) |
void |
setFontStretch(FontSupport.FontStretch stretch) |
void |
setSize(double points) |
void |
setSize(Measure size) |
void |
setStyle(FontSupport.Style style) |
void |
setWeight(FontSupport.Weight weight) |
addDefinedAttributes, applyAttributes, clone, isMutable, makeImmutable, setAttribute
public static final FontSupport.FontStretch FONT_STRETCH_ULTRA_CONDENSED
public static final FontSupport.FontStretch FONT_STRETCH_EXTRA_CONDENSED
public static final FontSupport.FontStretch FONT_STRETCH_CONDENSED
public static final FontSupport.FontStretch FONT_STRETCH_SEMI_CONDENSED
public static final FontSupport.FontStretch FONT_STRETCH_NORMAL
public static final FontSupport.FontStretch FONT_STRETCH_SEMI_EXPANDED
public static final FontSupport.FontStretch FONT_STRETCH_EXPANDED
public static final FontSupport.FontStretch FONT_STRETCH_EXTRA_EXPANDED
public static final FontSupport.FontStretch FONT_STRETCH_ULTRA_EXPANDED
public static final FontSupport.Style STYLE_NORMAL
public static final FontSupport.Style STYLE_ITALIC
public static final FontSupport.Style STYLE_OBLIQUE
public static final FontSupport.Weight WEIGHT_NORMAL
public static final FontSupport.Weight WEIGHT_BOLD
public static final FontSupport.Weight WEIGHT_BOLDER
public static final FontSupport.Weight WEIGHT_LIGHTER
public static final java.lang.String ATTR_STYLE
public static final java.lang.String ATTR_WEIGHT
public static final java.lang.String ATTR_SIZE
public static final java.lang.String ATTR_FAMILY
public static final java.lang.String ATTR_STRETCH
public static final java.lang.String[] KEY_SET
public FontSupport()
public FontSupport(java.lang.String name)
public FontSupport(java.lang.String family, int size)
public FontSupport(java.lang.String family, int size, FontSupport.Weight weight)
public FontSupport(java.lang.String family, int size, FontSupport.Weight weight, FontSupport.Style style)
public java.lang.String getFamily()
public Measure getSize()
public FontSupport.Style getStyle()
public FontSupport.Weight getWeight()
public void setWeight(FontSupport.Weight weight)
public void setStyle(FontSupport.Style style)
public void setSize(Measure size)
public void setFamily(java.lang.String family)
public void setSize(double points)
public void setFontStretch(FontSupport.FontStretch stretch)
public FontSupport.FontStretch getFontStretch()
public FontSupport cloned()
public java.lang.Object getAttribute(int keyIdx)
getAttribute
in class AttributeSubSet
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.