org.osm2world.console
Class Resolution

Object
  extended by Resolution

public class Resolution
extends Object

immutable representation of an image resolution (two positive integers)


Field Summary
static String PATTERN
          pattern for parseable arguments
 int x
           
 int y
           
 
Constructor Summary
Resolution(int x, int y)
          regular constructor
Resolution(String arg)
          parsing constructor
 
Method Summary
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public final int x

y

public final int y

PATTERN

public static final String PATTERN
pattern for parseable arguments

See Also:
Constant Field Values
Constructor Detail

Resolution

public Resolution(int x,
                  int y)
regular constructor


Resolution

public Resolution(String arg)
parsing constructor

Parameters:
arg - command line argument to be parsed; format see PATTERN
Method Detail

toString

public String toString()
Overrides:
toString in class Object