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
ShapeInfoto 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
SizablePaintfor the highlight - defaults to using the Component's getBackground().brighter() - shadowPaint - The
SizablePaintfor 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
FieldsModifier and TypeFieldDescriptionprivate ShapedEtchedBorder.EtchTypeThetype of etching(RAISED or LOWERED)private SizablePaintTheSizablePaintfor the highlightprivate SizablePaintTheSizablePaintfor the shadowprivate ShapeInfoTheShapeInfoto use on the Border (may be null to use the component's shape) -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCan't create builder outside of ShapedEtchedBorder -
Method Summary
Modifier and TypeMethodDescriptionbuild()etchType(ShapedEtchedBorder.EtchType etchType) highlightPaint(SizablePaint highlightPaint) shadowPaint(SizablePaint shadowPaint)
-
Field Details
-
shapeInfo
TheShapeInfoto use on the Border (may be null to use the component's shape) -
etchType
Thetype of etching(RAISED or LOWERED) -
highlightPaint
TheSizablePaintfor the highlight -
shadowPaint
TheSizablePaintfor the shadow
-
-
Constructor Details
-
ShapedEtchedBorderBuilder
private ShapedEtchedBorderBuilder()Can't create builder outside of ShapedEtchedBorder
-
-
Method Details
-
shapeInfo
- Parameters:
shapeInfo- TheShapeInfoto 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- TheSizablePaintfor the highlight- Returns:
- this, to continue building
-
shadowPaint
- Parameters:
shadowPaint- TheSizablePaintfor the shadow- Returns:
- this, to continue building
-
build
- Returns:
- A newly created
ShapedEtchedBorderusing the set parameters
-