Package | Description |
---|---|
com.sun.javafx.css.converters | |
com.sun.javafx.css.parser | |
com.sun.javafx.sg.prism | |
javafx.css |
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
|
javafx.geometry |
Provides the set of 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
|
javafx.scene.control |
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
|
javafx.scene.layout |
Provides classes to support user interface layout.
|
javafx.scene.text |
Provides the set of classes for fonts and renderable Text Node.
|
Modifier and Type | Method and Description |
---|---|
Insets |
InsetsConverter.convert(ParsedValue<ParsedValue[],Insets> value,
Font font) |
Insets[] |
InsetsConverter.SequenceConverter.convert(ParsedValue<ParsedValue<ParsedValue[],Insets>[],Insets[]> value,
Font font) |
Modifier and Type | Method and Description |
---|---|
static StyleConverter<ParsedValue[],Insets> |
InsetsConverter.getInstance() |
Modifier and Type | Method and Description |
---|---|
Insets |
InsetsConverter.convert(ParsedValue<ParsedValue[],Insets> value,
Font font) |
Modifier and Type | Method and Description |
---|---|
private ParsedValueImpl<ParsedValue[],Insets> |
CSSParser.parseInsetsLayer(CSSParser.Term root) |
Modifier and Type | Field and Description |
---|---|
private Insets |
NGRegion.backgroundInsets
The combined insets of all the backgrounds.
|
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Insets> |
StyleablePropertyFactory.createInsetsCssMetaData(java.lang.String property,
java.util.function.Function<S,StyleableProperty<Insets>> function)
Create a CssMetaData<S, Insets> with initial value of
javafx.geometry.Insets.EMPTY , and inherit flag defaulting to false. |
CssMetaData<S,Insets> |
StyleablePropertyFactory.createInsetsCssMetaData(java.lang.String property,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue)
Create a CssMetaData<S, Insets> with initial value, and inherit flag defaulting to false.
|
CssMetaData<S,Insets> |
StyleablePropertyFactory.createInsetsCssMetaData(java.lang.String property,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue,
boolean inherits)
Create a CssMetaData<S, Insets> with initial value, and inherit flag.
|
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty)
Create a StyleableProperty<Insets> using previously created CssMetaData for the given
cssProperty . |
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Insets>> function)
Create a StyleableProperty<Inset>.
|
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue)
Create a StyleableProperty<Inset> with initial value.
|
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue,
boolean inherits)
Create a StyleableProperty<Inset> with initial value and inherit flag.
|
static StyleConverter<ParsedValue[],Insets> |
StyleConverter.getInsetsConverter() |
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Insets> |
StyleablePropertyFactory.createInsetsCssMetaData(java.lang.String property,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue)
Create a CssMetaData<S, Insets> with initial value, and inherit flag defaulting to false.
|
CssMetaData<S,Insets> |
StyleablePropertyFactory.createInsetsCssMetaData(java.lang.String property,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue,
boolean inherits)
Create a CssMetaData<S, Insets> with initial value, and inherit flag.
|
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue)
Create a StyleableProperty<Inset> with initial value.
|
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue,
boolean inherits)
Create a StyleableProperty<Inset> with initial value and inherit flag.
|
Modifier and Type | Method and Description |
---|---|
CssMetaData<S,Insets> |
StyleablePropertyFactory.createInsetsCssMetaData(java.lang.String property,
java.util.function.Function<S,StyleableProperty<Insets>> function)
Create a CssMetaData<S, Insets> with initial value of
javafx.geometry.Insets.EMPTY , and inherit flag defaulting to false. |
CssMetaData<S,Insets> |
StyleablePropertyFactory.createInsetsCssMetaData(java.lang.String property,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue)
Create a CssMetaData<S, Insets> with initial value, and inherit flag defaulting to false.
|
CssMetaData<S,Insets> |
StyleablePropertyFactory.createInsetsCssMetaData(java.lang.String property,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue,
boolean inherits)
Create a CssMetaData<S, Insets> with initial value, and inherit flag.
|
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Insets>> function)
Create a StyleableProperty<Inset>.
|
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue)
Create a StyleableProperty<Inset> with initial value.
|
StyleableProperty<Insets> |
StyleablePropertyFactory.createStyleableInsetsProperty(S styleable,
java.lang.String propertyName,
java.lang.String cssProperty,
java.util.function.Function<S,StyleableProperty<Insets>> function,
Insets initialValue,
boolean inherits)
Create a StyleableProperty<Inset> with initial value and inherit flag.
|
Modifier and Type | Field and Description |
---|---|
static Insets |
Insets.EMPTY
Empty insets.
|
Modifier and Type | Method and Description |
---|---|
Insets |
InsetsBuilder.build()
Deprecated.
Make an instance of
Insets based on the properties set on this builder. |
Modifier and Type | Field and Description |
---|---|
private static CssMetaData<Labeled,Insets> |
Labeled.StyleableProperties.LABEL_PADDING |
private ObjectProperty<Insets> |
Labeled.labelPadding |
Modifier and Type | Method and Description |
---|---|
Insets |
Labeled.getLabelPadding() |
Modifier and Type | Method and Description |
---|---|
ReadOnlyObjectProperty<Insets> |
Labeled.labelPaddingProperty()
The padding around the Labeled's text and graphic content.
|
private ObjectProperty<Insets> |
Labeled.labelPaddingPropertyImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
SkinBase.layoutInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
boolean fillWidth,
boolean fillHeight,
HPos halignment,
VPos valignment)
Utility method which lays out the child within an area of this
skin defined by
areaX , areaY , areaWidth x areaHeight ,
with a baseline offset relative to that area. |
protected void |
SkinBase.layoutInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
HPos halignment,
VPos valignment)
Utility method which lays out the child within an area of this
skin defined by
areaX , areaY , areaWidth x areaHeight ,
with a baseline offset relative to that area. |
protected void |
SkinBase.positionInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
HPos halignment,
VPos valignment)
Utility method which positions the child within an area of this
skin defined by
areaX , areaY , areaWidth x areaHeight ,
with a baseline offset relative to that area. |
private void |
Labeled.setLabelPadding(Insets value) |
Modifier and Type | Field and Description |
---|---|
private Insets |
Region.InsetsProperty.cache |
(package private) Insets |
BorderStroke.innerEdge |
(package private) Insets |
BorderImage.innerEdge |
(package private) Insets |
BorderStroke.insets |
(package private) Insets |
BorderImage.insets |
(package private) Insets |
BackgroundFill.insets |
(package private) Insets |
Border.insets |
(package private) Insets |
BorderStroke.outerEdge |
(package private) Insets |
BorderImage.outerEdge |
(package private) Insets |
Background.outsets |
(package private) Insets |
Border.outsets |
private Insets |
RegionBuilder.padding
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private ExpressionHelper<Insets> |
Region.InsetsProperty.helper |
private static Callback<Node,Insets> |
FlowPane.marginAccessor |
private static Callback<Node,Insets> |
GridPane.marginAccessor |
private static Callback<Node,Insets> |
StackPane.marginAccessor |
private static Callback<Node,Insets> |
VBox.marginAccessor |
private static Callback<Node,Insets> |
HBox.marginAccessor |
private static Callback<Node,Insets> |
TilePane.marginAccessor |
private static CssMetaData<Region,Insets> |
Region.StyleableProperties.OPAQUE_INSETS |
private ObjectProperty<Insets> |
Region.opaqueInsets |
private ObjectProperty<Insets> |
Region.padding
The top, right, bottom, and left padding around the region's content.
|
private static CssMetaData<Region,Insets> |
Region.StyleableProperties.PADDING |
Modifier and Type | Method and Description |
---|---|
Insets |
Region.InsetsProperty.get() |
Insets |
Region.getInsets() |
Insets |
BorderStroke.getInsets()
Defines the insets of each side of the BorderStroke.
|
Insets |
BorderImage.getInsets()
The insets of the BorderImage define where the border should be positioned
relative to the edge of the Region.
|
Insets |
BackgroundFill.getInsets()
The Insets to use for this fill.
|
Insets |
Border.getInsets()
The insets define the distance from the edge of the Region to the inner-most edge
of the border, if that distance is non-negative.
|
static Insets |
FlowPane.getMargin(Node child)
Returns the child's margin constraint if set.
|
static Insets |
GridPane.getMargin(Node child)
Returns the child's margin constraint if set.
|
static Insets |
StackPane.getMargin(Node child)
Returns the child's margin constraints if set.
|
static Insets |
BorderPane.getMargin(Node child)
Returns the child's margin constraint if set.
|
static Insets |
VBox.getMargin(Node child)
Returns the child's margin property if set.
|
static Insets |
HBox.getMargin(Node child)
Returns the child's margin constraint if set.
|
static Insets |
TilePane.getMargin(Node node)
Returns the child's margin constraint if set.
|
private static Insets |
BorderPane.getNodeMargin(Node child) |
Insets |
Region.getOpaqueInsets() |
Insets |
Background.getOutsets()
The outsets of this Background.
|
Insets |
Border.getOutsets()
The outsets of the border define the outer-most edge of the border to be drawn.
|
Insets |
Region.getPadding() |
Modifier and Type | Method and Description |
---|---|
ReadOnlyObjectProperty<Insets> |
Region.insetsProperty() |
ObjectProperty<Insets> |
Region.opaqueInsetsProperty()
Defines the area of the region within which completely opaque pixels
are drawn.
|
ObjectProperty<Insets> |
Region.paddingProperty() |
Modifier and Type | Method and Description |
---|---|
(package private) double |
Region.adjustHeightByMargin(double height,
Insets margin) |
(package private) double |
Region.adjustWidthByMargin(double width,
Insets margin) |
(package private) double |
Region.computeChildMaxAreaHeight(Node child,
double maxBaselineComplement,
Insets margin,
double width) |
(package private) double |
Region.computeChildMaxAreaWidth(Node child,
double baselineComplement,
Insets margin,
double height,
boolean fillHeight) |
(package private) double |
Region.computeChildMinAreaHeight(Node child,
double minBaselineComplement,
Insets margin,
double width) |
(package private) double |
Region.computeChildMinAreaHeight(Node child,
Insets margin) |
(package private) double |
Region.computeChildMinAreaWidth(Node child,
double baselineComplement,
Insets margin,
double height,
boolean fillHeight) |
(package private) double |
Region.computeChildMinAreaWidth(Node child,
Insets margin) |
(package private) double |
Region.computeChildPrefAreaHeight(Node child,
double prefBaselineComplement,
Insets margin,
double width) |
(package private) double |
Region.computeChildPrefAreaHeight(Node child,
Insets margin) |
(package private) double |
Region.computeChildPrefAreaWidth(Node child,
double baselineComplement,
Insets margin,
double height,
boolean fillHeight) |
(package private) double |
Region.computeChildPrefAreaWidth(Node child,
Insets margin) |
private boolean |
Region.contains(double px,
double py,
double x1,
double y1,
double x2,
double y2,
BorderWidths widths,
boolean filled,
Insets insets,
CornerRadii rad)
Basically we will perform two contains tests.
|
private boolean |
Region.contains(double px,
double py,
double x1,
double y1,
double x2,
double y2,
Insets insets,
CornerRadii rad)
Determines whether the point (px, py) is contained within the the bounds (x1, y1)-(x2, y2),
after taking into account the insets and the corner radii.
|
protected void |
Region.layoutInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
boolean fillWidth,
boolean fillHeight,
HPos halignment,
VPos valignment)
Utility method which lays out the child within an area of this
region defined by
areaX , areaY , areaWidth x areaHeight ,
with a baseline offset relative to that area. |
static void |
Region.layoutInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
boolean fillWidth,
boolean fillHeight,
HPos halignment,
VPos valignment,
boolean isSnapToPixel)
Utility method which lays out the child within an area of it's
parent defined by
areaX , areaY , areaWidth x areaHeight ,
with a baseline offset relative to that area. |
protected void |
Region.layoutInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
HPos halignment,
VPos valignment)
Utility method which lays out the child within an area of this
region defined by
areaX , areaY , areaWidth x areaHeight ,
with a baseline offset relative to that area. |
private static CornerRadii |
Region.normalize(CornerRadii radii,
Insets insets,
double width,
double height)
Return a version of the radii that is not percentage based and is scaled to
fit the indicated inset rectangle without overflow.
|
B |
RegionBuilder.padding(Insets x)
Deprecated.
Set the value of the
padding property for the instance constructed by this builder. |
static void |
Region.positionInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
HPos halignment,
VPos valignment,
boolean isSnapToPixel)
Utility method which positions the child within an area of this
region defined by
areaX , areaY , areaWidth x areaHeight ,
with a baseline offset relative to that area. |
static void |
GridPane.setConstraints(Node child,
int columnIndex,
int rowIndex,
int columnspan,
int rowspan,
HPos halignment,
VPos valignment,
Priority hgrow,
Priority vgrow,
Insets margin)
Sets the grid position, spans, alignment, grow priorities, and margin for
the child when contained in a gridpane.
|
static void |
FlowPane.setMargin(Node child,
Insets value)
Sets the margin for the child when contained by a flowpane.
|
static void |
GridPane.setMargin(Node child,
Insets value)
Sets the margin for the child when contained by a gridpane.
|
static void |
StackPane.setMargin(Node child,
Insets value)
Sets the margin for the child when contained by a stackpane.
|
static void |
BorderPane.setMargin(Node child,
Insets value)
Sets the margin for the child when contained by a border pane.
|
static void |
VBox.setMargin(Node child,
Insets value)
Sets the margin for the child when contained by a vbox.
|
static void |
HBox.setMargin(Node child,
Insets value)
Sets the margin for the child when contained by an hbox.
|
static void |
TilePane.setMargin(Node node,
Insets value)
Sets the margin for the child when contained by a tilepane.
|
void |
Region.setOpaqueInsets(Insets value) |
void |
Region.setPadding(Insets value) |
Modifier and Type | Method and Description |
---|---|
void |
Region.InsetsProperty.addListener(ChangeListener<? super Insets> listener) |
(package private) double |
Region.computeMaxMinAreaHeight(java.util.List<Node> children,
Callback<Node,Insets> childMargins,
double[] childWidths,
VPos valignment) |
(package private) double |
Region.computeMaxMinAreaHeight(java.util.List<Node> children,
Callback<Node,Insets> margins,
VPos valignment) |
(package private) double |
Region.computeMaxMinAreaHeight(java.util.List<Node> children,
Callback<Node,Insets> margins,
VPos valignment,
double width) |
(package private) double |
Region.computeMaxMinAreaWidth(java.util.List<Node> children,
Callback<Node,Insets> margins) |
(package private) double |
Region.computeMaxMinAreaWidth(java.util.List<Node> children,
Callback<Node,Insets> childMargins,
double[] childHeights,
boolean fillHeight) |
(package private) double |
Region.computeMaxMinAreaWidth(java.util.List<Node> children,
Callback<Node,Insets> margins,
double height,
boolean fillHeight) |
(package private) double |
Region.computeMaxPrefAreaHeight(java.util.List<Node> children,
Callback<Node,Insets> childMargins,
double[] childWidths,
VPos valignment) |
(package private) double |
Region.computeMaxPrefAreaHeight(java.util.List<Node> children,
Callback<Node,Insets> margins,
double width,
VPos valignment) |
(package private) double |
Region.computeMaxPrefAreaHeight(java.util.List<Node> children,
Callback<Node,Insets> margins,
VPos valignment) |
(package private) double |
Region.computeMaxPrefAreaWidth(java.util.List<Node> children,
Callback<Node,Insets> margins) |
(package private) double |
Region.computeMaxPrefAreaWidth(java.util.List<Node> children,
Callback<Node,Insets> childMargins,
double[] childHeights,
boolean fillHeight) |
(package private) double |
Region.computeMaxPrefAreaWidth(java.util.List<Node> children,
Callback<Node,Insets> margins,
double height,
boolean fillHeight) |
(package private) double |
Region.getAreaBaselineOffset(java.util.List<Node> children,
Callback<Node,Insets> margins,
java.util.function.Function<java.lang.Integer,java.lang.Double> positionToWidth,
double areaHeight,
boolean fillHeight) |
(package private) static double |
Region.getAreaBaselineOffset(java.util.List<Node> children,
Callback<Node,Insets> margins,
java.util.function.Function<java.lang.Integer,java.lang.Double> positionToWidth,
double areaHeight,
boolean fillHeight,
boolean snapToPixel) |
(package private) double |
Region.getAreaBaselineOffset(java.util.List<Node> children,
Callback<Node,Insets> margins,
java.util.function.Function<java.lang.Integer,java.lang.Double> positionToWidth,
double areaHeight,
boolean fillHeight,
double minComplement) |
(package private) static double |
Region.getAreaBaselineOffset(java.util.List<Node> children,
Callback<Node,Insets> margins,
java.util.function.Function<java.lang.Integer,java.lang.Double> positionToWidth,
double areaHeight,
boolean fillHeight,
double minComplement,
boolean snapToPixel) |
(package private) double |
Region.getAreaBaselineOffset(java.util.List<Node> children,
Callback<Node,Insets> margins,
java.util.function.Function<java.lang.Integer,java.lang.Double> positionToWidth,
double areaHeight,
java.util.function.Function<java.lang.Integer,java.lang.Boolean> fillHeight,
double minComplement) |
(package private) static double |
Region.getAreaBaselineOffset(java.util.List<Node> children,
Callback<Node,Insets> margins,
java.util.function.Function<java.lang.Integer,java.lang.Double> positionToWidth,
double areaHeight,
java.util.function.Function<java.lang.Integer,java.lang.Boolean> fillHeight,
double minComplement,
boolean snapToPixel)
Returns the baseline offset of provided children, with respect to the minimum complement, computed
by
Region.getMinBaselineComplement(java.util.List) from the same set of children. |
private double |
Region.getMaxAreaHeight(java.util.List<Node> children,
Callback<Node,Insets> childMargins,
double[] childWidths,
VPos valignment,
boolean minimum) |
private double |
Region.getMaxAreaWidth(java.util.List<Node> children,
Callback<Node,Insets> childMargins,
double[] childHeights,
boolean fillHeight,
boolean minimum) |
void |
Region.InsetsProperty.removeListener(ChangeListener<? super Insets> listener) |
Constructor and Description |
---|
BackgroundFill(Paint fill,
CornerRadii radii,
Insets insets)
Creates a new BackgroundFill with the specified fill, radii, and
insets.
|
BorderImage(Image image,
BorderWidths widths,
Insets insets,
BorderWidths slices,
boolean filled,
BorderRepeat repeatX,
BorderRepeat repeatY)
Creates a new BorderImage.
|
BorderStroke(Paint stroke,
BorderStrokeStyle style,
CornerRadii radii,
BorderWidths widths,
Insets insets)
Creates a new BorderStroke.
|
BorderStroke(Paint topStroke,
Paint rightStroke,
Paint bottomStroke,
Paint leftStroke,
BorderStrokeStyle topStyle,
BorderStrokeStyle rightStyle,
BorderStrokeStyle bottomStyle,
BorderStrokeStyle leftStyle,
CornerRadii radii,
BorderWidths widths,
Insets insets)
Create a new BorderStroke, specifying all construction parameters.
|
Modifier and Type | Method and Description |
---|---|
(package private) double |
TextFlow.computeChildPrefAreaHeight(Node child,
Insets margin) |
(package private) double |
TextFlow.computeChildPrefAreaHeight(Node child,
Insets margin,
double width) |
(package private) double |
TextFlow.computeChildPrefAreaWidth(Node child,
Insets margin) |
(package private) double |
TextFlow.computeChildPrefAreaWidth(Node child,
Insets margin,
double height) |