This web site requires JavaScript for proper operation. JavaScript is disabled on your browser.
packages...
org.violetlib.jnr
org.violetlib.jnr.aqua
classes...
VAquaRendering – Release 15
Interface org.violetlib.jnr .LayoutInfo
Deprecated: Show Hide
classes...
enum constants...
fields...
static methods...
constructors...
methods...
properties...
public interface LayoutInfo
Layout information that describes fixed and/or minimum sizes for a rendering. This information may be platform UI
dependent. In rare cases, it may also depend upon the native rendering implementation. All dimensions are specified in
device independent pixels.
Modifier and Type
Static Method and Description
create
static LayoutInfo create (boolean isWidthFixed,
float width,
boolean isHeightFixed,
float height)
Return a layout info with optional fixed or minimum dimensions.
static
LayoutInfo create (boolean isWidthFixed,
float width,
boolean isHeightFixed,
float height)
Return a layout info with optional fixed or minimum dimensions.
Parameters: isWidthFixed - If true, the width parameter specifies a fixed width. Otherwise, the width parameter
specifies a minimum width.width - The fixed or minimum width, or zero if none.isHeightFixed - If true, the height parameter specifies a fixed height. Otherwise, the height parameter
specifies a minimum height.height - The fixed or minimum height, or zero if none.
Returns: the layout info.
Throws:
IllegalArgumentException - if the specified width or height is negative.
Modifier and Type
Method and Description
getFixedVisualHeight
abstract float getFixedVisualHeight ()
Return the height of the visual rendering of the widget, if the height is fixed.
float getFixedVisualHeight ()
Return the height of the visual rendering of the widget, if the height is fixed.
Returns: the height, or 0 if the height is not fixed.
getFixedVisualWidth
abstract float getFixedVisualWidth ()
Return the width of the visual rendering of the widget, if the width is fixed.
float getFixedVisualWidth ()
Return the width of the visual rendering of the widget, if the width is fixed.
Returns: the width, or 0 if the width is not fixed.
getMinimumVisualHeight
abstract float getMinimumVisualHeight ()
Return the minimum height of the visual rendering of the widget.
float getMinimumVisualHeight ()
Return the minimum height of the visual rendering of the widget. If the visual rendering has a fixed height, then
that height is returned.
Returns: the minimum visual height.
getMinimumVisualWidth
abstract float getMinimumVisualWidth ()
Return the minimum width of the visual rendering of the widget.
float getMinimumVisualWidth ()
Return the minimum width of the visual rendering of the widget. If the visual rendering has a fixed width, then
that width is returned.
Returns: the minimum visual width.