Package ca.cgjennings.ui
Class ArcBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- ca.cgjennings.ui.ArcBorder
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.border.Border
public class ArcBorder extends javax.swing.border.AbstractBorder
A border that creates an arc along two sides of the component.- Author:
- Chris Jennings
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ARC_BOTTOM_LEFT
static int
ARC_LEFT_TOP
static int
ARC_RIGHT_BOTTOM
static int
ARC_TOP_RIGHT
-
Constructor Summary
Constructors Constructor Description ArcBorder()
ArcBorder(int arcEdges, int thickness)
ArcBorder(int arcEdges, int arcSize, int thickness, float hardening)
ArcBorder(int arcEdges, java.awt.Color color, int thickness)
ArcBorder(int arcEdges, java.awt.Color color, int arcSize, int thickness, float hardening)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getArcEdges()
int
getArcSize()
java.awt.Insets
getBorderInsets(java.awt.Component c)
java.awt.Insets
getBorderInsets(java.awt.Component c, java.awt.Insets insets)
java.awt.Color
getColor()
float
getHardening()
int
getThickness()
void
paintBorder(java.awt.Component c, java.awt.Graphics g1, int x, int y, int width, int height)
void
setArcEdges(int arcEdges)
void
setArcSize(int arcSize)
void
setColor(java.awt.Color color)
void
setHardening(float hardening)
void
setThickness(int thickness)
-
-
-
Field Detail
-
ARC_LEFT_TOP
public static final int ARC_LEFT_TOP
- See Also:
- Constant Field Values
-
ARC_TOP_RIGHT
public static final int ARC_TOP_RIGHT
- See Also:
- Constant Field Values
-
ARC_RIGHT_BOTTOM
public static final int ARC_RIGHT_BOTTOM
- See Also:
- Constant Field Values
-
ARC_BOTTOM_LEFT
public static final int ARC_BOTTOM_LEFT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArcBorder
public ArcBorder()
-
ArcBorder
public ArcBorder(int arcEdges, int thickness)
-
ArcBorder
public ArcBorder(int arcEdges, java.awt.Color color, int thickness)
-
ArcBorder
public ArcBorder(int arcEdges, int arcSize, int thickness, float hardening)
-
ArcBorder
public ArcBorder(int arcEdges, java.awt.Color color, int arcSize, int thickness, float hardening)
-
-
Method Detail
-
getArcEdges
public int getArcEdges()
-
setArcEdges
public void setArcEdges(int arcEdges)
-
getArcSize
public int getArcSize()
-
setArcSize
public void setArcSize(int arcSize)
-
getHardening
public float getHardening()
-
setHardening
public void setHardening(float hardening)
-
getThickness
public int getThickness()
-
setThickness
public void setThickness(int thickness)
-
getColor
public java.awt.Color getColor()
-
setColor
public void setColor(java.awt.Color color)
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsets
in interfacejavax.swing.border.Border
- Overrides:
getBorderInsets
in classjavax.swing.border.AbstractBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
- Overrides:
getBorderInsets
in classjavax.swing.border.AbstractBorder
-
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g1, int x, int y, int width, int height)
- Specified by:
paintBorder
in interfacejavax.swing.border.Border
- Overrides:
paintBorder
in classjavax.swing.border.AbstractBorder
-
-