Class HtmlSvgTextPeer<N extends Text,NB extends TextPeerBase<N,NB,NM>,NM extends TextPeerMixin<N,NB,NM>>
java.lang.Object
dev.webfx.kit.mapper.peers.javafxgraphics.base.NodePeerImpl<N,NB,NM>
dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.shared.HtmlSvgNodePeer<elemental2.dom.HTMLElement,N,NB,NM>
dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.html.HtmlNodePeer<N,NB,NM>
dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.html.HtmlSvgTextPeer<N,NB,NM>
- All Implemented Interfaces:
NodePeerMixin<N,
,NB, NM> ShapePeerMixin<N,
,NB, NM> TextPeerMixin<N,
,NB, NM> LayoutMeasurable
,HtmlLayoutMeasurable
,HtmlLayoutMeasurableNoHGrow
,NodePeer<N>
public final class HtmlSvgTextPeer<N extends Text,NB extends TextPeerBase<N,NB,NM>,NM extends TextPeerMixin<N,NB,NM>>
extends HtmlNodePeer<N,NB,NM>
implements TextPeerMixin<N,NB,NM>, HtmlLayoutMeasurableNoHGrow
- Author:
- Bruno Salmon
-
Field Summary
Fields inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.shared.HtmlSvgNodePeer
clip, clipMask, clipNodes, clipPath, containerType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(N node, SceneRequester sceneRequester) double
measure
(elemental2.dom.HTMLElement e, boolean width) void
updateEffect
(Effect effect) void
updateFill
(Paint fill) void
updateFont
(Font font) void
updateLineSpacing
(Number lineSpacing) void
updateSmooth
(Boolean smooth) void
updateStrikethrough
(Boolean strikethrough) protected void
void
updateStroke
(Paint stroke) void
updateStrokeDashArray
(List<Double> dashArray) void
updateStrokeDashOffset
(Double strokeDashOffset) void
updateStrokeLineCap
(StrokeLineCap strokeLineCap) void
updateStrokeLineJoin
(StrokeLineJoin strokeLineJoin) void
updateStrokeMiterLimit
(Double strokeMiterLimit) void
updateStrokeType
(StrokeType strokeType) void
updateStrokeWidth
(Double strokeWidth) void
updateText
(String text) void
updateTextAlignment
(TextAlignment textAlignment) void
updateTextOrigin
(VPos textOrigin) void
updateWrappingWidth
(Double wrappingWidth) void
void
Methods inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.html.HtmlNodePeer
getEffectElement, getScenePeer, getSvgRoot, toCssTextAlignment, toCssTextAlignment, toFilter, toPx, updateAllNodeTransforms
Methods inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.shared.HtmlSvgNodePeer
applyClipClipNodes, applyClipMask, applyClipPath, clearLayoutCache, computeClipMask, computeClipPath, getChildrenContainer, getContainer, getElement, getHtmlFocusableElement, getJavaFxFocusableNode, getPeerFromElement, getPeerFromElementOrParents, getStyleAttribute, getVisibleContainer, installTouchListeners, isClip, isJavaFxFocusOwner, isScrolling, isTreeVisible, makeContainerInvisible, passHtmlTouchEventOnToFx, passOnToFx, requestFocus, setChildrenContainer, setContainer, setElementAttribute, setElementAttribute, setElementAttribute, setElementAttribute, setElementAttribute, setElementStyleAttribute, setElementTextContent, setFontAttributes, setFontAttributes, setJavaFxFocusOwner, setJavaFxFocusOwner, setScrolling, storePeerInElement, toContainerElement, toCssCursor, toNodePeer, updateBlendMode, updateClip, updateCursor, updateDisabled, updateId, updateLayoutX, updateLayoutY, updateMouseTransparent, updateOnDragDetected, updateOnDragDone, updateOnDragDropped, updateOnDragEntered, updateOnDragExited, updateOnDragOver, updateOpacity, updateRotate, updateScaleX, updateScaleY, updateStyleClass, updateTransforms, updateTranslateX, updateTranslateY, updateVisible
Methods inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.base.NodePeerImpl
getNode, getNodePeerBase
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.html.layoutmeasurable.HtmlLayoutMeasurable
clearCache, getCache, getElement, getLayoutBounds, maxHeight, measureHeight, measureLayoutBounds, measureWidth, minHeight, prefHeight, prefWidth, sizeAndMeasure
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.html.layoutmeasurable.HtmlLayoutMeasurableNoHGrow
maxWidth, minWidth
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.base.NodePeerMixin
getNode, getNodePeerBase, isTreeVisible, requestFocus, snapshot, unbind, updateAllNodeTransforms, updateBlendMode, updateClip, updateCursor, updateDisabled, updateId, updateLayoutX, updateLayoutY, updateList, updateMouseTransparent, updateOnDragDetected, updateOnDragDone, updateOnDragDropped, updateOnDragEntered, updateOnDragExited, updateOnDragOver, updateOpacity, updateProperty, updateRotate, updateScaleX, updateScaleY, updateStyleClass, updateTransforms, updateTranslateX, updateTranslateY, updateVisible
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.base.ShapePeerMixin
updateSmooth
-
Constructor Details
-
HtmlSvgTextPeer
public HtmlSvgTextPeer() -
HtmlSvgTextPeer
-
-
Method Details
-
bind
- Specified by:
bind
in interfaceNodePeer<N extends Text>
- Specified by:
bind
in interfaceNodePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>> - Overrides:
bind
in classHtmlSvgNodePeer<elemental2.dom.HTMLElement,
N extends Text, NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateEffect
- Specified by:
updateEffect
in interfaceNodePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>> - Overrides:
updateEffect
in classHtmlNodePeer<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateFill
- Specified by:
updateFill
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStroke
- Specified by:
updateStroke
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStrokeWidth
- Specified by:
updateStrokeWidth
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStrokeType
- Specified by:
updateStrokeType
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStrokeLineCap
- Specified by:
updateStrokeLineCap
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStrokeLineJoin
- Specified by:
updateStrokeLineJoin
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStrokeMiterLimit
- Specified by:
updateStrokeMiterLimit
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStrokeDashOffset
- Specified by:
updateStrokeDashOffset
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStrokeDashArray
- Specified by:
updateStrokeDashArray
in interfaceShapePeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
measure
public double measure(elemental2.dom.HTMLElement e, boolean width) - Specified by:
measure
in interfaceHtmlLayoutMeasurable
-
updateText
- Specified by:
updateText
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateTextOrigin
- Specified by:
updateTextOrigin
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateX
- Specified by:
updateX
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateY
- Specified by:
updateY
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateWrappingWidth
- Specified by:
updateWrappingWidth
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateLineSpacing
- Specified by:
updateLineSpacing
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateStrikethrough
- Specified by:
updateStrikethrough
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateTextAlignment
- Specified by:
updateTextAlignment
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateFont
- Specified by:
updateFont
in interfaceTextPeerMixin<N extends Text,
NB extends TextPeerBase<N, NB, NM>, NM extends TextPeerMixin<N, NB, NM>>
-
updateSmooth
- Specified by:
updateSmooth
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStroke
protected void updateStroke()
-