|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.statistics.model.AbstractResolution
@MappedSuperclass public abstract class AbstractResolution
A abstract base class to derive an "entity representing a resolution" from.
To be removed if no further sub-classes are to be derived from
AbstractResolution.
| Nested Class Summary | |
|---|---|
static class |
AbstractResolution.Format
Enumerates the formats for screen resolutions. |
| Constructor Summary | |
|---|---|
protected |
AbstractResolution()
Deprecated. |
protected |
AbstractResolution(AbstractResolution.Format f)
Creates a default ScreenResolution. |
|
AbstractResolution(int xRes,
int yRes)
Creates a new resolution. |
| Method Summary | |
|---|---|
AbstractResolution.Format |
getFormat()
Returns the format. |
java.lang.Integer |
getX()
Returns the available pixels in horizontal direction. |
java.lang.Integer |
getY()
Returns the available pixels in vertical direction. |
boolean |
isFormat(AbstractResolution.Format f)
Returns whether the ScreenResolution matches the given
ScreenResolution.Format. |
boolean |
isMatch(int[] xyRes)
Checks the given values for x- and y-resolution against the x- and y-values of the ScreenResolution. |
boolean |
isMatch(int xRes,
int yRes)
Checks the given values for x- and y-resolution against the x- and y-values of the ScreenResolution. |
boolean |
isMatch(ScreenResolution screenResolution)
Checks the values the x- and y-values of the given ScreenResolution against the x- and y-values of the
ScreenResolution. |
java.lang.String |
toString()
Returns a string-representation of the ScreenResolution. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected AbstractResolution()
public AbstractResolution(int xRes,
int yRes)
xRes - pixels in horizontal directionyRes - pixels in vertical directionprotected AbstractResolution(AbstractResolution.Format f)
ScreenResolution.
f - the ScreenResolution.Format| Method Detail |
|---|
public final java.lang.Integer getX()
public final java.lang.Integer getY()
public final AbstractResolution.Format getFormat()
public final boolean isFormat(AbstractResolution.Format f)
ScreenResolution matches the given
ScreenResolution.Format.
f - the ScreenResolution.Format
true if and only if the formats match,
false otherwisepublic final boolean isMatch(int[] xyRes)
ScreenResolution.
xyRes - the x-y-resolution
true if and only if the given values for x- and
y-resolution are a match against the x- and y-values of the
ScreenResolution, false otherwise
public final boolean isMatch(int xRes,
int yRes)
ScreenResolution.
xRes - the x-resolutionyRes - the y-resolution
true if and only if the given values for x- and
y-resolution are a match against the x- and y-values of the
ScreenResolution, false otherwisepublic final boolean isMatch(ScreenResolution screenResolution)
ScreenResolution against the x- and y-values of the
ScreenResolution.
screenResolution - the ScreenResolution
true if and only if the given
ScreenResolution is a match against the x- and
y-values of the ScreenResolution, false
otherwisepublic final java.lang.String toString()
ScreenResolution.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||