public class SVGIcon
extends javafx.scene.layout.StackPane
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty| Modifier and Type | Class and Description |
|---|---|
static class |
SVGIcon.Layer |
| Constructor and Description |
|---|
SVGIcon(double size,
boolean styled) |
SVGIcon(de.jensd.fx.glyphs.GlyphIcons icon,
double size,
boolean styled)
Constructor for a SVGIcon.
|
SVGIcon(de.jensd.fx.glyphs.GlyphIcons backgroundIcon,
de.jensd.fx.glyphs.GlyphIcons foregroundIcon,
double size)
Constructor for a SVGIcon.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fadeBackgroundIconColorFromOpaqueToTransparent(int cycleCount)
Apply and play a FadeTransition on the icon in the foregroundIcon.
|
void |
fadeBackgroundIconColorFromTransparentToOpaque(int cycleCount)
Apply and play a FadeTransition on the icon in the foregroundIcon.
|
void |
fadeForegroundIconColorFromOpaqueToTransparent(int cycleCount)
Apply and play a FadeTransition on the icon in the foregroundIcon.
|
void |
fadeForegroundIconColorFromTransparentToOpaque(int cycleCount)
Apply and play a FadeTransition on the icon in the foregroundIcon.
|
javafx.scene.paint.Color |
getBackgroundIconColor()
Getter for the color of the background icons.
|
javafx.scene.paint.Color |
getForegroundIconColor()
Getter for the color of the foreground icons.
|
double |
getSize()
Getter for the size of the icons.
|
void |
seBackgroundIconColor(javafx.scene.paint.Color color,
javafx.scene.paint.Color outline,
double width)
Method sets the icon color and a stroke with a given color and width.
|
void |
setBackgroundIcon(de.jensd.fx.glyphs.GlyphIcons icon)
Changes the backgroundIcon icon.
|
void |
setBackgroundIcon(de.jensd.fx.glyphs.GlyphIcons icon,
javafx.scene.paint.Color color)
Changes the backgroundIcon icon.
|
void |
setBackgroundIconColor(javafx.scene.paint.Color color)
Method sets the icon color only.
|
void |
setBackgroundIconColorAnimated(javafx.scene.paint.Color color,
int cycleCount)
Allows to set a new color to the backgroundIcon icon and setAnimation its change (by a FadeTransition).
|
void |
setBackgroundIconColorDefault()
Reset the current background icon color to default.
|
void |
setBackgroundIconColorDefaultInverted()
Reset the current background icon color to default.
|
void |
setForegroundIcon(de.jensd.fx.glyphs.GlyphIcons icon)
Changes the foregroundIcon icon.
|
void |
setForegroundIcon(de.jensd.fx.glyphs.GlyphIcons icon,
javafx.scene.paint.Color color)
Changes the foregroundIcon icon.
|
void |
setForegroundIconColor(javafx.scene.paint.Color color)
Method sets the icon color only.
|
void |
setForegroundIconColor(javafx.scene.paint.Color color,
javafx.scene.paint.Color outline,
double width)
Method sets the icon color and a stroke with a given color and width.
|
void |
setForegroundIconColorAnimated(javafx.scene.paint.Color color,
int cycleCount)
Allows to set a new color to the foregroundIcon icon and setAnimation its change (by a FadeTransition).
|
void |
setForegroundIconColorDefault()
Reset the current foreground icon color to default.
|
void |
setForegroundIconColorDefaultInverted()
Reset the current foreground icon color to default.
|
void |
startBackgroundIconColorFadeAnimation()
Method starts the fade animation of the background icon color.
|
void |
startBackgroundIconColorFadeAnimation(int cycleCount)
Method starts the fade animation of the background icon color.
|
void |
startBackgroundIconRotateAnimation()
Method starts the rotate animation of the background icon color.
|
void |
startBackgroundIconRotateAnimation(double fromAngle,
double toAngle,
int cycleCount,
double duration,
javafx.animation.Interpolator interpolator,
boolean autoReverse)
Method starts the rotate animation of the background icon.
|
void |
startForegroundIconColorFadeAnimation()
Method starts the fade animation of the background icon color.
|
void |
startForegroundIconColorFadeAnimation(int cycleCount)
Method starts the fade animation of the background icon color.
|
void |
startForegroundIconRotateAnimation()
Method starts the rotate animation of the background icon color.
|
void |
startForegroundIconRotateAnimation(double fromAngle,
double toAngle,
int cycleCount,
double duration,
javafx.animation.Interpolator interpolator,
boolean autoReverse)
Method starts the rotate animation of the foreground icon.
|
void |
startIconAnimation()
Method starts the foreground and background fade and rotate animation .
|
void |
startIconColorFadeAnimation()
Method starts the foreground and background fade animation .
|
void |
startIconRotateAnimation()
Method starts the foreground and background rotate animation.
|
void |
stopBackgroundIconColorFadeAnimation()
Method stops the fade animation of the background icon color.
|
void |
stopBackgroundIconRotateAnimation()
Method stops the rotate animation of the background icon color.
|
void |
stopForegroundIconColorFadeAnimation()
Method stops the fade animation of the background icon color.
|
void |
stopForegroundIconRotateAnimation()
Method stops the rotate animation of the background icon color.
|
void |
stopIconAnimation()
Method stops the foreground and background fade and rotate animation .
|
void |
stopIconColorFadeAnimation()
Method stops the foreground and background fade animation .
|
void |
stopIconRotateAnimation()
Method stops the foreground and background rotate animation.
|
alignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAlignment, getAlignment, getClassCssMetaData, getContentBias, getCssMetaData, getMargin, layoutChildren, requestLayout, setAlignment, setAlignment, setMarginbackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthPropertygetBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertypublic SVGIcon(de.jensd.fx.glyphs.GlyphIcons icon,
double size,
boolean styled)
icon - the Icon to be set in the backgroundIcon
(can be chosen from one of the supported fonts from fontawesomefx)size - the size in px for the iconstyled - true if color should be changed by theme, otherwise falsepublic SVGIcon(de.jensd.fx.glyphs.GlyphIcons backgroundIcon,
de.jensd.fx.glyphs.GlyphIcons foregroundIcon,
double size)
backgroundIcon - the Icon to be set in the backgroundIcon
(can be chosen from one of the supported fonts from fontawesomefx)foregroundIcon - the Icon to be set in the foregroundIconsize - the size in px for the iconpublic SVGIcon(double size,
boolean styled)
public void fadeForegroundIconColorFromTransparentToOpaque(int cycleCount)
cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)public void fadeForegroundIconColorFromOpaqueToTransparent(int cycleCount)
cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)public void fadeBackgroundIconColorFromTransparentToOpaque(int cycleCount)
cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)public void fadeBackgroundIconColorFromOpaqueToTransparent(int cycleCount)
cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)public void startForegroundIconColorFadeAnimation(int cycleCount)
cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)public void startBackgroundIconColorFadeAnimation(int cycleCount)
cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)public void stopForegroundIconColorFadeAnimation()
public void stopBackgroundIconColorFadeAnimation()
public void stopIconColorFadeAnimation()
public void startForegroundIconColorFadeAnimation()
public void startBackgroundIconColorFadeAnimation()
public void startIconColorFadeAnimation()
public void setForegroundIconColorAnimated(javafx.scene.paint.Color color,
int cycleCount)
color - the color for the foregroundIcon icon to be setcycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)public void setBackgroundIconColorAnimated(javafx.scene.paint.Color color,
int cycleCount)
color - the color for the backgroundIcon icon to be setfeature-rights-and-access-managementcycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)public void startForegroundIconRotateAnimation(double fromAngle,
double toAngle,
int cycleCount,
double duration,
javafx.animation.Interpolator interpolator,
boolean autoReverse)
fromAngle - the rotation angle where the transition should start.toAngle - the rotation angle where the transition should end.cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless).duration - the duration which one animation cycle should take.interpolator - defines the rotation value interpolation between fromAngle and toAngle.autoReverse - defines if the animation should be reversed at the end.public void startBackgroundIconRotateAnimation(double fromAngle,
double toAngle,
int cycleCount,
double duration,
javafx.animation.Interpolator interpolator,
boolean autoReverse)
fromAngle - the rotation angle where the transition should start.toAngle - the rotation angle where the transition should end.cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless).duration - the duration which one animation cycle should take.interpolator - defines the rotation value interpolation between fromAngle and toAngle.autoReverse - defines if the animation should be reversed at the end.public void stopForegroundIconRotateAnimation()
public void stopBackgroundIconRotateAnimation()
public void stopIconRotateAnimation()
public void startForegroundIconRotateAnimation()
public void startBackgroundIconRotateAnimation()
public void startIconRotateAnimation()
public void stopIconAnimation()
public void startIconAnimation()
public void setForegroundIconColor(javafx.scene.paint.Color color)
color - the color for the foregroundIcon icon to be setpublic void setBackgroundIconColor(javafx.scene.paint.Color color)
color - the color for the backgroundIcon icon to be setpublic void setForegroundIconColor(javafx.scene.paint.Color color,
javafx.scene.paint.Color outline,
double width)
color - color for the foreground icon to be setoutline - color for the strokewidth - width of the strokepublic void seBackgroundIconColor(javafx.scene.paint.Color color,
javafx.scene.paint.Color outline,
double width)
color - color for the background icon to be setoutline - color for the strokewidth - width of the strokepublic void setForegroundIconColorDefault()
public void setBackgroundIconColorDefault()
public void setForegroundIconColorDefaultInverted()
public void setBackgroundIconColorDefaultInverted()
public void setForegroundIcon(de.jensd.fx.glyphs.GlyphIcons icon)
icon - the icon which should be set as the new iconpublic void setBackgroundIcon(de.jensd.fx.glyphs.GlyphIcons icon)
icon - the icon which should be set as the new icon.public void setForegroundIcon(de.jensd.fx.glyphs.GlyphIcons icon,
javafx.scene.paint.Color color)
icon - the icon which should be set as the new icon.color - the color of the new icon.public void setBackgroundIcon(de.jensd.fx.glyphs.GlyphIcons icon,
javafx.scene.paint.Color color)
icon - the icon which should be set as the new icon.color - the color of the new icon.public javafx.scene.paint.Color getForegroundIconColor()
public javafx.scene.paint.Color getBackgroundIconColor()
public double getSize()
Copyright © 2015–2018 openbase.org. All rights reserved.