Package com.github.tadukoo.view.border
Class ShapedBevelBorder.ShapedBevelBorderBuilder
java.lang.Object
com.github.tadukoo.view.border.ShapedBevelBorder.ShapedBevelBorderBuilder
- Enclosing class:
- ShapedBevelBorder
Shaped Bevel Border Builder is used to create a
ShapedBevelBorder
. 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
ShapedBevelBorder.BevelType
(RAISED or LOWERED) - defaults to LOWERED - highlightInnerPaint - The
SizablePaint
for the inner highlight - defaults to using the Component's getBackground().brighter() - highlightOuterPaint - The
SizablePaint
for the outer highlight - defaults to using the Component's getBackground().brighter().brighter() - shadowInnerPaint - The
SizablePaint
for the inner shadow - defaults to using the Component's getBackground().darker() - shadowOuterPaint - The
SizablePaint
for the outer 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 ShapedBevelBorder.BevelType
Thetype of bevel
(RAISED or LOWERED)private SizablePaint
TheSizablePaint
for the inner highlightprivate SizablePaint
TheSizablePaint
for the outer highlightprivate SizablePaint
TheSizablePaint
for the inner shadowprivate SizablePaint
TheSizablePaint
for the outer shadowprivate ShapeInfo
TheShapeInfo
to use on the Border (may be null to use the component's shape) -
Constructor Summary
ModifierConstructorDescriptionprivate
Can't create outside of ShapedBevelBorder -
Method Summary
Modifier and TypeMethodDescriptionbevelType
(ShapedBevelBorder.BevelType bevelType) build()
highlightInnerPaint
(SizablePaint highlightInnerPaint) highlightOuterPaint
(SizablePaint highlightOuterPaint) shadowInnerPaint
(SizablePaint shadowInnerPaint) shadowOuterPaint
(SizablePaint shadowOuterPaint)
-
Field Details
-
shapeInfo
TheShapeInfo
to use on the Border (may be null to use the component's shape) -
bevelType
Thetype of bevel
(RAISED or LOWERED) -
highlightInnerPaint
TheSizablePaint
for the inner highlight -
highlightOuterPaint
TheSizablePaint
for the outer highlight -
shadowInnerPaint
TheSizablePaint
for the inner shadow -
shadowOuterPaint
TheSizablePaint
for the outer shadow
-
-
Constructor Details
-
ShapedBevelBorderBuilder
private ShapedBevelBorderBuilder()Can't create outside of ShapedBevelBorder
-
-
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
-
bevelType
- Parameters:
bevelType
- Thetype of bevel
(RAISED or LOWERED)- Returns:
- this, to continue building
-
highlightInnerPaint
public ShapedBevelBorder.ShapedBevelBorderBuilder highlightInnerPaint(SizablePaint highlightInnerPaint) - Parameters:
highlightInnerPaint
- TheSizablePaint
for the inner highlight- Returns:
- this, to continue building
-
highlightOuterPaint
public ShapedBevelBorder.ShapedBevelBorderBuilder highlightOuterPaint(SizablePaint highlightOuterPaint) - Parameters:
highlightOuterPaint
- TheSizablePaint
for the outer highlight- Returns:
- this, to continue building
-
shadowInnerPaint
- Parameters:
shadowInnerPaint
- TheSizablePaint
for the inner shadow- Returns:
- this, to continue building
-
shadowOuterPaint
- Parameters:
shadowOuterPaint
- TheSizablePaint
for the outer shadow- Returns:
- this, to continue building
-
build
- Returns:
- A newly created
ShapedEtchedBorder
using the set parameters
-