|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Font.Weight>
org.axsl.font.Font.Weight
public static enum Font.Weight
Enumeration of constants needed to describe the weight of a font.
Enum Constant Summary | |
---|---|
ANY
Font-weight constant indicating no preference. |
|
BLACK
Font-weight constant indicating a weight of 900 (black). |
|
BOLD
Font-weight constant indicating a weight of 700 (bold). |
|
DARK
Font-weight constant indicating a weight of 500 (dark). |
|
EXTRA_BOLD
Font-weight constant indicating a weight of 800 (extra bold). |
|
EXTREMELY_LIGHT
Font-weight constant indicating a weight of 100 (extremely light). |
|
LIGHT
Font-weight constant indicating a weight of 300 (light). |
|
NORMAL
Font-weight constant indicating a weight of 400 (normal). |
|
SEMI_BOLD
Font-weight constant indicating a weight of 600 (semi-bold). |
|
VERY_LIGHT
Font-weight constant indicating a weight of 200 (very light). |
Method Summary | |
---|---|
static Font.Weight |
fromNumeric(int numericWeight)
Returns the Weight constant corresponding to a given numeric weight. |
short |
getNumericWeight()
Return this weight's numeric weight. |
static boolean |
isValidNumericWeight(int numericWeight)
Indicates whether a given numeric weight has a corresponding Weight instance. |
Font.Weight |
nextHeaviest()
Returns the next heaviest weight. |
Font.Weight |
nextLightest()
Returns the next lightest weight. |
static Font.Weight |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Font.Weight[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Font.Weight ANY
public static final Font.Weight EXTREMELY_LIGHT
public static final Font.Weight VERY_LIGHT
public static final Font.Weight LIGHT
public static final Font.Weight NORMAL
public static final Font.Weight DARK
public static final Font.Weight SEMI_BOLD
public static final Font.Weight BOLD
public static final Font.Weight EXTRA_BOLD
public static final Font.Weight BLACK
Method Detail |
---|
public static final Font.Weight[] values()
for(Font.Weight c : Font.Weight.values()) System.out.println(c);
public static Font.Weight valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic short getNumericWeight()
Short.MIN_VALUE
.public Font.Weight nextHeaviest()
public Font.Weight nextLightest()
public static Font.Weight fromNumeric(int numericWeight)
numericWeight
- The numeric weight for which a constant is
needed. This should be 100, 200, 300, 400, 500, 600, 700, 800, or
900.
numericWeight.
public static boolean isValidNumericWeight(int numericWeight)
numericWeight
- The numeric weight being tested.
numericWeight
|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.