Spec-Zone .ru
спецификации, руководства, описания, API
|
Modifier | Constructor and Description |
---|---|
protected |
SkinBase(C control)
Constructor for all SkinBase instances.
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeBaselineOffset(double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the baseline offset based on the first managed child.
|
protected double |
computeMaxHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the maximum allowable height of the Skin, based on the provided
width.
|
protected double |
computeMaxWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the maximum allowable width of the Skin, based on the provided
height.
|
protected double |
computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the minimum allowable height of the Skin, based on the provided
width.
|
protected double |
computeMinWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the minimum allowable width of the Skin, based on the provided
height.
|
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred height of this
SkinBase . |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred width of this
SkinBase . |
protected void |
consumeMouseEvents(boolean value)
Determines whether all mouse events should be automatically consumed.
|
void |
dispose()
Called by a Skinnable when the Skin is replaced on the Skinnable.
|
ObservableList<Node> |
getChildren()
Returns the children of the skin.
|
static java.util.List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
java.util.List<CssMetaData<? extends Styleable,?>> |
getCssMetaData()
This method should delegate to
Node.getClassCssMetaData() so that
a Node's CssMetaData can be accessed without the need for reflection. |
Node |
getNode()
Gets the Node which represents this Skin.
|
C |
getSkinnable()
Gets the Skinnable to which this Skin is assigned.
|
protected void |
layoutChildren(double contentX,
double contentY,
double contentWidth,
double contentHeight)
Called during the layout pass of the scenegraph.
|
protected void |
layoutInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
HPos halignment,
VPos valignment) |
protected void |
layoutInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
boolean fillWidth,
boolean fillHeight,
HPos halignment,
VPos valignment) |
protected void |
layoutInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
HPos halignment,
VPos valignment) |
protected void |
positionInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
HPos halignment,
VPos valignment) |
protected void |
positionInArea(Node child,
double areaX,
double areaY,
double areaWidth,
double areaHeight,
double areaBaselineOffset,
Insets margin,
HPos halignment,
VPos valignment) |
void |
pseudoClassStateChanged(PseudoClass pseudoClass,
boolean active) |
protected double |
snappedBottomInset()
Utility method to get the bottom inset which includes padding and border
inset.
|
protected double |
snappedLeftInset()
Utility method to get the left inset which includes padding and border
inset.
|
protected double |
snappedRightInset()
Utility method to get the right inset which includes padding and border
inset.
|
protected double |
snappedTopInset()
Utility method to get the top inset which includes padding and border
inset.
|
protected double |
snapPosition(double value)
If this region's snapToPixel property is true, returns a value rounded
to the nearest pixel, else returns the same value.
|
protected double |
snapSize(double value)
If this region's snapToPixel property is true, returns a value ceiled
to the nearest pixel, else returns the same value.
|
protected double |
snapSpace(double value)
If this region's snapToPixel property is true, returns a value rounded
to the nearest pixel, else returns the same value.
|
public final C getSkinnable()
Skin.dispose()
.
The caller who constructs a Skinnable must also construct a Skin and properly establish the relationship between the Control and its Skin.
getSkinnable
in interface Skin<C extends Control>
public final Node getNode()
Skin.dispose()
, and must never change except when
changing to null.public void dispose()
Skin.getSkinnable()
and Skin.getNode()
should return null following a call to dispose. Calling dispose twice
has no effect.public final ObservableList<Node> getChildren()
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
protected final void consumeMouseEvents(boolean value)
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
height
- The height of the Skin, in case this value might dictate
the minimum width.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
width
- The width of the Skin, in case this value might dictate
the minimum height.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
height
- The height of the Skin, in case this value might dictate
the maximum width.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
width
- The width of the Skin, in case this value might dictate
the maximum height.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
. The default
implementation calculates this width as the width of the area occupied
by its managed children when they are positioned at their
current positions at their preferred widths.height
- the height that should be used if preferred width depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
. The default
implementation calculates this height as the height of the area occupied
by its managed children when they are positioned at their current
positions at their preferred heights.width
- the width that should be used if preferred height depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeBaselineOffset(double topInset, double rightInset, double bottomInset, double leftInset)
Node.getBaselineOffset()
.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double snappedTopInset()
protected double snappedBottomInset()
protected double snappedLeftInset()
protected double snappedRightInset()
protected double snapSpace(double value)
value
- the space value to be snappedprotected double snapSize(double value)
value
- the size value to be snappedprotected double snapPosition(double value)
value
- the position value to be snappedprotected void positionInArea(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, HPos halignment, VPos valignment)
protected void positionInArea(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, HPos halignment, VPos valignment)
protected void layoutInArea(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, HPos halignment, VPos valignment)
protected void layoutInArea(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, HPos halignment, VPos valignment)
protected void layoutInArea(Node child, double areaX, double areaY, double areaWidth, double areaHeight, double areaBaselineOffset, Insets margin, boolean fillWidth, boolean fillHeight, HPos halignment, VPos valignment)
public static java.util.List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public java.util.List<CssMetaData<? extends Styleable,?>> getCssMetaData()
Node.getClassCssMetaData()
so that
a Node's CssMetaData can be accessed without the need for reflection.public final void pseudoClassStateChanged(PseudoClass pseudoClass, boolean active)
Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to