|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.LineBorder
com.mucommander.ui.border.MutableLineBorder
public class MutableLineBorder
Implementation of LineBorder that allows applications to change the color after it's been instanciated.
| Field Summary |
|---|
| Fields inherited from class javax.swing.border.LineBorder |
|---|
lineColor, roundedCorners, thickness |
| Constructor Summary | |
|---|---|
MutableLineBorder(java.awt.Color color)
Creates a line border with the specified color and a thickness = 1. |
|
MutableLineBorder(java.awt.Color color,
int thickness)
Creates a line border with the specified color and thickness. |
|
MutableLineBorder(java.awt.Color color,
int thickness,
boolean roundedCorners)
Creates a line border with the specified color, thickness, and corner shape. |
|
| Method Summary | |
|---|---|
void |
setLineColor(java.awt.Color color)
Sets this border's color. |
void |
setRoundedCorners(boolean roundedCorners)
Sets this border's corner shape. |
void |
setThickness(int thickness)
Sets this border's thickness. |
| Methods inherited from class javax.swing.border.LineBorder |
|---|
createBlackLineBorder, createGrayLineBorder, getBorderInsets, getBorderInsets, getLineColor, getRoundedCorners, getThickness, isBorderOpaque, paintBorder |
| Methods inherited from class javax.swing.border.AbstractBorder |
|---|
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MutableLineBorder(java.awt.Color color)
color - the color of the border.
public MutableLineBorder(java.awt.Color color,
int thickness)
color - the color of the borderthickness - the thickness of the border
public MutableLineBorder(java.awt.Color color,
int thickness,
boolean roundedCorners)
color - the color of the borderthickness - the thickness of the borderroundedCorners - whether or not border corners should be round| Method Detail |
|---|
public void setLineColor(java.awt.Color color)
color - the color of the border.public void setRoundedCorners(boolean roundedCorners)
roundedCorners - whether or not border corners should be roundpublic void setThickness(int thickness)
thickness - the thickness of the border.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard