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

Class CombinedInsetter

  • Object
    • CombinedInsetter
  • All Implemented Interfaces:
    Insetter
    public class CombinedInsetter extends Object implements Insetter
    Create an insetter from two single axis insetters.
    • Constructors 
      Constructor and Description
      Ordinary member indicator CombinedInsetter Reveal DetailHide Detail
      CombinedInsetter(Insetter1 horizontal, Insetter1 vertical)
       
      public CombinedInsetter(@NotNull Insetter1 horizontal, @NotNull Insetter1 vertical)
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator apply Reveal DetailHide Detail
      Rectangle apply(int width, int height)
      Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
      @NotNull public Rectangle apply(int width, int height)
      Description copied from interface: Insetter
      Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds. The origin of the component is assumed to be (0, 0).
      Specified by:
      apply in interface Insetter
      Parameters:
      width - The width of the component.
      height - The height of the component.
      Returns:
      the bounds that result from applying the insets to the component bounds. This operation is conservative with respect to the insets. The insets implied by the result will always be at least as large as the nominal insets implied by this insetter, unless applying the insets would result in a negative width or height.
      Ordinary member indicator apply2D Reveal DetailHide Detail
      Rectangle2D apply2D(double width, double height)
      Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
      @NotNull public Rectangle2D apply2D(double width, double height)
      Description copied from interface: Insetter
      Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds. The origin of the component is assumed to be (0, 0).
      Specified by:
      apply2D in interface Insetter
      Parameters:
      width - The width of the component.
      height - The height of the component.
      Returns:
      the bounds that result from applying the insets to the specified bounds.
      Ordinary member indicator applyToBounds Reveal DetailHide Detail
      Rectangle applyToBounds(Rectangle bounds)
      Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
      @NotNull public Rectangle applyToBounds(@NotNull Rectangle bounds)
      Description copied from interface: Insetter
      Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
      Specified by:
      applyToBounds in interface Insetter
      Parameters:
      bounds - The component bounds.
      Returns:
      the bounds that result from applying the insets to the component bounds. This operation is conservative with respect to the insets. The insets implied by the result will always be at least as large as the nominal insets implied by this insetter, unless applying the insets would result in a negative width or height.
      Ordinary member indicator applyToBounds2D Reveal DetailHide Detail
      Rectangle2D applyToBounds2D(Rectangle2D bounds)
      Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
      @NotNull public Rectangle2D applyToBounds2D(@NotNull Rectangle2D bounds)
      Description copied from interface: Insetter
      Map from (outer) component bounds to (inner) region bounds by subtracting the insets from the component bounds.
      Specified by:
      applyToBounds2D in interface Insetter
      Parameters:
      bounds - The component bounds.
      Returns:
      the bounds that result from applying the insets to the specified bounds.
      Ordinary member indicator asInsets Reveal DetailHide Detail
      Insets asInsets()
      Return the insets as AWT insets.
      @Nullable public Insets asInsets()
      Description copied from interface: Insetter
      Return the insets as AWT insets. Only insets with fixed values can be represented as AWT insets. If the inset values are not integers, the next larger integer value is returned.
      Specified by:
      asInsets in interface Insetter
      Returns:
      the insets as AWT insets, or null if the inset values are not fixed.
      Ordinary member indicator asInsets2D Reveal DetailHide Detail
      Insets2D asInsets2D()
      Return the insets as fixed insets.
      @Nullable public Insets2D asInsets2D()
      Description copied from interface: Insetter
      Return the insets as fixed insets.
      Specified by:
      asInsets2D in interface Insetter
      Returns:
      the fixed inset values, or null if the inset values are not fixed.
      Ordinary member indicator expand Reveal DetailHide Detail
      Dimension expand(Dimension regionSize)
      Compute a component size from a region size.
      @NotNull public Dimension expand(@NotNull Dimension regionSize) throws InsetterNotInvertibleException
      Description copied from interface: Insetter
      Compute a component size from a region size. This operation is valid only if the insetter is invertible.
      Specified by:
      expand in interface Insetter
      Parameters:
      regionSize - The size of the region.
      Returns:
      the size of a component containing the region with the specified size.
      Throws:
      InsetterNotInvertibleException - if this insetter is not invertible.
      Ordinary member indicator expand2D Reveal DetailHide Detail
      Dimension2D expand2D(Dimension2D regionSize)
      Compute a component size from a region size.
      @NotNull public Dimension2D expand2D(@NotNull Dimension2D regionSize) throws InsetterNotInvertibleException
      Description copied from interface: Insetter
      Compute a component size from a region size. This operation is valid only if the insetter is invertible.
      Specified by:
      expand2D in interface Insetter
      Parameters:
      regionSize - The size of the region.
      Returns:
      the size of a component containing the region with the specified size.
      Throws:
      InsetterNotInvertibleException - if this insetter is not invertible.
      Ordinary member indicator isInvertible Reveal DetailHide Detail
      boolean isInvertible()
      Indicate whether this insetter is invertible.
      public boolean isInvertible()
      Description copied from interface: Insetter
      Indicate whether this insetter is invertible. An invertible insetter can map a region size to the component size.
      Specified by:
      isInvertible in interface Insetter
      • Methods inherited from class Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait