|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AbstractResolution.Format>
org.torweg.pulse.component.statistics.model.AbstractResolution.Format
public static enum AbstractResolution.Format
Enumerates the formats for screen resolutions.
| Enum Constant Summary | |
|---|---|
NORMAL
a normal 4:3 format. |
|
SQUARE
square format (e.g. handheld computers). |
|
UNKNOWN
An "unknown" format. |
|
UPRIGHT
upright format (e.g. handheld computers). |
|
WIDE
a wide-screen format. |
|
| Method Summary | |
|---|---|
static AbstractResolution.Format |
getFormat(int[] xy)
returns the Format for the given resolution. |
static AbstractResolution.Format |
getFormat(int x,
int y)
returns the Format for the given resolution. |
static AbstractResolution.Format |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AbstractResolution.Format[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final AbstractResolution.Format UPRIGHT
anything equal or below a ratio of 0.9 for
x/y.
public static final AbstractResolution.Format SQUARE
anything between a ratio of 0.9 (excluded) and
1.1 (included) for x/y.
public static final AbstractResolution.Format NORMAL
anything between a ratio of 1.1 (excluded) and
1.5 (included) for x/y.
public static final AbstractResolution.Format WIDE
any ratio larger than 1.5 for x/y.
public static final AbstractResolution.Format UNKNOWN
| Method Detail |
|---|
public static final AbstractResolution.Format[] values()
for(AbstractResolution.Format c : AbstractResolution.Format.values())
System.out.println(c);
public static AbstractResolution.Format 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 name
public static AbstractResolution.Format getFormat(int x,
int y)
Format for the given resolution.
x - the available pixels in horizontal directiony - the available pixels in vertical direction
Formatpublic static AbstractResolution.Format getFormat(int[] xy)
Format for the given resolution.
xy - the available pixels as int[]{horizontal, vertical}
direction
Format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||