pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.model
Class ScreenResolution

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.component.statistics.model.AbstractResolution
          extended by org.torweg.pulse.component.statistics.model.ScreenResolution
All Implemented Interfaces:
java.io.Serializable

@Entity
public class ScreenResolution
extends AbstractResolution

Represents a client's screen resolution.

Version:
$Revision: 1628 $
Author:
Thomas Weber, Daniel Dietz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.component.statistics.model.AbstractResolution
AbstractResolution.Format
 
Constructor Summary
protected ScreenResolution()
          Deprecated. 
  ScreenResolution(int xRes, int yRes)
          Creates a new screen resolution.
 
Method Summary
static ScreenResolution unknown()
          Returns the "unknown" ScreenResolution with the given ScreenResolution.Format.UNKNOWN and x = -1 y = -1 .
 
Methods inherited from class org.torweg.pulse.component.statistics.model.AbstractResolution
getFormat, getX, getY, isFormat, isMatch, isMatch, isMatch, toString
 
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

ScreenResolution

@Deprecated
protected ScreenResolution()
Deprecated. 

Used by HibernateTM and JAXB.ScreenResolution.


ScreenResolution

public ScreenResolution(int xRes,
                        int yRes)
Creates a new screen resolution.

Parameters:
xRes - the available pixels in horizontal direction
yRes - the available pixels in vertical direction
Method Detail

unknown

public static final ScreenResolution unknown()
Returns the "unknown" ScreenResolution with the given ScreenResolution.Format.UNKNOWN and .

Returns:
the default unknown" ScreenResolution with format ScreenResolution.Format.UNKNOWN