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 space to allocate at the bottom of the icon.
|
double |
getLeftoverLeft()
Gets space to allocate at the left of the icon.
|
int |
getScalingMode()
The type of scaling that shall be used.
|
int |
getScalingReason()
Gets scaling reason.
|
boolean |
isSpreadOnBorder()
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)
Sets space to allocate at the bottom of the icon.
|
void |
setLeftoverLeft(double value)
Sets space to allocate at the left of the icon.
|
void |
setScalingMode(int value)
The type of scaling that shall be used.
|
void |
setScalingReason(int value)
Sets scaling reason.
|
void |
setSpreadOnBorder(boolean value)
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 int getScalingReason()
Gets scaling reason.
ScalingReason
public void setScalingReason(int value)
Sets scaling reason.
value
- ScalingReason valueScalingReason
public int getScalingMode()
The type of scaling that shall be used.
ScalingMode
public void setScalingMode(int value)
The type of scaling that shall be used.
value
- ScalingMode valueScalingMode
public double getLeftoverLeft()
Gets space to allocate at the left of the icon.
public void setLeftoverLeft(double value)
Sets space to allocate at the left of the icon.
value
- space to allocate at the left of the icon.public double getLeftoverBottom()
Gets space to allocate at the bottom of the icon.
public void setLeftoverBottom(double value)
Sets space to allocate at the bottom of the icon.
value
- space to allocate at the bottompublic boolean isSpreadOnBorder()
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)
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.
value
- boolean valuepublic 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.