public static class Widget.AnnotIconFit
extends java.lang.Object
AnnotIconFit
is an inner class defined for the annotation icon fit information.Modifier and Type | Field and Description |
---|---|
float |
bottom
Bottom-over space to allocate at the bottom of the icon.
|
boolean |
fitBounds
A
boolean value that indicates whether to scale button
appearance to fit fully within bounds or not. |
static int |
FLAG_ASPECTRATIO
Icon fit flag: Aspect ratio
|
static int |
FLAG_FITBOUNDS
Icon fit flag: Fit boundaries
|
static int |
FLAG_POSITION
Icon fit flag: Set position
|
static int |
FLAG_SCALEWAY
Icon fit flag: Scale way
|
int |
flags
Icon fit flag.
|
float |
left
Left-over space to allocate at the left of the icon.
|
boolean |
originalRatio
A
boolean value that indicates which type of scaling is
to be used. |
int |
scaleWay
The circumstances under which the icon should be scaled inside the
annotation rectangle.
|
static int |
SCALEWAY_ALWAYS
Icon scale way A: Always scale
|
static int |
SCALEWAY_BIGGER
Icon scale way B: Scale only when icon is bigger than annotation
rectangle
|
static int |
SCALEWAY_NEVER
Icon scale way N: Never scale
|
static int |
SCALEWAY_SMALLER
Icon scale way S: Scale only when icon is smaller than annotation
rectangle
|
Constructor and Description |
---|
AnnotIconFit() |
public static final int FLAG_SCALEWAY
public static final int FLAG_ASPECTRATIO
public static final int FLAG_POSITION
public static final int FLAG_FITBOUNDS
public static final int SCALEWAY_ALWAYS
public static final int SCALEWAY_BIGGER
public static final int SCALEWAY_SMALLER
public static final int SCALEWAY_NEVER
public int flags
It can be one or combination of the flags defined with
FLAG_XXX
.
public int scaleWay
It should be one of the value defined with
SCALEWAY_XXX
. Meaningful only
when icon fit flags contains
.FLAG_SCALEWAY
public boolean originalRatio
boolean
value that indicates which type of scaling is
to be used.
true
means to fill the annotation rectangle exactly,
without regard to its original aspect ratio (ratio of width to
height).
false
means scale the icon to scale the icon to fit the
width or height of the annotation rectangle while maintaining the
icon's original aspect ratio.
Meaningful only when icon fit flags contains
.FLAG_ASPECTRATIO
public float left
It's only valid for proportional scaling. Valid range: 0.0 to 1.0.
Meaningful only when icon fit flags contains
.FLAG_POSITION
public float bottom
It's only valid for proportional scaling. Valid range: 0.0 to 1.0.
Meaningful only when icon fit flags contains
.FLAG_POSITION
public boolean fitBounds
boolean
value that indicates whether to scale button
appearance to fit fully within bounds or not.
true
indicates that the button appearance should be
scaled to fit fully within the bounds of the annotation without
taking into consideration the line width of the border.
Meaningful only when icon fit flags contains
.FLAG_FITBOUNDS