Package com.github.tadukoo.view.border
Class ShapedLineBorder.ShapedLineBorderBuilder
java.lang.Object
com.github.tadukoo.view.border.ShapedLineBorder.ShapedLineBorderBuilder
- Enclosing class:
- ShapedLineBorder
Shaped Line Border Builder is used to create a
ShapedLineBorder
. 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 - paint - The
SizablePaint
to use on the Border - defaults to solid black - thickness - the thickness of the line - defaults to 1
- Since:
- Alpha v.0.2
- Version:
- Alpha v.0.2.1
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
Modifier and TypeFieldDescriptionprivate SizablePaint
TheSizablePaint
to use on the Borderprivate ShapeInfo
TheShapeInfo
to use on the Border (may be null to use the component's shape)private int
The thickness of the line -
Constructor Summary
ModifierConstructorDescriptionprivate
Can't create the builder outside of ShapeLineBorder -
Method Summary
-
Field Details
-
shapeInfo
TheShapeInfo
to use on the Border (may be null to use the component's shape) -
paint
TheSizablePaint
to use on the Border -
thickness
private int thicknessThe thickness of the line
-
-
Constructor Details
-
ShapedLineBorderBuilder
private ShapedLineBorderBuilder()Can't create the builder outside of ShapeLineBorder
-
-
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
-
paint
- Parameters:
paint
- TheSizablePaint
to use on the Border- Returns:
- this, to continue building
-
thickness
- Parameters:
thickness
- The thickness of the line- Returns:
- this, to continue building
-
build
- Returns:
- A newly created
ShapedLineBorder
using the set parameters
-