Class FWPrecisionBevelBorder
java.lang.Object
javax.swing.border.AbstractBorder
net.simplace.ui.layout.FWPrecisionBevelBorder
- All Implemented Interfaces:
Serializable, Border
Standard one pixel bevel border of the framework with separately colored sides.
- Author:
- Andreas Enders
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFWPrecisionBevelBorder(int aBevelProfile) Creates a border with the default UI colors.FWPrecisionBevelBorder(Color aColorNorthWest, Color aSouthEast) Creates a visible (opaque) border.FWPrecisionBevelBorder(Color aColorNorthWest, Color aSouthEast, int aBevelProfile) -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets(Component aComponent) (non-Javadoc)boolean(non-Javadoc)voidpaintBorder(Component aComponent, Graphics aGraphics, int aX, int aY, int aWidth, int aHeight) (non-Javadoc)voidsetBevelProfile(int aProfile) voidsetBorderColors(Color aColorLeft, Color aColorTop, Color aColorRight, Color aColorBottom) voidsetInsets(int aTop, int aLeft, int aBottom, int aRight) Methods inherited from class AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Field Details
-
LUCENT
public static final int LUCENTLucent type- See Also:
-
RAISED
public static final int RAISEDRaised type- See Also:
-
LOWERED
public static final int LOWEREDLowerd type- See Also:
-
-
Constructor Details
-
FWPrecisionBevelBorder
-
FWPrecisionBevelBorder
-
FWPrecisionBevelBorder
-
-
Method Details
-
setBorderColors
public void setBorderColors(Color aColorLeft, Color aColorTop, Color aColorRight, Color aColorBottom) - Parameters:
aColorLeft- color of the left side,nullfor noneaColorTop- color of the top side,nullfor noneaColorRight- color of the right side,nullfor noneaColorBottom- color of the bottom side,nullfor none
-
paintBorder
public void paintBorder(Component aComponent, Graphics aGraphics, int aX, int aY, int aWidth, int aHeight) (non-Javadoc)- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classAbstractBorder- See Also:
-
getBorderInsets
(non-Javadoc)- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder- See Also:
-
isBorderOpaque
public boolean isBorderOpaque()(non-Javadoc)- Specified by:
isBorderOpaquein interfaceBorder- Overrides:
isBorderOpaquein classAbstractBorder- See Also:
-
setBevelProfile
-
setInsets
public void setInsets(int aTop, int aLeft, int aBottom, int aRight) - Parameters:
aTop- top insetaLeft- left insetaBottom- bottom insetaRight- right inset
-