DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class AnchorGroup

java.lang.Object
  extended by com.cete.dynamicpdf.PageElement
      extended by com.cete.dynamicpdf.pageelements.Group
          extended by com.cete.dynamicpdf.pageelements.AnchorGroup
All Implemented Interfaces:
IPageElementContainer

public class AnchorGroup
extends Group

Represents a group of elements that will be anchored.

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


Constructor Summary
AnchorGroup(float width, float height, Align align, VAlign vAlign)
          Initializes a new instance of the AnchorGroup class.
 
Method Summary
 void draw(PageWriter writer)
          Draws the anchor group to the given PageWriter object.
 Align getAlign()
          Gets the Align enumeration that specifies horizontal alignment of the anchor group.
 AnchorTo getAnchorTo()
          Gets the AnchorTo enumeration that specifies anchor type of the anchor group.
 float getHeight()
          Gets the height of the anchor group.
 VAlign getVAlign()
          Gets the VAlign enumeration that specifies vertical alignment of the anchor group.
 float getWidth()
          Gets the width of the anchor group.
 void setAlign(Align value)
          Sets the Align enumeration that specifies horizontal alignment of the anchor group.
 void setAnchorTo(AnchorTo value)
          Sets the AnchorTo enumeration that specifies anchor type of the anchor group.
 void setHeight(float height)
          Sets the height of the anchor group.
 void setVAlign(VAlign value)
          Sets the VAlign enumeration that specifies vertical alignment of the anchor group.
 void setWidth(float width)
          Sets the width of the anchor 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

AnchorGroup

public AnchorGroup(float width,
                   float height,
                   Align align,
                   VAlign vAlign)
Initializes a new instance of the AnchorGroup class.

Parameters:
width - Width of the anchor group.
height - Height of the anchor group.
align - Alignment of the anchor group.
vAlign - Vertical Alignment of the anchor group.
Method Detail

draw

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

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

getWidth

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

Returns:
float width of the anchor group.

setWidth

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

Parameters:
width - float width of the anchor group.

getHeight

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

Returns:
float height of the anchor group.

setHeight

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

Parameters:
height - float height of the anchor group.

getAlign

public Align getAlign()
Gets the Align enumeration that specifies horizontal alignment of the anchor group.

Returns:
the horizontal alignment of the anchor group.
See Also:
Align

setAlign

public void setAlign(Align value)
Sets the Align enumeration that specifies horizontal alignment of the anchor group.

Parameters:
value - the horizontal alignment of the anchor group.
See Also:
Align

getVAlign

public VAlign getVAlign()
Gets the VAlign enumeration that specifies vertical alignment of the anchor group.

Returns:
the vertical alignment of the anchor group.
See Also:
VAlign

setVAlign

public void setVAlign(VAlign value)
Sets the VAlign enumeration that specifies vertical alignment of the anchor group.

Parameters:
value - the vertical alignment of the anchor group.
See Also:
VAlign

getAnchorTo

public AnchorTo getAnchorTo()
Gets the AnchorTo enumeration that specifies anchor type of the anchor group.

Returns:
the anchor type of the anchor group.
See Also:
AnchorTo

setAnchorTo

public void setAnchorTo(AnchorTo value)
Sets the AnchorTo enumeration that specifies anchor type of the anchor group.

Parameters:
value - the anchor type of the anchor group.
See Also:
AnchorTo

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software