public class SVGButtonSkin extends com.sun.javafx.scene.control.skin.ButtonSkin implements IStyleableAdditionProvider
Button in order to provide an svg image on the button. Internally a SVGGroup is used, which is also
styleable via compound selectors whose name is svg-data. The SVGGroup is used as the Buttons Labeled.graphicProperty() and
is scaled every time the Buttons Region.widthProperty() or Region.heightProperty() is changed.| Modifier and Type | Field and Description |
|---|---|
static String |
SVG_COMPOUND_SELECTOR
Contains the name of the compound selector for the
SVGGroup used in this element. |
protected SVGGroup |
svgData
The svg data that is being displayed in the graphic node.
|
| Constructor and Description |
|---|
SVGButtonSkin(javafx.scene.control.Button button)
Constructor for the skin
|
| Modifier and Type | Method and Description |
|---|---|
<TStyleableAddition extends StyleableAdditionBase> |
getStyleableAddition(Class<TStyleableAddition> clazz)
Provides the
StyleableAdditionBase for the desired class. |
handleControlPropertyChangedbottomLabelPadding, computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, isIgnoreGraphic, isIgnoreText, layoutChildren, layoutLabelInArea, layoutLabelInArea, leftLabelPadding, mnemonicTargetChanged, queryAccessibleAttribute, rightLabelPadding, topLabelPadding, updateChildrendispose, getBehavior, registerChangeListenerconsumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpacepublic static final String SVG_COMPOUND_SELECTOR
SVGGroup used in this element.protected final SVGGroup svgData
public SVGButtonSkin(javafx.scene.control.Button button)
button - The Button for which this Skin should attach to.public <TStyleableAddition extends StyleableAdditionBase> Optional<TStyleableAddition> getStyleableAddition(Class<TStyleableAddition> clazz)
StyleableAdditionBase for the desired class.. This implementation only supports SVGStyleableAddition.getStyleableAddition in interface IStyleableAdditionProviderTStyleableAddition - type of the StyleableAdditionBase.clazz - the Class for which the skin addition should be returned.StyleableAdditionBase that is attached or Optional.empty() if the desired element is not supported.IllegalArgumentException - if the given Class is null.Copyright © 2017 Saxonia Systems AG. All rights reserved.