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
ShapeInfoto 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
SizablePaintfor the inner highlight - defaults to using the Component's getBackground().brighter() - highlightOuterPaint - The
SizablePaintfor the outer highlight - defaults to using the Component's getBackground().brighter().brighter() - shadowInnerPaint - The
SizablePaintfor the inner shadow - defaults to using the Component's getBackground().darker() - shadowOuterPaint - The
SizablePaintfor 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
FieldsModifier and TypeFieldDescriptionprivate ShapedBevelBorder.BevelTypeThetype of bevel(RAISED or LOWERED)private SizablePaintTheSizablePaintfor the inner highlightprivate SizablePaintTheSizablePaintfor the outer highlightprivate SizablePaintTheSizablePaintfor the inner shadowprivate SizablePaintTheSizablePaintfor the outer shadowprivate ShapeInfoTheShapeInfoto use on the Border (may be null to use the component's shape) -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCan'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
TheShapeInfoto use on the Border (may be null to use the component's shape) -
bevelType
Thetype of bevel(RAISED or LOWERED) -
highlightInnerPaint
TheSizablePaintfor the inner highlight -
highlightOuterPaint
TheSizablePaintfor the outer highlight -
shadowInnerPaint
TheSizablePaintfor the inner shadow -
shadowOuterPaint
TheSizablePaintfor the outer shadow
-
-
Constructor Details
-
ShapedBevelBorderBuilder
private ShapedBevelBorderBuilder()Can't create outside of ShapedBevelBorder
-
-
Method Details
-
shapeInfo
- Parameters:
shapeInfo- TheShapeInfoto 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- TheSizablePaintfor the inner highlight- Returns:
- this, to continue building
-
highlightOuterPaint
public ShapedBevelBorder.ShapedBevelBorderBuilder highlightOuterPaint(SizablePaint highlightOuterPaint) - Parameters:
highlightOuterPaint- TheSizablePaintfor the outer highlight- Returns:
- this, to continue building
-
shadowInnerPaint
- Parameters:
shadowInnerPaint- TheSizablePaintfor the inner shadow- Returns:
- this, to continue building
-
shadowOuterPaint
- Parameters:
shadowOuterPaint- TheSizablePaintfor the outer shadow- Returns:
- this, to continue building
-
build
- Returns:
- A newly created
ShapedEtchedBorderusing the set parameters
-