com.ohrasys.cad.gds.dao
Class Transform

java.lang.Object
  extended by com.ohrasys.cad.gds.dao.Transform
All Implemented Interfaces:
InfoProvider

public class Transform
extends java.lang.Object
implements InfoProvider

A transform data access object


Constructor Summary
Transform()
          Creates a new instance of Transform
Transform(double angle, double magnification, boolean isMirrored, boolean isRelativeAngle, boolean isRelativeMagnification)
          Creates a new Transform object.
 
Method Summary
 double getAngle()
          Getter for property angle.
 java.lang.String getInfo()
          Returns a textual representation of the transform
 double getMagnification()
          Getter for property magnification.
 boolean isMirrored()
          Getter for property mirrored.
 boolean isRelativeAngle()
          Getter for property relativeAngle.
 boolean isRelativeMagnification()
          Getter for property relativeMagnification.
 void setAngle(double angle)
          Setter for property angle.
 void setMagnification(double magnification)
          Setter for property magnification.
 void setMirrored(boolean mirrored)
          Setter for property mirrored.
 void setRelativeAngle(boolean relativeAngle)
          Setter for property relativeAngle.
 void setRelativeMagnification(boolean relativeMagnification)
          Setter for property relativeMagnification.
 java.lang.String toString()
          Returns a string representation of the transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transform

public Transform()
Creates a new instance of Transform


Transform

public Transform(double angle,
                 double magnification,
                 boolean isMirrored,
                 boolean isRelativeAngle,
                 boolean isRelativeMagnification)
Creates a new Transform object.

Parameters:
angle - The rotation angle
magnification - The magnification
isMirrored - Indicates the object is mirrored
isRelativeAngle - Indicates the rotation angle is relative
isRelativeMagnification - Indicates the magnification is relative
Method Detail

getAngle

public double getAngle()
Getter for property angle.

Returns:
Value of property angle.

getInfo

public java.lang.String getInfo()
Returns a textual representation of the transform

Specified by:
getInfo in interface InfoProvider
Returns:
A textual representation of the transform

getMagnification

public double getMagnification()
Getter for property magnification.

Returns:
Value of property magnification.

isMirrored

public boolean isMirrored()
Getter for property mirrored.

Returns:
Value of property mirrored.

isRelativeAngle

public boolean isRelativeAngle()
Getter for property relativeAngle.

Returns:
Value of property relativeAngle.

isRelativeMagnification

public boolean isRelativeMagnification()
Getter for property relativeMagnification.

Returns:
Value of property relativeMagnification.

setAngle

public void setAngle(double angle)
Setter for property angle.

Parameters:
angle - New value of property angle.

setMagnification

public void setMagnification(double magnification)
Setter for property magnification.

Parameters:
magnification - New value of property magnification.

setMirrored

public void setMirrored(boolean mirrored)
Setter for property mirrored.

Parameters:
mirrored - New value of property mirrored.

setRelativeAngle

public void setRelativeAngle(boolean relativeAngle)
Setter for property relativeAngle.

Parameters:
relativeAngle - New value of property relativeAngle.

setRelativeMagnification

public void setRelativeMagnification(boolean relativeMagnification)
Setter for property relativeMagnification.

Parameters:
relativeMagnification - New value of property relativeMagnification.

toString

public java.lang.String toString()
Returns a string representation of the transform

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the transform