Skip to content
Snippets Groups Projects
Commit a4ddd048 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

Added new border SettableColorLineBorder

parent 50328871
No related branches found
No related tags found
No related merge requests found
package fr.soleil.lib.project.swing.border;
import java.awt.Color;
import javax.swing.border.LineBorder;
/**
* A {@link LineBorder} for which the line color can be changed.
*
* @author Raphaël GIRARDOT
*/
public class SettableColorLineBorder extends LineBorder {
private static final long serialVersionUID = -1893539307265995931L;
public SettableColorLineBorder(Color color, int thickness, boolean roundedCorners) {
super(color == null ? Color.BLACK : color, thickness, roundedCorners);
}
public SettableColorLineBorder(Color color, int thickness) {
super(color == null ? Color.BLACK : color, thickness);
}
public SettableColorLineBorder(Color color) {
super(color == null ? Color.BLACK : color);
}
/**
* Sets this {@link SettableColorLineBorder}'s line color.
*
* @param color The line color to set.
*/
public void setLineColor(Color color) {
this.lineColor = color == null ? Color.BLACK : color;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment