This web site requires JavaScript for proper operation. JavaScript is disabled on your browser.
packages...
org.violetlib.jnr
org.violetlib.jnr.aqua
classes...
Java Native Rendering
Interface org.violetlib.jnr .Insetter1
Deprecated: Show Hide
classes...
enum constants...
fields...
static methods...
constructors...
methods...
properties...
Modifier and Type
Method and Description
getComponentSize
abstract float
getComponentSize (float regionSize)
Map the region size to the size of the component.
Map the region size to the size of the component. This operation is valid only if the insetter is invertible.
Parameters: regionSize
- The region size along the relevant axis.
Returns: the component size along the axis.
Throws:
InsetterNotInvertibleException
- if this insetter is not invertible.
getFixedInset1
abstract float
getFixedInset1 ()
Return the left or top inset, if it is fixed.
float getFixedInset1 ()
Return the left or top inset, if it is fixed.
Returns: the inset, or -1 if not fixed.
getFixedInset2
abstract float
getFixedInset2 ()
Return the right or bottom inset, if it is fixed.
float getFixedInset2 ()
Return the right or bottom inset, if it is fixed.
Returns: the inset, or -1 if not fixed.
getRegionOrigin
abstract float
getRegionOrigin (float componentSize)
Map the component size to the origin of the region, relative to the left or top edge of the component.
float getRegionOrigin (float componentSize)
Map the component size to the origin of the region, relative to the left or top edge of the component.
Parameters: componentSize
- The component size along the relevant axis.
Returns: The origin of the region along the axis relative to the component.
getRegionSize
abstract float
getRegionSize (float componentSize)
Map the component size to the size of the region.
float getRegionSize (float componentSize)
Map the component size to the size of the region.
Parameters: componentSize
- The component size along the relevant axis.
Returns: the region size along the relevant axis.
isInvertible
abstract boolean
isInvertible ()
Indicate whether this insetter is invertible.
boolean isInvertible ()
Indicate whether this insetter is invertible. An invertible insetter can map a region size to the component size.