Class HtmlSVGShapePeer<N extends Shape,NB extends ShapePeerBase<N,NB,NM>,NM extends ShapePeerMixin<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.HtmlSVGShapePeer<N,NB,NM>
- All Implemented Interfaces:
NodePeerMixin<N,
,NB, NM> ShapePeerMixin<N,
,NB, NM> NodePeer<N>
- Direct Known Subclasses:
HtmlLinePeer
,HtmlSVGPathPeer
public abstract class HtmlSVGShapePeer<N extends Shape,NB extends ShapePeerBase<N,NB,NM>,NM extends ShapePeerMixin<N,NB,NM>>
extends HtmlNodePeer<N,NB,NM>
implements ShapePeerMixin<N,NB,NM>
- Author:
- Bruno Salmon
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected elemental2.svg.SVGRect
protected double
protected final elemental2.svg.SVGSVGElement
protected double
protected double
protected double
Fields inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.shared.HtmlSvgNodePeer
clip, clipNodes, clipPath, containerType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(N node, SceneRequester sceneRequester) protected elemental2.svg.SVGRect
getBBox()
void
updateAllNodeTransforms
(List<Transform> allNodeTransforms) void
updateEffect
(Effect effect) void
updateFill
(Paint fill) void
updateSmooth
(Boolean smooth) 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) Methods inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.html.HtmlNodePeer
fromPx, getEffectElement, toCssTextAlignment, toCssTextAlignment, toFilter, toPx
Methods inherited from class dev.webfx.kit.mapper.peers.javafxgraphics.gwtj2cl.shared.HtmlSvgNodePeer
applyClipPath, applyClipPathToClipNodes, clearLayoutCache, computeClipPath, getChildrenContainer, getContainer, getElement, getHtmlFocusableElement, getJavaFxFocusableNode, getPeerFromElement, getPeerFromElementOrParents, getStyleAttribute, getVisibleContainer, installTouchListeners, isClip, isJavaFxFocusOwner, isTreeVisible, makeContainerInvisible, passHtmlTouchEventOnToFx, passOnToFx, requestFocus, setChildrenContainer, setContainer, setElementAttribute, setElementAttribute, setElementAttribute, setElementAttribute, setElementAttribute, setElementStyleAttribute, setElementTextContent, setFontAttributes, setFontAttributes, setJavaFxFocusOwner, setJavaFxFocusOwner, 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.base.NodePeerMixin
getNode, getNodePeerBase, isTreeVisible, requestFocus, snapshot, unbind, 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
-
Field Details
-
svgElement
protected final elemental2.svg.SVGSVGElement svgElement -
x
protected double x -
y
protected double y -
width
protected double width -
height
protected double height -
bBox
protected elemental2.svg.SVGRect bBox
-
-
Constructor Details
-
HtmlSVGShapePeer
-
-
Method Details
-
bind
- Specified by:
bind
in interfaceNodePeer<N extends Shape>
- Specified by:
bind
in interfaceNodePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>> - Overrides:
bind
in classHtmlSvgNodePeer<elemental2.dom.HTMLElement,
N extends Shape, NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
getBBox
protected elemental2.svg.SVGRect getBBox() -
updateEffect
- Specified by:
updateEffect
in interfaceNodePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>> - Overrides:
updateEffect
in classHtmlNodePeer<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateFill
- Specified by:
updateFill
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStroke
- Specified by:
updateStroke
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStrokeWidth
- Specified by:
updateStrokeWidth
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStrokeType
- Specified by:
updateStrokeType
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStrokeLineCap
- Specified by:
updateStrokeLineCap
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStrokeLineJoin
- Specified by:
updateStrokeLineJoin
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStrokeMiterLimit
- Specified by:
updateStrokeMiterLimit
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStrokeDashOffset
- Specified by:
updateStrokeDashOffset
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateStrokeDashArray
- Specified by:
updateStrokeDashArray
in interfaceShapePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>>
-
updateAllNodeTransforms
- Specified by:
updateAllNodeTransforms
in interfaceNodePeerMixin<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<N, NB, NM>> - Overrides:
updateAllNodeTransforms
in classHtmlNodePeer<N extends Shape,
NB extends ShapePeerBase<N, NB, NM>, NM extends ShapePeerMixin<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()
-