DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class TransformationGroup

java.lang.Object
  extended by com.cete.dynamicpdf.PageElement
      extended by com.cete.dynamicpdf.pageelements.Group
          extended by com.cete.dynamicpdf.pageelements.TransformationGroup
All Implemented Interfaces:
IArea, ICoordinate, IPageElementContainer

public class TransformationGroup
extends Group
implements IArea, ICoordinate

This class can be used to transform entire groups of page elements. Any page element that is placed in this group will be displayed with the transformation values and attributes of this group.

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Constructor Summary
TransformationGroup(float x, float y, float width, float height)
          Initializes a new instance of the TransformationGroup class.
TransformationGroup(float x, float y, float width, float height, float angle)
          Initializes a new instance of the TransformationGroup class.
 
Method Summary
 void draw(PageWriter writer)
          Draws the transformation group to the given PageWriter object.
 float getAngle()
          Gets the angle of the transformation group.
 float getHeight()
          Gets the height of the transformation group.
 float getScaleX()
          Gets the X scale of the transformation group.
 float getScaleY()
          Gets the Y scale of the transformation group.
 float getWidth()
          Gets the width of the transformation group.
 float getX()
          Gets the X coordinate of the transformation group.
 float getY()
          Gets the Y coordinate of the transformation group.
 void setAngle(float value)
          Sets the angle of the transformation group.
 void setHeight(float value)
          Sets the height of the transformation group.
 void setScaleX(float value)
          Sets the X scale of the transformation group.
 void setScaleY(float value)
          Sets the Y scale of the transformation group.
 void setWidth(float value)
          Sets the width of the transformation group.
 void setX(float value)
          Sets the X coordinate of the transformation group.
 void setY(float value)
          Sets the Y coordinate of the transformation group.
 
Methods inherited from class com.cete.dynamicpdf.pageelements.Group
add, getEnumerator, getPageElement, getPageElement, getPageElementByID, hasElements, hasPageElements, insert, size
 
Methods inherited from class com.cete.dynamicpdf.PageElement
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationGroup

public TransformationGroup(float x,
                           float y,
                           float width,
                           float height)
Initializes a new instance of the TransformationGroup class.

Parameters:
x - X coordinate of the transformation group.
y - Y coordinate of the transformation group.
width - Width coordinate of the transformation group.
height - Height coordinate of the transformation group.

TransformationGroup

public TransformationGroup(float x,
                           float y,
                           float width,
                           float height,
                           float angle)
Initializes a new instance of the TransformationGroup class.

Parameters:
x - X coordinate of the transformation group.
y - Y coordinate of the transformation group.
width - Width coordinate of the transformation group.
height - Height coordinate of the transformation group.
angle - Angle of the transformation group in degrees.
Method Detail

getAngle

public float getAngle()
Gets the angle of the transformation group.

Returns:
the angle of the transformation group.

setAngle

public void setAngle(float value)
Sets the angle of the transformation group.

Parameters:
value - the angle of the transformation group.

getScaleX

public float getScaleX()
Gets the X scale of the transformation group.

Returns:
he X scale of the transformation group.

setScaleX

public void setScaleX(float value)
Sets the X scale of the transformation group.

Parameters:
value - he X scale of the transformation group.

getScaleY

public float getScaleY()
Gets the Y scale of the transformation group.

Returns:
the Y scale of the transformation group.

setScaleY

public void setScaleY(float value)
Sets the Y scale of the transformation group.

Parameters:
value - the Y scale of the transformation group.

getX

public float getX()
Gets the X coordinate of the transformation group.

Specified by:
getX in interface ICoordinate
Returns:
the X coordinate of the transformation group.

setX

public void setX(float value)
Sets the X coordinate of the transformation group.

Specified by:
setX in interface ICoordinate
Parameters:
value - the X coordinate of the transformation group.

getY

public float getY()
Gets the Y coordinate of the transformation group.

Specified by:
getY in interface ICoordinate
Returns:
the Y coordinate of the transformation group.

setY

public void setY(float value)
Sets the Y coordinate of the transformation group.

Specified by:
setY in interface ICoordinate
Parameters:
value - the Y coordinate of the transformation group.

getWidth

public float getWidth()
Gets the width of the transformation group.

Specified by:
getWidth in interface IArea
Returns:
the width of the transformation group.

setWidth

public void setWidth(float value)
Sets the width of the transformation group.

Specified by:
setWidth in interface IArea
Parameters:
value - the width of the transformation group.

getHeight

public float getHeight()
Gets the height of the transformation group.

Specified by:
getHeight in interface IArea
Returns:
the height of the transformation group.

setHeight

public void setHeight(float value)
Sets the height of the transformation group.

Specified by:
setHeight in interface IArea
Parameters:
value - the height of the transformation group.

draw

public void draw(PageWriter writer)
Draws the transformation group to the given PageWriter object.

Overrides:
draw in class Group
Parameters:
writer - to receive the transformation group's output.
See Also:
PageWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software