Class BorderHelper


  • public class BorderHelper
    extends Object
    Provides utility methods to draw borders.
    • Constructor Detail

      • BorderHelper

        public BorderHelper()
    • Method Detail

      • drawRectangularBorder

        public static void drawRectangularBorder​(GraphicsContext g,
                                                 int width,
                                                 int height,
                                                 int left,
                                                 int top,
                                                 int right,
                                                 int bottom)
        Draw a rectangular border with the given dimensions and given thickness for each side, using the given graphics context.
        Parameters:
        g - the graphics context to use.
        width - the width of the border.
        height - the height of the border.
        left - the left thickness of the border.
        top - the top thickness of the border.
        right - the right thickness of the border.
        bottom - the bottom thickness of the border.