DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class RotatingPageElement

java.lang.Object
  extended by com.cete.dynamicpdf.PageElement
      extended by com.cete.dynamicpdf.pageelements.TaggablePageElement
          extended by com.cete.dynamicpdf.pageelements.RotatingPageElement
All Implemented Interfaces:
ICoordinate
Direct Known Subclasses:
BarCode, Chart, FormattedTextArea, HtmlArea, Image, Label, List, PageNumberingLabel, Rectangle, Table, Table2, TextArea

public abstract class RotatingPageElement
extends TaggablePageElement
implements ICoordinate

Base class from which rotating page elements are derived.

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


Constructor Summary
protected RotatingPageElement(float x, float y, float height)
          Initializes a new instance of the RotatingPageElement class.
protected RotatingPageElement(float x, float y, float height, float angle)
          Initializes a new instance of the RotatingPageElement class.
 
Method Summary
 void draw(PageWriter writer)
          Draws the page element to the given PageWriter object.
protected abstract  void drawRotated(PageWriter writer)
          Draws the rotated page element to the given PageWriterobject.
 float getAngle()
          Gets the heights of the angle element.
 float getHeight()
          Gets the height of the page element.
 float getX()
          Gets the X coordinate of the page element.
 float getY()
          Gets the Y coordinate of the page element.
 void setAngle(float angle)
          Sets the heights of the angle element.
 void setHeight(float height)
          Sets the height of the page element.
 void setX(float x)
          Sets the X coordinate of the page element.
 void setY(float y)
          Sets the Y coordinate of the page element.
 
Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement
getTag, getTagOrder, setTag, setTagOrder
 
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

RotatingPageElement

protected RotatingPageElement(float x,
                              float y,
                              float height)
Initializes a new instance of the RotatingPageElement class.

Parameters:
x - the float X coordinate of the rotating page element.
y - the float Y coordinate of the rotating page element.
height - the float height of the rotating page element.

RotatingPageElement

protected RotatingPageElement(float x,
                              float y,
                              float height,
                              float angle)
Initializes a new instance of the RotatingPageElement class.

Parameters:
x - the float X coordinate of the rotating page element.
y - the float Y coordinate of the rotating page element.
height - the float height of the rotating page element.
angle - the float angle of the rotating page element.
Method Detail

setAngle

public void setAngle(float angle)
Sets the heights of the angle element.

Parameters:
angle - the float used to set the height of the angle element.

getAngle

public float getAngle()
Gets the heights of the angle element.

Returns:
the float height of the angle element.

setX

public void setX(float x)
Sets the X coordinate of the page element.

Specified by:
setX in interface ICoordinate
Parameters:
x - the float used to set the X coordinate of the page element.

getX

public float getX()
Gets the X coordinate of the page element.

Specified by:
getX in interface ICoordinate
Returns:
the float X coordinate of the page element.

setY

public void setY(float y)
Sets the Y coordinate of the page element.

Specified by:
setY in interface ICoordinate
Parameters:
y - the float used to set the Y coordinate of the page element.

getY

public float getY()
Gets the Y coordinate of the page element.

Specified by:
getY in interface ICoordinate
Returns:
the float Y coordinate of the page element.

setHeight

public void setHeight(float height)
Sets the height of the page element.

Parameters:
height - the float used to set the height of the page element.

getHeight

public float getHeight()
Gets the height of the page element.

Returns:
the float height of the page element.

drawRotated

protected abstract void drawRotated(PageWriter writer)
Draws the rotated page element to the given PageWriterobject.

Parameters:
writer - PageWriter object to receive the page element's output.
See Also:
PageWriter

draw

public void draw(PageWriter writer)
Draws the page element to the given PageWriter object.

Overrides:
draw in class TaggablePageElement
Parameters:
writer - PageWriter object to receive the page element'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