Package fr.formiko.views.gui2d
Class FBorder
java.lang.Object
javax.swing.border.AbstractBorder
fr.formiko.views.gui2d.FBorder
- All Implemented Interfaces:
Serializable
,Border
the Border class for Formiko.
- Author:
- Hydrolien
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
int
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) main function that paint the border.void
void
setThickness
(int thickness) Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
Field Details
-
color
-
thickness
private int thickness
-
-
Constructor Details
-
FBorder
public FBorder()
-
-
Method Details
-
getColor
-
setColor
-
getThickness
public int getThickness() -
setThickness
public void setThickness(int thickness) -
paintBorder
main function that paint the border.- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classAbstractBorder
- Parameters:
c
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted border
-