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 Details

    • containerType

      protected DomType containerType
    • clip

      protected boolean clip
    • clipPath

      protected String clipPath
    • clipMask

      protected elemental2.dom.Element clipMask
    • clipNodes

      protected List<Node> clipNodes
  • Constructor Details

    • HtmlSvgNodePeer

      public HtmlSvgNodePeer(NB base, E element)
  • Method Details

    • getElement

      public final E getElement()
    • setContainer

      public void setContainer(elemental2.dom.Element container)
    • makeContainerInvisible

      public void makeContainerInvisible()
    • storePeerInElement

      protected void storePeerInElement(Object element)
    • getPeerFromElement

      protected static NodePeer getPeerFromElement(Object element)
    • getPeerFromElementOrParents

      public static NodePeer getPeerFromElementOrParents(elemental2.dom.Element element)
    • 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

      public void bind(N node, SceneRequester sceneRequester)
    • getScenePeer

      protected ScenePeer getScenePeer()
    • updateOnDragDetected

      public void updateOnDragDetected(EventHandler<? super MouseEvent> eventHandler)
    • updateOnDragEntered

      public void updateOnDragEntered(EventHandler<? super DragEvent> eventHandler)
    • updateOnDragOver

      public void updateOnDragOver(EventHandler<? super DragEvent> eventHandler)
    • updateOnDragDropped

      public void updateOnDragDropped(EventHandler<? super DragEvent> eventHandler)
    • updateOnDragExited

      public void updateOnDragExited(EventHandler<? super DragEvent> eventHandler)
    • updateOnDragDone

      public void updateOnDragDone(EventHandler<? super DragEvent> eventHandler)
    • passOnToFx

      public static boolean passOnToFx(EventTarget eventTarget, Event fxEvent)
      End of "Drag invalid input: '&' drop support" section
    • requestFocus

      public void requestFocus()
      Focus mapping
      Specified by:
      requestFocus in interface NodePeer<E extends elemental2.dom.Element>
      Specified by:
      requestFocus in interface NodePeerMixin<E extends elemental2.dom.Element,N extends Node,NB extends NodePeerBase<N,NB,NM>>
      Overrides:
      requestFocus in class NodePeerImpl<N extends Node,NB extends NodePeerBase<N,NB,NM>,NM extends NodePeerMixin<N,NB,NM>>
    • getHtmlFocusableElement

      protected elemental2.dom.Element getHtmlFocusableElement()
    • getJavaFxFocusableNode

      protected Node getJavaFxFocusableNode()
    • isJavaFxFocusOwner

      protected boolean isJavaFxFocusOwner()
    • setJavaFxFocusOwner

      protected void setJavaFxFocusOwner()
    • setJavaFxFocusOwner

      protected void setJavaFxFocusOwner(Node focusOwner)
    • updateLayoutX

      public void updateLayoutX(Number layoutX)
      End of "Focus mapping" section
    • installTouchListeners

      public static void installTouchListeners(elemental2.dom.EventTarget htmlTarget, EventTarget fxTarget)
    • setScrolling

      public static void setScrolling(boolean scrolling)
    • isScrolling

      public static boolean isScrolling()
    • passHtmlTouchEventOnToFx

      protected static boolean passHtmlTouchEventOnToFx(elemental2.dom.TouchEvent e, String type, EventTarget fxTarget)
    • updateLayoutY

      public void updateLayoutY(Number layoutY)
    • updateTranslateX

      public void updateTranslateX(Number translateX)
    • updateTranslateY

      public void updateTranslateY(Number translateY)
    • updateScaleX

      public void updateScaleX(Number scaleX)
    • updateScaleY

      public void updateScaleY(Number scaleX)
    • updateRotate

      public void updateRotate(Number rotate)
    • updateTransforms

      public void updateTransforms(List<Transform> transforms, ListChangeListener.Change<Transform> change)
    • updateAllNodeTransforms

      public void updateAllNodeTransforms(List<Transform> localToParentTransforms)
    • isTreeVisible

      public boolean isTreeVisible()
    • getStyleAttribute

      protected String getStyleAttribute(String name)
    • setElementStyleAttribute

      protected void setElementStyleAttribute(String name, Object value)
    • updateMouseTransparent

      public void updateMouseTransparent(Boolean mouseTransparent)
    • updateId

      public void updateId(String id)
    • updateVisible

      public void updateVisible(Boolean visible)
    • updateOpacity

      public void updateOpacity(Double opacity)
    • updateDisabled

      public void updateDisabled(Boolean disabled)
    • updateClip

      public void updateClip(Node clip)
    • isClip

      protected final boolean isClip()
    • applyClipClipNodes

      protected final void applyClipClipNodes()
    • computeClipPath

      public String computeClipPath()
    • applyClipPath

      protected void applyClipPath(String clipPah)
    • getSvgRoot

      protected abstract SvgRoot getSvgRoot()
    • computeClipMask

      public elemental2.dom.Element computeClipMask()
    • applyClipMask

      protected void applyClipMask(elemental2.dom.Element clipMask)
    • updateCursor

      public void updateCursor(Cursor cursor)
    • updateBlendMode

      public void updateBlendMode(BlendMode blendMode)
    • updateEffect

      public void updateEffect(Effect effect)
    • toFilter

      protected abstract String toFilter(Effect effect)
    • updateStyleClass

      public void updateStyleClass(List<String> styleClass, ListChangeListener.Change<String> change)
    • setElementTextContent

      protected void setElementTextContent(String textContent)
    • clearLayoutCache

      protected void clearLayoutCache()
    • setElementAttribute

      protected void setElementAttribute(String name, String value, String skipValue)
    • setElementAttribute

      protected void setElementAttribute(String name, String value)
    • setElementAttribute

      protected static void setElementAttribute(elemental2.dom.Element e, String name, String value)
    • setElementAttribute

      protected void setElementAttribute(String name, Number value, Number skipValue)
    • setElementAttribute

      protected void setElementAttribute(String name, Number value)
    • setFontAttributes

      protected void setFontAttributes(Font font)
    • setFontAttributes

      protected void setFontAttributes(Font font, elemental2.dom.Element element)
    • toCssCursor

      public static String toCssCursor(Cursor cursor)
    • toNodePeer

      public static HtmlSvgNodePeer toNodePeer(Node node)
    • toContainerElement

      public static elemental2.dom.Element toContainerElement(Node node)