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-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
onDestroyed, onRendered
-
-
Constructor Summary
Constructors Constructor Description ForceLayoutGraph()ForceLayoutGraph(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links)
-
Method Summary
All Methods Instance Methods Concrete Methods 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, getId, getParent, getSessionContext, isDestroyed, isEffectivelyVisible, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setCssStyle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setShadow, setVisible, toString, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.Component
setCssStyle
-
-
-
-
Field Detail
-
onNodeClicked
public final Event<ForceLayoutNode> onNodeClicked
-
onNodeExpandedOrCollapsed
public final Event<NodeExpandedOrCollapsedEvent<RECORD>> onNodeExpandedOrCollapsed
-
-
Constructor Detail
-
ForceLayoutGraph
public ForceLayoutGraph()
-
ForceLayoutGraph
public ForceLayoutGraph(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links)
-
-
Method Detail
-
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
public void removeNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes)
-
removeNodesAndLinks
public void removeNodesAndLinks(java.util.List<ForceLayoutNode<RECORD>> nodes, java.util.List<ForceLayoutLink> links)
-
getNodes
public java.util.List<ForceLayoutNode<RECORD>> getNodes()
-
getLinks
public java.util.List<ForceLayoutLink> getLinks()
-
getPropertyExtractor
public PropertyExtractor<RECORD> getPropertyExtractor()
-
setPropertyExtractor
public void setPropertyExtractor(PropertyExtractor<RECORD> propertyExtractor)
-
-