ButtonIconFit Class
Specifies how a button icon is scaled and positioned within a button field.
Declaration
public class ButtonIconFit extends JavaObject
Remarks
Use the ButtonIconFit class to define when an icon is scaled, how it is scaled, its alignment, and whether it fits the annotation bounds.
Refer to the following help topic for additional information: Work with PDF Forms (AcroForms).
Inherited Members
Inheritance
ButtonIconFit()
Initializes a new instance of the ButtonIconFit class.
Declaration
public ButtonIconFit()
Methods
deepClone() Method
Creates a deep copy of the current object.
Declaration
public ButtonIconFit deepClone()
Returns
| Type | Description |
|---|---|
ButtonIconFit |
A deep copy of the current object. |
getFitToAnnotationBounds() Method
Returns whether the button icon is scaled to fit the annotation bounds.
Declaration
public boolean getFitToAnnotationBounds()
Returns
| Type | Description |
|---|---|
| boolean |
|
getHorizontalPosition() Method
Returns the horizontal position of the button icon.
Declaration
public double getHorizontalPosition()
Returns
| Type | Description |
|---|---|
| double | A value from |
getScalingCircumstances() Method
Returns circumstances under which the button icon is scaled.
Declaration
public ButtonIconScalingCircumstances getScalingCircumstances()
Returns
| Type | Description |
|---|---|
| ButtonIconScalingCircumstances | A value that specifies when to scale the button icon. |
getScalingType() Method
Returns a value that specifies how to scale a button icon.
Declaration
public ButtonIconScalingType getScalingType()
Returns
| Type | Description |
|---|---|
| ButtonIconScalingType | A |
getVerticalPosition() Method
Returns the vertical position of the button icon.
Declaration
public double getVerticalPosition()
Returns
| Type | Description |
|---|---|
| double | A value from |
setFitToAnnotationBounds(boolean value) Method
Sets whether the button icon is scaled to fit the annotation bounds.
Declaration
public void setFitToAnnotationBounds(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setHorizontalPosition(double value) Method
Sets the horizontal position of the button icon.
Declaration
public void setHorizontalPosition(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | A value from |
setScalingCircumstances(ButtonIconScalingCircumstances value) Method
Specifies circumstances under which the button icon is scaled.
Declaration
public void setScalingCircumstances(ButtonIconScalingCircumstances value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ButtonIconScalingCircumstances | A value that specifies when to scale the button icon. |
setScalingType(ButtonIconScalingType value) Method
Specifies how to scale a button icon.
Declaration
public void setScalingType(ButtonIconScalingType value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ButtonIconScalingType | A |
setVerticalPosition(double value) Method
Sets the vertical position of the button icon.
Declaration
public void setVerticalPosition(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | A value from |