java.lang.Object
javafx.scene.Node
javafx.scene.shape.Shape
javafx.scene.text.Text
org.kordamp.ikonli.javafx.FontIcon
- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget,Icon
- Author:
- Andres Almiray
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ObjectProperty<org.kordamp.ikonli.Ikon> javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> javafx.beans.property.IntegerPropertyjavafx.beans.property.StringPropertyProperties inherited from class javafx.scene.text.Text
baselineOffset, boundsType, caretBias, caretPosition, caretShape, font, fontSmoothingType, lineSpacing, selectionEnd, selectionFill, selectionShape, selectionStart, strikethrough, textAlignment, textOrigin, text, underline, wrappingWidth, x, yProperties inherited from class javafx.scene.shape.Shape
fill, smooth, strokeDashOffset, strokeLineCap, strokeLineJoin, strokeMiterLimit, stroke, strokeType, strokeWidthProperties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javafx.css.StyleableObjectProperty<javafx.scene.paint.Paint> protected javafx.css.StyleableIntegerPropertyFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> List<javafx.css.CssMetaData<? extends javafx.css.Styleable, ?>> org.kordamp.ikonli.IkonGets the value of theiconCodeproperty.javafx.scene.paint.PaintGets the value of theiconColorproperty.intGets the value of theiconSizeproperty.javafx.beans.property.ObjectProperty<org.kordamp.ikonli.Ikon> javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> javafx.beans.property.IntegerPropertystatic IllegalArgumentExceptioninvalidDescription(String description, Exception e) static FontIconof(org.kordamp.ikonli.Ikon ikon) static FontIconof(org.kordamp.ikonli.Ikon ikon, int iconSize) static FontIconof(org.kordamp.ikonli.Ikon iconCode, int iconSize, javafx.scene.paint.Color iconColor) static FontIconof(org.kordamp.ikonli.Ikon ikon, javafx.scene.paint.Color iconColor) voidsetIconCode(org.kordamp.ikonli.Ikon iconCode) Sets the value of theiconCodeproperty.voidsetIconColor(javafx.scene.paint.Paint paint) Sets the value of theiconColorproperty.voidsetIconLiteral(String iconCode) voidsetIconSize(int size) Sets the value of theiconSizeproperty.toString()javafx.beans.property.StringPropertyMethods inherited from class javafx.scene.text.Text
baselineOffsetProperty, boundsTypeProperty, caretBiasProperty, caretPositionProperty, caretShape, caretShapeProperty, fontProperty, fontSmoothingTypeProperty, getBaselineOffset, getBoundsType, getCaretPosition, getCaretShape, getFont, getFontSmoothingType, getLineSpacing, getSelectionEnd, getSelectionFill, getSelectionShape, getSelectionStart, getText, getTextAlignment, getTextOrigin, getWrappingWidth, getX, getY, hitTest, isCaretBias, isStrikethrough, isUnderline, lineSpacingProperty, queryAccessibleAttribute, rangeShape, selectionEndProperty, selectionFillProperty, selectionShapeProperty, selectionStartProperty, setBoundsType, setCaretBias, setCaretPosition, setFont, setFontSmoothingType, setLineSpacing, setSelectionEnd, setSelectionFill, setSelectionStart, setStrikethrough, setText, setTextAlignment, setTextOrigin, setUnderline, setWrappingWidth, setX, setY, strikethroughProperty, textAlignmentProperty, textOriginProperty, textProperty, underlineProperty, underlineShape, usesMirroring, wrappingWidthProperty, xProperty, yPropertyMethods inherited from class javafx.scene.shape.Shape
fillProperty, getFill, getStroke, getStrokeDashArray, getStrokeDashOffset, getStrokeLineCap, getStrokeLineJoin, getStrokeMiterLimit, getStrokeType, getStrokeWidth, intersect, isSmooth, setFill, setSmooth, setStroke, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeType, setStrokeWidth, smoothProperty, strokeDashOffsetProperty, strokeLineCapProperty, strokeLineJoinProperty, strokeMiterLimitProperty, strokeProperty, strokeTypeProperty, strokeWidthProperty, subtract, unionMethods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, 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, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, 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, lookup, lookupAll, managedProperty, maxHeight, maxWidth, minHeight, minWidth, 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, prefHeight, prefWidth, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, 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, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, translateXProperty, translateYProperty, translateZProperty, viewOrderProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getId, getPseudoClassStates, getStyle, getStyleableNode, getStyleableParent, getStyleClass, getTypeSelector
-
Property Details
-
units
public javafx.beans.property.StringProperty unitsProperty- See Also:
-
iconSize
public javafx.beans.property.IntegerProperty iconSizeProperty- Specified by:
iconSizePropertyin interfaceIcon- See Also:
-
iconColor
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> iconColorProperty- Specified by:
iconColorPropertyin interfaceIcon- See Also:
-
iconCode
public javafx.beans.property.ObjectProperty<org.kordamp.ikonli.Ikon> iconCodeProperty- See Also:
-
-
Field Details
-
iconSize
protected javafx.css.StyleableIntegerProperty iconSize -
iconColor
protected javafx.css.StyleableObjectProperty<javafx.scene.paint.Paint> iconColor
-
-
Constructor Details
-
FontIcon
public FontIcon() -
FontIcon
-
FontIcon
public FontIcon(org.kordamp.ikonli.Ikon iconCode)
-
-
Method Details
-
unitsProperty
public javafx.beans.property.StringProperty unitsProperty()- Returns:
- the
unitsproperty
-
toString
- Overrides:
toStringin classjavafx.scene.text.Text
-
iconSizeProperty
public javafx.beans.property.IntegerProperty iconSizeProperty()- Specified by:
iconSizePropertyin interfaceIcon- Returns:
- the
iconSizeproperty - See Also:
-
iconColorProperty
public javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> iconColorProperty()- Specified by:
iconColorPropertyin interfaceIcon- Returns:
- the
iconColorproperty - See Also:
-
iconCodeProperty
public javafx.beans.property.ObjectProperty<org.kordamp.ikonli.Ikon> iconCodeProperty()- Returns:
- the
iconCodeproperty - See Also:
-
getIconSize
public int getIconSize()Gets the value of theiconSizeproperty.- Specified by:
getIconSizein interfaceIcon- Property description:
- Returns:
- the value of the
iconSizeproperty - See Also:
-
setIconSize
public void setIconSize(int size) Sets the value of theiconSizeproperty.- Specified by:
setIconSizein interfaceIcon- Property description:
- Parameters:
size- the value for theiconSizeproperty- See Also:
-
getIconColor
public javafx.scene.paint.Paint getIconColor()Gets the value of theiconColorproperty.- Specified by:
getIconColorin interfaceIcon- Property description:
- Returns:
- the value of the
iconColorproperty - See Also:
-
setIconColor
public void setIconColor(javafx.scene.paint.Paint paint) Sets the value of theiconColorproperty.- Specified by:
setIconColorin interfaceIcon- Property description:
- Parameters:
paint- the value for theiconColorproperty- See Also:
-
getIconCode
public org.kordamp.ikonli.Ikon getIconCode()Gets the value of theiconCodeproperty.- Property description:
- Returns:
- the value of the
iconCodeproperty - See Also:
-
setIconCode
public void setIconCode(org.kordamp.ikonli.Ikon iconCode) Sets the value of theiconCodeproperty.- Property description:
- Parameters:
iconCode- the value for theiconCodeproperty- See Also:
-
getIconLiteral
-
setIconLiteral
-
getCssMetaData
- Specified by:
getCssMetaDatain interfacejavafx.css.Styleable- Overrides:
getCssMetaDatain classjavafx.scene.text.Text
-
of
-
of
-
of
-
of
public static FontIcon of(org.kordamp.ikonli.Ikon iconCode, int iconSize, javafx.scene.paint.Color iconColor) -
getClassCssMetaData
-
invalidDescription
-