Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
Java Native Rendering
Interface org.violetlib.jnr.Insetter1
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.jnr

Interface Insetter1

  • All Known Implementing Classes:
    CenteredInsetter1, DynamicInsetter1, FixedInsetter1, FloatingInsetter1, NonInvertibleInsetterBase, RigidInsetter1
    public interface Insetter1
    A definitions of insets along one axis, either horizontal (left and right insets) or vertical (top and bottom insets). This definition relates the size of a component along the axis to the size and position of a region of that component along the same axis. See Insetter for more information.
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator getComponentSize Reveal DetailHide Detail
      abstract float getComponentSize(float regionSize)
      Map the region size to the size of the component.
      float getComponentSize(float regionSize) throws InsetterNotInvertibleException
      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.
      Ordinary member indicator getFixedInset1 Reveal DetailHide Detail
      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.
      Ordinary member indicator getFixedInset2 Reveal DetailHide Detail
      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.
      Ordinary member indicator getRegionOrigin Reveal DetailHide Detail
      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.
      Ordinary member indicator getRegionSize Reveal DetailHide Detail
      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.
      Ordinary member indicator isInvertible Reveal DetailHide Detail
      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.