Class EdgeBorder

java.lang.Object
hec.gfx2d.border.EdgeBorder
All Implemented Interfaces:
Border

public class EdgeBorder extends Object implements Border
  • Field Details

  • Constructor Details

    • EdgeBorder

      public EdgeBorder(int i)
      Constructus a new EdgeBorder with the given Edge Pattern
    • EdgeBorder

      public EdgeBorder()
      Constructs a new default EdgeBorder with edges drawn on all sides
  • Method Details

    • isBorderOpaque

      public boolean isBorderOpaque()
      Specified by:
      isBorderOpaque in interface Border
    • getBorderInsets

      public Insets getBorderInsets(Component component)
      Returns the inests of this border
      Specified by:
      getBorderInsets in interface Border
    • paintBorder

      public void paintBorder(Component component, Graphics graphics, int x, int y, int width, int height)
      Called to paint the border. Border is painted by the set edge pattern
      Specified by:
      paintBorder in interface Border
    • recalcInsets

      protected void recalcInsets()
      Calculates a new set of insets based on the gived edge pattern