Class FlexibleRectangularBorder

  • All Implemented Interfaces:
    Outline

    public class FlexibleRectangularBorder
    extends FlexibleOutline
    Represents and draw a rectangular colored border with one color.

    The thicknesses are stored as a char for heap optimization and therefore cannot exceed 65535.

    • Constructor Summary

      Constructors 
      Constructor Description
      FlexibleRectangularBorder​(int color, int top, int right, int bottom, int left)
      Creates a flexible rectangular border specifying its color and edges thickness.
    • Constructor Detail

      • FlexibleRectangularBorder

        public FlexibleRectangularBorder​(int color,
                                         int top,
                                         int right,
                                         int bottom,
                                         int left)
        Creates a flexible rectangular border specifying its color and edges thickness.

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

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

      • getColor

        public int getColor()
        Gets the color.
        Returns:
        the color.
      • 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
        Overrides:
        apply in class FlexibleOutline
        Parameters:
        g - the graphics context.
        size - the size to apply on.