synergynetframework.appsystem.contentsystem.items.utils
Class ImageInfo

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.utils.ImageInfo
All Implemented Interfaces:
java.io.Serializable

public class ImageInfo
extends java.lang.Object
implements java.io.Serializable

The Class ImageInfo.

See Also:
Serialized Form

Constructor Summary
ImageInfo(java.net.URL imageResource, int x, int y, int width, int height)
          Instantiates a new image info.
 
Method Summary
 int getHeight()
          Gets the height.
 java.net.URL getImageResource()
          Gets the image resource.
 int getWidth()
          Gets the width.
 int getX()
          Gets the x.
 int getY()
          Gets the y.
 boolean isAutoRatioByImageHeight()
          Checks if is auto ratio by image height.
 void setAutoRatioByImageHeight(boolean isAutoRatioByImageHeight)
          Sets the auto ratio by image height.
 void setHeight(int height)
          Sets the height.
 void setImageResource(java.net.URL imageResource)
          Sets the image resource.
 void setWidth(int width)
          Sets the width.
 void setX(int x)
          Sets the x.
 void setY(int y)
          Sets the y.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageInfo

public ImageInfo(java.net.URL imageResource,
                 int x,
                 int y,
                 int width,
                 int height)
Instantiates a new image info.

Parameters:
imageResource - the image resource
x - the x
y - the y
width - the width
height - the height
Method Detail

getHeight

public int getHeight()
Gets the height.

Returns:
the height

getImageResource

public java.net.URL getImageResource()
Gets the image resource.

Returns:
the image resource

getWidth

public int getWidth()
Gets the width.

Returns:
the width

getX

public int getX()
Gets the x.

Returns:
the x

getY

public int getY()
Gets the y.

Returns:
the y

isAutoRatioByImageHeight

public boolean isAutoRatioByImageHeight()
Checks if is auto ratio by image height.

Returns:
true, if is auto ratio by image height

setAutoRatioByImageHeight

public void setAutoRatioByImageHeight(boolean isAutoRatioByImageHeight)
Sets the auto ratio by image height.

Parameters:
isAutoRatioByImageHeight - the new auto ratio by image height

setHeight

public void setHeight(int height)
Sets the height.

Parameters:
height - the new height

setImageResource

public void setImageResource(java.net.URL imageResource)
Sets the image resource.

Parameters:
imageResource - the new image resource

setWidth

public void setWidth(int width)
Sets the width.

Parameters:
width - the new width

setX

public void setX(int x)
Sets the x.

Parameters:
x - the new x

setY

public void setY(int y)
Sets the y.

Parameters:
y - the new y