Class ForceLayoutGraph<RECORD>
java.lang.Object
org.teamapps.ux.component.AbstractComponent
org.teamapps.ux.component.charting.forcelayout.ForceLayoutGraph<RECORD>
- All Implemented Interfaces:
ClientObject,Component
public class ForceLayoutGraph<RECORD> extends AbstractComponent
-
Field Summary
Fields Modifier and Type Field Description Event<ForceLayoutNode<RECORD>>onNodeClickedEvent<ForceLayoutNode<RECORD>>onNodeDoubleClickedEvent<NodeExpandedOrCollapsedEvent<RECORD>>onNodeExpandedOrCollapsed -
Constructor Summary
Constructors Constructor Description ForceLayoutGraph()ForceLayoutGraph(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink<RECORD>> links) -
Method Summary
Modifier and Type Method Description voidaddNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink<RECORD>> links)org.teamapps.dto.UiComponentcreateUiComponent()intgetAnimationDuration()java.util.List<ForceLayoutLink<RECORD>>getLinks()java.util.List<ForceLayoutNode<RECORD>>getNodes()PropertyProvider<RECORD>getPropertyProvider()voidhandleUiEvent(org.teamapps.dto.UiEvent event)voidremoveNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes)voidremoveNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink<RECORD>> links)voidsetAnimationDuration(int animationDuration)voidsetDistance(float linkDistanceFactor, float nodeDistanceFactor)voidsetModel(ForceLayoutModel<RECORD> model)voidsetPropertyExtractor(PropertyExtractor<RECORD> propertyExtractor)voidsetPropertyProvider(PropertyProvider<RECORD> propertyProvider)Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isDestroyed, isEffectivelyVisible, isRendered, isVisible, mapAbstractUiComponentProperties, 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<RECORD>> links)
-
-
Method Details
-
setModel
-
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<RECORD>> links) -
removeNodesAndLinks
-
removeNodesAndLinks
public void removeNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink<RECORD>> links) -
getNodes
-
getLinks
-
getPropertyProvider
-
setPropertyProvider
-
setPropertyExtractor
-
setDistance
public void setDistance(float linkDistanceFactor, float nodeDistanceFactor)
-