Class HtmlSvgNodePeer<E extends elemental2.dom.Element,N extends Node,NB extends NodePeerBase<N,NB,NM>,NM extends NodePeerMixin<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<E,N,NB,NM>
- All Implemented Interfaces:
NodePeerMixin<N,
,NB, NM> NodePeer<N>
- Direct Known Subclasses:
HtmlNodePeer
,SvgNodePeer
public abstract class HtmlSvgNodePeer<E extends elemental2.dom.Element,N extends Node,NB extends NodePeerBase<N,NB,NM>,NM extends NodePeerMixin<N,NB,NM>>
extends NodePeerImpl<N,NB,NM>
- Author:
- Bruno Salmon
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyClipPath
(String clipPah) protected final void
void
bind
(N node, SceneRequester sceneRequester) protected void
protected String
elemental2.dom.Element
elemental2.dom.Element
final E
protected elemental2.dom.Element
protected Node
protected static NodePeer
getPeerFromElement
(Object element) static NodePeer
getPeerFromElementOrParents
(elemental2.dom.Element element) protected String
getStyleAttribute
(String name) elemental2.dom.Element
static void
installTouchListeners
(elemental2.dom.EventTarget htmlTarget, EventTarget fxTarget) protected final boolean
isClip()
protected boolean
boolean
void
protected static boolean
passHtmlTouchEventOnToFx
(elemental2.dom.TouchEvent e, String type, EventTarget fxTarget) static boolean
passOnToFx
(EventTarget eventTarget, Event fxEvent) End of "Drag invalid input: '&' drop support" sectionvoid
Focus mappingvoid
setChildrenContainer
(elemental2.dom.Element childrenContainer) void
setContainer
(elemental2.dom.Element container) protected static void
setElementAttribute
(elemental2.dom.Element e, String name, String value) protected void
setElementAttribute
(String name, Number value) protected void
setElementAttribute
(String name, Number value, Number skipValue) protected void
setElementAttribute
(String name, String value) protected void
setElementAttribute
(String name, String value, String skipValue) protected void
setElementStyleAttribute
(String name, Object value) protected void
setElementTextContent
(String textContent) protected void
setFontAttributes
(Font font) protected void
setFontAttributes
(Font font, elemental2.dom.Element element) protected void
protected void
setJavaFxFocusOwner
(Node focusOwner) protected void
storePeerInElement
(Object element) static elemental2.dom.Element
toContainerElement
(Node node) static String
toCssCursor
(Cursor cursor) protected abstract String
static HtmlSvgNodePeer
toNodePeer
(Node node) void
updateAllNodeTransforms
(List<Transform> localToParentTransforms) void
updateBlendMode
(BlendMode blendMode) void
updateClip
(Node clip) void
updateCursor
(Cursor cursor) void
updateDisabled
(Boolean disabled) void
updateEffect
(Effect effect) void
void
updateLayoutX
(Number layoutX) End of "Focus mapping" sectionvoid
updateLayoutY
(Number layoutY) void
updateMouseTransparent
(Boolean mouseTransparent) void
updateOnDragDetected
(EventHandler<? super MouseEvent> eventHandler) void
updateOnDragDone
(EventHandler<? super DragEvent> eventHandler) void
updateOnDragDropped
(EventHandler<? super DragEvent> eventHandler) void
updateOnDragEntered
(EventHandler<? super DragEvent> eventHandler) void
updateOnDragExited
(EventHandler<? super DragEvent> eventHandler) void
updateOnDragOver
(EventHandler<? super DragEvent> eventHandler) void
updateOpacity
(Double opacity) void
updateRotate
(Number rotate) void
updateScaleX
(Number scaleX) void
updateScaleY
(Number scaleX) void
updateStyleClass
(List<String> styleClass, ListChangeListener.Change<String> change) void
updateTransforms
(List<Transform> transforms, ListChangeListener.Change<Transform> change) void
updateTranslateX
(Number translateX) void
updateTranslateY
(Number translateY) void
updateVisible
(Boolean visible) 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
snapshot, unbind, updateList, updateProperty
-
Field Details
-
containerType
-
clip
protected boolean clip -
clipNodes
-
clipPath
-
-
Constructor Details
-
HtmlSvgNodePeer
-
-
Method Details
-
getElement
-
setContainer
public void setContainer(elemental2.dom.Element container) -
makeContainerInvisible
public void makeContainerInvisible() -
storePeerInElement
-
getPeerFromElement
-
getPeerFromElementOrParents
-
getContainer
public elemental2.dom.Element getContainer() -
getVisibleContainer
public elemental2.dom.Element getVisibleContainer() -
getChildrenContainer
public elemental2.dom.Element getChildrenContainer() -
setChildrenContainer
public void setChildrenContainer(elemental2.dom.Element childrenContainer) -
bind
-
updateOnDragDetected
-
updateOnDragEntered
-
updateOnDragOver
-
updateOnDragDropped
-
updateOnDragExited
-
updateOnDragDone
-
passOnToFx
End of "Drag invalid input: '&' drop support" section -
requestFocus
public void requestFocus()Focus mapping- Specified by:
requestFocus
in interfaceNodePeer<E extends elemental2.dom.Element>
- Specified by:
requestFocus
in interfaceNodePeerMixin<E extends elemental2.dom.Element,
N extends Node, NB extends NodePeerBase<N, NB, NM>> - Overrides:
requestFocus
in classNodePeerImpl<N extends Node,
NB extends NodePeerBase<N, NB, NM>, NM extends NodePeerMixin<N, NB, NM>>
-
getHtmlFocusableElement
protected elemental2.dom.Element getHtmlFocusableElement() -
getJavaFxFocusableNode
-
isJavaFxFocusOwner
protected boolean isJavaFxFocusOwner() -
setJavaFxFocusOwner
protected void setJavaFxFocusOwner() -
setJavaFxFocusOwner
-
updateLayoutX
End of "Focus mapping" section -
installTouchListeners
public static void installTouchListeners(elemental2.dom.EventTarget htmlTarget, EventTarget fxTarget) -
passHtmlTouchEventOnToFx
protected static boolean passHtmlTouchEventOnToFx(elemental2.dom.TouchEvent e, String type, EventTarget fxTarget) -
updateLayoutY
-
updateTranslateX
-
updateTranslateY
-
updateScaleX
-
updateScaleY
-
updateRotate
-
updateTransforms
public void updateTransforms(List<Transform> transforms, ListChangeListener.Change<Transform> change) -
updateAllNodeTransforms
-
isTreeVisible
public boolean isTreeVisible() -
getStyleAttribute
-
setElementStyleAttribute
-
updateMouseTransparent
-
updateId
-
updateVisible
-
updateOpacity
-
updateDisabled
-
updateClip
-
isClip
protected final boolean isClip() -
applyClipPathToClipNodes
protected final void applyClipPathToClipNodes() -
computeClipPath
-
applyClipPath
-
updateCursor
-
updateBlendMode
-
updateEffect
-
toFilter
-
updateStyleClass
-
setElementTextContent
-
clearLayoutCache
protected void clearLayoutCache() -
setElementAttribute
-
setElementAttribute
-
setElementAttribute
-
setElementAttribute
-
setElementAttribute
-
setFontAttributes
-
setFontAttributes
-
toCssCursor
-
toNodePeer
-
toContainerElement
-