uk.co.silentsoftware.config
Class ScalingObject

java.lang.Object
  extended by uk.co.silentsoftware.config.ScalingObject

public class ScalingObject
extends java.lang.Object

Backing object behind scaling options holding the actual dimensions used by the BufferedImage scaling method.


Field Summary
private  int height
          The new height of the image
private  java.lang.String name
          The name of this scaling option
private  int width
          The new width of the image
 
Constructor Summary
ScalingObject(java.lang.String name, int width, int height)
          Default constructor
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final java.lang.String name
The name of this scaling option


width

private final int width
The new width of the image


height

private final int height
The new height of the image

Constructor Detail

ScalingObject

public ScalingObject(java.lang.String name,
                     int width,
                     int height)
Default constructor

Parameters:
name -
width -
height -
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object