Class FBorder

java.lang.Object
javax.swing.border.AbstractBorder
fr.formiko.views.gui2d.FBorder
All Implemented Interfaces:
Serializable, Border

public class FBorder extends AbstractBorder
the Border class for Formiko.
Author:
Hydrolien
See Also:
  • Field Details

    • color

      private Color color
    • thickness

      private int thickness
  • Constructor Details

    • FBorder

      public FBorder()
  • Method Details

    • getColor

      public Color getColor()
    • setColor

      public void setColor(Color color)
    • getThickness

      public int getThickness()
    • setThickness

      public void setThickness(int thickness)
    • paintBorder

      public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
      main function that paint the border.
      Specified by:
      paintBorder in interface Border
      Overrides:
      paintBorder in class AbstractBorder
      Parameters:
      c - the component for which this border is being painted
      g - the paint graphics
      x - the x position of the painted border
      y - the y position of the painted border
      width - the width of the painted border
      height - the height of the painted border