Package de.f0rce.viz
Class Viz
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.Div
de.f0rce.viz.Viz
- All Implemented Interfaces:
 com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasText,java.io.Serializable
@NpmPackage(value="viz.js",version="2.1.2") @NpmPackage(value="svg-pan-zoom",version="3.6.1")
@JsModule("./@f0rce/viz-widget/viz-widget.js")
@Tag("lit-viz")
public class Viz
extends com.vaadin.flow.component.html.Div
implements com.vaadin.flow.component.HasSize
- Author:
 - David "F0rce" Dodlek
 - See Also:
 - Serialized Form
 
- 
Constructor Summary
Constructors Constructor Description Viz() - 
Method Summary
Modifier and Type Method Description com.vaadin.flow.shared.RegistrationaddImageEncodeListener(com.vaadin.flow.component.ComponentEventListener<VizImageEncodeEvent> listener)Add this listener if you need tVizEnginegetEngine()Returns the current set engine.VizFormatgetFormat()Returns the current set format.java.lang.StringgetGraph()Returns the current set graph.java.lang.StringgetMimeType()Returns the current set MIME-Type.booleanisMouseWheelZoomEnabled()Returns if mousewheel-scrolling is enabled/disabled.booleanisShowControlIcons()Returns if the control icons are enabled/disabled.voidsetEngine(VizEngine engine)Sets the engine for the renderer.voidsetFormat(VizFormat format)Sets the format for the renderer.voidsetGraph(java.io.File file)Sets the graph for the widget to render (read from .dot file).voidsetGraph(java.lang.String graph)Sets the graph for the widget to render.voidsetMimeType(java.lang.String mimeType)In IMG modesetFormat(VizFormat)sets the MIME-Type for the renderer.voidsetMouseWheelZoomEnabled(boolean mouseWheelZoomEnabled)In SVG modesetFormat(VizFormat)sets if mousewheel-scrooling should be enabled/disabled.voidshowControlIcons(boolean showControlIcons)In SVG modesetFormat(VizFormat)sets if the control icons in the bottom right corner should be displayed or not.Methods inherited from class com.vaadin.flow.component.Component
from, getChildren, getElement, getId, getParent, getTranslation, getTranslation, getUI, isAttached, isVisible, onEnabledStateChanged, setId, setVisibleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcutMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replaceMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull 
- 
Constructor Details
- 
Viz
public Viz() 
 - 
 - 
Method Details
- 
setGraph
public void setGraph(java.lang.String graph)Sets the graph for the widget to render.- Parameters:
 graph- String
 - 
setGraph
public void setGraph(java.io.File file)Sets the graph for the widget to render (read from .dot file).- Parameters:
 file- File
 - 
getGraph
public java.lang.String getGraph()Returns the current set graph.- Returns:
 - String
 
 - 
showControlIcons
public void showControlIcons(boolean showControlIcons)In SVG modesetFormat(VizFormat)sets if the control icons in the bottom right corner should be displayed or not.- Parameters:
 showControlIcons- boolean
 - 
isShowControlIcons
public boolean isShowControlIcons()Returns if the control icons are enabled/disabled.- Returns:
 - boolean
 
 - 
setEngine
Sets the engine for the renderer.- Parameters:
 engine- VizEngine
 - 
getEngine
Returns the current set engine.- Returns:
 - VizEngine
 
 - 
setFormat
Sets the format for the renderer.- Parameters:
 format- VizFormat
 - 
getFormat
Returns the current set format.- Returns:
 - VizFormat
 
 - 
setMimeType
public void setMimeType(java.lang.String mimeType)In IMG modesetFormat(VizFormat)sets the MIME-Type for the renderer. MIME-Type has to start with "image/".- Parameters:
 mimeType- String
 - 
getMimeType
public java.lang.String getMimeType()Returns the current set MIME-Type.- Returns:
 - String
 
 - 
setMouseWheelZoomEnabled
public void setMouseWheelZoomEnabled(boolean mouseWheelZoomEnabled)In SVG modesetFormat(VizFormat)sets if mousewheel-scrooling should be enabled/disabled.- Parameters:
 mouseWheelZoomEnabled- boolean
 - 
isMouseWheelZoomEnabled
public boolean isMouseWheelZoomEnabled()Returns if mousewheel-scrolling is enabled/disabled.- Returns:
 - boolean
 
 - 
addImageEncodeListener
public com.vaadin.flow.shared.Registration addImageEncodeListener(com.vaadin.flow.component.ComponentEventListener<VizImageEncodeEvent> listener)Add this listener if you need t- Parameters:
 listener-ComponentEventListener- Returns:
 Registration
 
 -