Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Insets

[14:7] extends: FxObj

Wraps JavaFX Insets, an immutable set of inside offsets for the four sides (top, right, bottom, left) of a rectangular area. Insets describe the padding of a Region, the space a Border or Background occupies, and similar edge offsets. Values are doubles measured in pixels.

Methods

  • Insets (Top = null, Right = null, Bottom = null, Left = null)

    Creates a new Insets. With a single value all four sides share it; with four values each side is set independently. An existing Insets AJO passed as the first argument is wrapped directly.

    • @p Top is the top offset, the uniform offset, or an Insets AJO to wrap.
    • @p Right is the optional right offset.
    • @p Bottom is the optional bottom offset.
    • @p Left is the optional left offset.
  • getTop ()

    Returns the top offset.

    • @r A double with the top offset.
  • getRight ()

    Returns the right offset.

    • @r A double with the right offset.
  • getBottom ()

    Returns the bottom offset.

    • @r A double with the bottom offset.
  • getLeft ()

    Returns the left offset.

    • @r A double with the left offset.