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
ShapeInfoto use on the Border (may be null to use the component's shape) - defaults to null - paint - The
SizablePaintto 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
FieldsModifier and TypeFieldDescriptionprivate SizablePaintTheSizablePaintto use on the Borderprivate ShapeInfoTheShapeInfoto use on the Border (may be null to use the component's shape)private intThe thickness of the line -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCan't create the builder outside of ShapeLineBorder -
Method Summary
-
Field Details
-
shapeInfo
TheShapeInfoto use on the Border (may be null to use the component's shape) -
paint
TheSizablePaintto 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- TheShapeInfoto use on the Border (may be null to use the component's shape)- Returns:
- this, to continue building
-
paint
- Parameters:
paint- TheSizablePaintto 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
ShapedLineBorderusing the set parameters
-