public final class IconFit extends Object
Describes how the widget annotation's icon shall be displayed within its annotation rectangle.
Modifier and Type | Method and Description |
---|---|
double |
getLeftoverBottom()
Gets or sets space to allocate at the bottom of the icon.
|
double |
getLeftoverLeft()
Gets or sets space to allocate at the left of the icon.
|
int |
getScalingMode()
The type of scaling that shall be used.
|
int |
getScalingReason()
Gets or sets scaling reason.
|
boolean |
getSpreadOnBorder()
If true, indicates that the button appearance shall be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.
|
static int |
nameToScalingMode(String mode)
Converts scaling mode name into ScalingMode object.
|
static int |
nameToScalingReason(String reason)
Converts name of scaling reason into ScalingReason object.
|
static String |
scalingModeToName(int mode)
Converts scaling mode object into name.
|
static String |
scalingReasonToName(int reason)
Converts scaling reason obejct to name.
|
void |
setLeftoverBottom(double value) |
void |
setLeftoverLeft(double value) |
void |
setScalingMode(int value) |
void |
setScalingReason(int value) |
void |
setSpreadOnBorder(boolean value) |
public int getScalingReason()
Gets or sets scaling reason.
public void setScalingReason(int value)
public int getScalingMode()
The type of scaling that shall be used.
public void setScalingMode(int value)
public double getLeftoverLeft()
Gets or sets space to allocate at the left of the icon.
public void setLeftoverLeft(double value)
public double getLeftoverBottom()
Gets or sets space to allocate at the bottom of the icon.
public void setLeftoverBottom(double value)
public boolean getSpreadOnBorder()
If true, indicates that the button appearance shall be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.
public void setSpreadOnBorder(boolean value)
public static int nameToScalingReason(String reason)
Converts name of scaling reason into ScalingReason object.
reason
- Name of scaling reason.public static String scalingReasonToName(int reason)
Converts scaling reason obejct to name.
reason
- Scaling reason object to be converted.public static int nameToScalingMode(String mode)
Converts scaling mode name into ScalingMode object.
mode
- Scaling mode name.public static String scalingModeToName(int mode)
Converts scaling mode object into name.
mode
- Scaling mode object.Copyright © 2014 Aspose. All Rights Reserved.