Package com.github.tadukoo.view.border
Class ShapedEtchedBorder.ShapedEtchedBorderBuilder
java.lang.Object
com.github.tadukoo.view.border.ShapedEtchedBorder.ShapedEtchedBorderBuilder
- Enclosing class:
- ShapedEtchedBorder
Shaped Etched Border Builder is used to create a
ShapedEtchedBorder
. It uses the following parameters:
- shapeInfo - The
ShapeInfo
to use on the Border (may be null to use the component's shape) - defaults to null - etchType - the
ShapedEtchedBorder.EtchType
(RAISED or LOWERED) - defaults to LOWERED - highlightPaint - The
SizablePaint
for the highlight - defaults to using the Component's getBackground().brighter() - shadowPaint - The
SizablePaint
for the shadow - defaults to using the Component's getBackground().darker()
- Since:
- Alpha v.0.2
- Version:
- Alpha v.0.2.1
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
Modifier and TypeFieldDescriptionprivate ShapedEtchedBorder.EtchType
Thetype of etching
(RAISED or LOWERED)private SizablePaint
TheSizablePaint
for the highlightprivate SizablePaint
TheSizablePaint
for the shadowprivate ShapeInfo
TheShapeInfo
to use on the Border (may be null to use the component's shape) -
Constructor Summary
ModifierConstructorDescriptionprivate
Can't create builder outside of ShapedEtchedBorder -
Method Summary
Modifier and TypeMethodDescriptionbuild()
etchType
(ShapedEtchedBorder.EtchType etchType) highlightPaint
(SizablePaint highlightPaint) shadowPaint
(SizablePaint shadowPaint)
-
Field Details
-
shapeInfo
TheShapeInfo
to use on the Border (may be null to use the component's shape) -
etchType
Thetype of etching
(RAISED or LOWERED) -
highlightPaint
TheSizablePaint
for the highlight -
shadowPaint
TheSizablePaint
for the shadow
-
-
Constructor Details
-
ShapedEtchedBorderBuilder
private ShapedEtchedBorderBuilder()Can't create builder outside of ShapedEtchedBorder
-
-
Method Details
-
shapeInfo
- Parameters:
shapeInfo
- TheShapeInfo
to use on the Border (may be null to use the component's shape)- Returns:
- this, to continue building
-
etchType
- Parameters:
etchType
- Thetype of etching
(RAISED or LOWERED)- Returns:
- this, to continue building
-
highlightPaint
- Parameters:
highlightPaint
- TheSizablePaint
for the highlight- Returns:
- this, to continue building
-
shadowPaint
- Parameters:
shadowPaint
- TheSizablePaint
for the shadow- Returns:
- this, to continue building
-
build
- Returns:
- A newly created
ShapedEtchedBorder
using the set parameters
-