Class ForceLayoutGraph<RECORD>
java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.charting.forcelayout.ForceLayoutGraph<RECORD>
- All Implemented Interfaces:
Component
public class ForceLayoutGraph<RECORD> extends AbstractComponent
-
Field Summary
Fields Modifier and Type Field Description Event<ForceLayoutNode>onNodeClickedEvent<NodeExpandedOrCollapsedEvent<RECORD>>onNodeExpandedOrCollapsed -
Constructor Summary
Constructors Constructor Description ForceLayoutGraph()ForceLayoutGraph(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links) -
Method Summary
Modifier and Type Method Description voidaddNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links)org.teamapps.dto.UiComponentcreateUiComponent()intgetAnimationDuration()java.util.List<ForceLayoutLink>getLinks()java.util.List<ForceLayoutNode<RECORD>>getNodes()PropertyExtractor<RECORD>getPropertyExtractor()voidhandleUiEvent(org.teamapps.dto.UiEvent event)voidremoveNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes)voidremoveNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links)voidsetAnimationDuration(int animationDuration)voidsetPropertyExtractor(PropertyExtractor<RECORD> propertyExtractor)Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiComponentReference, destroy, doDestroy, getDebuggingId, getId, getParent, getSessionContext, isDestroyed, isEffectivelyVisible, isRendered, isVisible, mapAbstractUiComponentProperties, onDestroyed, queueCommandIfRendered, render, reRenderIfRendered, setCssStyle, setDebuggingId, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setShadow, setVisible, toString, unrender
-
Field Details
-
Constructor Details
-
ForceLayoutGraph
public ForceLayoutGraph() -
ForceLayoutGraph
public ForceLayoutGraph(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links)
-
-
Method Details
-
createUiComponent
public org.teamapps.dto.UiComponent createUiComponent()- Specified by:
createUiComponentin classAbstractComponent
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event) -
getAnimationDuration
public int getAnimationDuration() -
setAnimationDuration
public void setAnimationDuration(int animationDuration) -
addNodesAndLinks
public void addNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links) -
removeNodesAndLinks
-
removeNodesAndLinks
public void removeNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links) -
getNodes
-
getLinks
-
getPropertyExtractor
-
setPropertyExtractor
-