Class HtmlImageViewPeer<N extends ImageView,NB extends ImageViewPeerBase<N,NB,NM>,NM extends ImageViewPeerMixin<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.HtmlImageViewPeer<N,NB,NM>
- All Implemented Interfaces:
ImageViewPeerMixin<N,
,NB, NM> NodePeerMixin<N,
,NB, NM> HasSizeChangedCallback
,NodePeer<N>
public final class HtmlImageViewPeer<N extends ImageView,NB extends ImageViewPeerBase<N,NB,NM>,NM extends ImageViewPeerMixin<N,NB,NM>>
extends HtmlNodePeer<N,NB,NM>
implements ImageViewPeerMixin<N,NB,NM>, HasSizeChangedCallback
- 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 TypeMethodDescriptionstatic void
applyTextFillToSvg
(elemental2.dom.Element svgNode, String fill) static void
onHTMLImageLoaded
(elemental2.dom.HTMLImageElement imageElement, Image image) void
setSizeChangedCallback
(Runnable sizeChangedCallback) void
updateEffect
(Effect effect) void
updateFitHeight
(Double fitHeight) void
updateFitWidth
(Double fitWidth) void
updateImage
(Image image) void
updatePreserveRatio
(Boolean preserveRatio) 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, bind, 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.base.NodePeerMixin
bind, 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
-
Constructor Details
-
HtmlImageViewPeer
public HtmlImageViewPeer() -
HtmlImageViewPeer
-
-
Method Details
-
setSizeChangedCallback
- Specified by:
setSizeChangedCallback
in interfaceHasSizeChangedCallback
-
updateImage
- Specified by:
updateImage
in interfaceImageViewPeerMixin<N extends ImageView,
NB extends ImageViewPeerBase<N, NB, NM>, NM extends ImageViewPeerMixin<N, NB, NM>>
-
onHTMLImageLoaded
-
updateFitWidth
- Specified by:
updateFitWidth
in interfaceImageViewPeerMixin<N extends ImageView,
NB extends ImageViewPeerBase<N, NB, NM>, NM extends ImageViewPeerMixin<N, NB, NM>>
-
updateFitHeight
- Specified by:
updateFitHeight
in interfaceImageViewPeerMixin<N extends ImageView,
NB extends ImageViewPeerBase<N, NB, NM>, NM extends ImageViewPeerMixin<N, NB, NM>>
-
updatePreserveRatio
- Specified by:
updatePreserveRatio
in interfaceImageViewPeerMixin<N extends ImageView,
NB extends ImageViewPeerBase<N, NB, NM>, NM extends ImageViewPeerMixin<N, NB, NM>>
-
updateX
- Specified by:
updateX
in interfaceImageViewPeerMixin<N extends ImageView,
NB extends ImageViewPeerBase<N, NB, NM>, NM extends ImageViewPeerMixin<N, NB, NM>>
-
updateY
- Specified by:
updateY
in interfaceImageViewPeerMixin<N extends ImageView,
NB extends ImageViewPeerBase<N, NB, NM>, NM extends ImageViewPeerMixin<N, NB, NM>>
-
applyTextFillToSvg
-
updateEffect
- Specified by:
updateEffect
in interfaceNodePeerMixin<N extends ImageView,
NB extends ImageViewPeerBase<N, NB, NM>, NM extends ImageViewPeerMixin<N, NB, NM>> - Overrides:
updateEffect
in classHtmlNodePeer<N extends ImageView,
NB extends ImageViewPeerBase<N, NB, NM>, NM extends ImageViewPeerMixin<N, NB, NM>>
-