public enum BadgeType extends Enum<BadgeType>
Enum Constant and Description |
---|
DEFAULT
A static badge with default size (93 x 20)
|
SMALL
A static badge with small size (16 x 16)
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Image height of the badge.
|
String |
getUrl()
Gets the URL of a static badge image.
|
int |
getWidth()
Image width of the badge.
|
static BadgeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BadgeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static BadgeType[] values()
for (BadgeType c : BadgeType.values()) System.out.println(c);
public static BadgeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getWidth()
public int getHeight()
Copyright © 2010–2017. All rights reserved.