Class FlexibleOutline

    • Constructor Summary

      Constructors 
      Constructor Description
      FlexibleOutline​(int top, int right, int bottom, int left)
      Creates a flexible outline specifying its thickness for each edge.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(ej.microui.display.GraphicsContext g, Size size)
      Applies the outline on a graphics context.
      void apply​(Outlineable outlineable)
      Removes the thickness of this outline from the given object.
      boolean equals​(java.lang.Object obj)  
      int getBottom()
      Gets the bottom thickness.
      int getLeft()
      Gets the left thickness.
      int getRight()
      Gets the right thickness.
      int getTop()
      Gets the top thickness.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlexibleOutline

        public FlexibleOutline​(int top,
                               int right,
                               int bottom,
                               int left)
        Creates a flexible outline specifying its thickness for each edge.

        The given thickness values are clamped between 0 and Character.MAX_VALUE.

        Parameters:
        top - the top thickness.
        right - the right thickness.
        bottom - the bottom thickness.
        left - the left thickness.
    • Method Detail

      • getTop

        public int getTop()
        Gets the top thickness.
        Returns:
        the top thickness.
      • getBottom

        public int getBottom()
        Gets the bottom thickness.
        Returns:
        the bottom thickness.
      • getLeft

        public int getLeft()
        Gets the left thickness.
        Returns:
        the left thickness.
      • getRight

        public int getRight()
        Gets the right thickness.
        Returns:
        the right thickness.
      • apply

        public void apply​(Outlineable outlineable)
        Description copied from interface: Outline
        Removes the thickness of this outline from the given object.
        Specified by:
        apply in interface Outline
        Parameters:
        outlineable - the object to unwrap.
      • apply

        public void apply​(ej.microui.display.GraphicsContext g,
                          Size size)
        Description copied from interface: Outline
        Applies the outline on a graphics context.
        Specified by:
        apply in interface Outline
        Parameters:
        g - the graphics context.
        size - the size to apply on.
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object obj)
        Specified by:
        equals in interface Outline
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface Outline
        Overrides:
        hashCode in class java.lang.Object