Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.paradoxpoint.libitina.monument
Class TransformableImageItem  view TransformableImageItem download TransformableImageItem.java

java.lang.Object
  extended bycom.paradoxpoint.libitina.monument.AbstractItem
      extended bycom.paradoxpoint.libitina.monument.ImageItem
          extended bycom.paradoxpoint.libitina.monument.TransformableImageItem
All Implemented Interfaces:
Item, Positionable, PositionBias, Rotatable, java.io.Serializable, Sizable, Transformable

public class TransformableImageItem
extends ImageItem
implements Transformable

Item capable of storing information for an image including size, position and rotation. (NOTE: this is a property archive class and methods do not affect the visual images that the items represent in anyway.)


Field Summary
private  int height
          Holds value of property height.
private  boolean mirrored
           
private  double rotation
          Holds value of property rotation.
(package private)  int sourceHeight
           
(package private)  int sourceWidth
          Dimensions of image before sizing
private  int width
          Holds value of property width.
private  int x
          Holds value of property x.
private  int y
          Holds value of property y.
 
Fields inherited from class com.paradoxpoint.libitina.monument.ImageItem
 
Fields inherited from class com.paradoxpoint.libitina.monument.AbstractItem
bias, editable, name, positionBias, propertySupport, visible
 
Constructor Summary
TransformableImageItem(java.lang.String name, java.net.URL src)
          Creates a new instance of ImageItem
TransformableImageItem(java.lang.String name, java.net.URL src, int preferredPosition)
           
 
Method Summary
 int getHeight()
          Getter for property height.
 double getRotation()
          Getter for property rotation.
 int getWidth()
          Getter for property width.
 int getX()
          Getter for property x.
 int getY()
          Getter for property y.
 boolean isMirrored()
           
 void setHeight(int height)
          Setter for property height.
 void setMirrored(boolean b)
           
 void setRotation(double rotation)
          Setter for property rotation.
 void setWidth(int width)
          Setter for property width.
 void setX(int x)
          Setter for property x.
 void setY(int y)
          Setter for property y.
private  void sizeToImage()
           
 
Methods inherited from class com.paradoxpoint.libitina.monument.ImageItem
getSource
 
Methods inherited from class com.paradoxpoint.libitina.monument.AbstractItem
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getName, getPositionBias, getPropertyChangeListeners, getPropertyChangeListeners, hasBias, hasListeners, isEditable, isVisible, removePropertyChangeListener, removePropertyChangeListener, setEditable, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

private int x
Holds value of property x.


y

private int y
Holds value of property y.


width

private int width
Holds value of property width.


height

private int height
Holds value of property height.


rotation

private double rotation
Holds value of property rotation.


sourceWidth

int sourceWidth
Dimensions of image before sizing


sourceHeight

int sourceHeight

mirrored

private boolean mirrored
Constructor Detail

TransformableImageItem

public TransformableImageItem(java.lang.String name,
                              java.net.URL src)
Creates a new instance of ImageItem


TransformableImageItem

public TransformableImageItem(java.lang.String name,
                              java.net.URL src,
                              int preferredPosition)
Method Detail

sizeToImage

private void sizeToImage()

getX

public int getX()
Getter for property x.

Specified by:
getX in interface Positionable

setX

public void setX(int x)
Setter for property x.

Specified by:
setX in interface Positionable

getY

public int getY()
Getter for property y.

Specified by:
getY in interface Positionable

setY

public void setY(int y)
Setter for property y.

Specified by:
setY in interface Positionable

getWidth

public int getWidth()
Getter for property width.

Specified by:
getWidth in interface Sizable

setWidth

public void setWidth(int width)
Setter for property width.

Specified by:
setWidth in interface Sizable

getHeight

public int getHeight()
Getter for property height.

Specified by:
getHeight in interface Sizable

setHeight

public void setHeight(int height)
Setter for property height.

Specified by:
setHeight in interface Sizable

getRotation

public double getRotation()
Getter for property rotation.

Specified by:
getRotation in interface Rotatable

setRotation

public void setRotation(double rotation)
Setter for property rotation.

Specified by:
setRotation in interface Rotatable

isMirrored

public boolean isMirrored()
Specified by:
isMirrored in interface Transformable

setMirrored

public void setMirrored(boolean b)
Specified by:
setMirrored in interface Transformable