summaryrefslogtreecommitdiffstats
path: root/libjava/javax/swing/border/LineBorder.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/javax/swing/border/LineBorder.java')
-rw-r--r--libjava/javax/swing/border/LineBorder.java32
1 files changed, 26 insertions, 6 deletions
diff --git a/libjava/javax/swing/border/LineBorder.java b/libjava/javax/swing/border/LineBorder.java
index 7f3c6511668..ba6c060810e 100644
--- a/libjava/javax/swing/border/LineBorder.java
+++ b/libjava/javax/swing/border/LineBorder.java
@@ -35,18 +35,38 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package javax.swing.border;
-import java.awt.*;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Graphics;
-public class LineBorder extends EmptyBorder
+public class LineBorder extends AbstractBorder
{
- Color c;
+ protected Color lineColor;
+ protected boolean roundedCorners;
+ protected int thickness;
- public LineBorder()
- {
- }
+ public LineBorder (Color color)
+ {
+ this (color, 1);
+ }
+
+ public LineBorder (Color color, int thickness)
+ {
+ this (color, thickness, false); // FIXME: check roundedCorners argument
+ }
+ /**
+ * @since 1.3
+ */
+ public LineBorder (Color color, int thickness, boolean roundedCorners)
+ {
+ this.lineColor = color;
+ this.thickness = thickness;
+ this.roundedCorners = roundedCorners;
+ }
public LineBorder(int top,
int left,
OpenPOWER on IntegriCloud