org.wings.border.SLineBorder Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2000,2005 wingS development team.
*
* This file is part of wingS (http://wingsframework.org).
*
* wingS is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* Please see COPYING for the complete licence.
*/
package org.wings.border;
import java.awt.*;
/**
* Draw a line border around a component.
* LABEL
*
* @author Armin Haaf
* @author Andre Lison
*/
public class SLineBorder
extends SAbstractBorder {
public static final String DOTTED = "dotted";
public static final String DASHED = "dashed";
public static final String SOLID = "solid";
private String borderStyle = SOLID;
public SLineBorder(int thickness) {
super(thickness);
setBorderStyle(SOLID);
}
public SLineBorder(Color c) {
super(c);
setBorderStyle(SOLID);
}
public SLineBorder(Color c, int thickness) {
super(c, thickness, null);
setBorderStyle(SOLID);
}
public SLineBorder(Color c, int thickness, Insets insets) {
super(c, thickness, insets);
setBorderStyle(SOLID);
}
public SLineBorder(int thickness, Insets insets) {
super(Color.black, thickness, insets);
setBorderStyle(SOLID);
}
public void setBorderStyle(String style) {
this.borderStyle = style;
setStyle(style);
}
public final String getBorderStyle() { return borderStyle; }
}