public class ShapeBoundsProvider extends IAdaptable.Bound.Impl<IVisualPart<? extends javafx.scene.Node>> implements Provider<IGeometry>
ShapeBoundsProvider
is a Provider<IGeometry>
that returns a Rectangle
that corresponds
to the layout-bounds of its host visual, i.e. it includes the geometric
bounds and the stroke of the visual. The Rectangle
is specified
within the local coordinate system of the host visual.adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Constructor and Description |
---|
ShapeBoundsProvider()
Constructs a new
ShapeBoundsProvider without padding. |
ShapeBoundsProvider(double padding)
Constructs a new
ShapeBoundsProvider with the given padding. |
ShapeBoundsProvider(double leftPadding,
double topPadding,
double rightPadding,
double bottomPadding)
Constructs a new
ShapeBoundsProvider with the given padding. |
Modifier and Type | Method and Description |
---|---|
Rectangle |
get() |
adaptableProperty, getAdaptable, setAdaptable
public ShapeBoundsProvider()
ShapeBoundsProvider
without padding.public ShapeBoundsProvider(double padding)
ShapeBoundsProvider
with the given padding.padding
- The padding that is applied around the shape.public ShapeBoundsProvider(double leftPadding, double topPadding, double rightPadding, double bottomPadding)
ShapeBoundsProvider
with the given padding.leftPadding
- The padding that is applied on the left of the shape.topPadding
- The padding that is applied on the top of the shape.rightPadding
- The padding that is applied on the right of the shape.bottomPadding
- The padding that is applied on the bottom of the shape.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.