org.keridwen.modelling.monitoring.model
Class MonitoringNode
java.lang.Object
org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
org.keridwen.modelling.monitoring.model.MonitoringNode
- All Implemented Interfaces:
- TreeNode, org.jdesktop.swingx.treetable.MutableTreeTableNode, org.jdesktop.swingx.treetable.TreeTableNode
public class MonitoringNode
- extends org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
This class is a node which contains data of live monitoring.
Fields inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode |
allowsChildren, children, parent, userObject |
Constructor Summary |
MonitoringNode(com.artenum.penelope.field.interfaces.DataField<?,?> dataField,
int curveId,
VisualizerMonitoringNode visualizerMonitoringNode,
int uniqueId)
|
MonitoringNode(String nodeName,
com.artenum.penelope.field.interfaces.DataField<?,?> dataField,
int curveId,
int uniqueId)
|
MonitoringNode(String nodeName,
com.artenum.penelope.field.interfaces.DataField<?,?> dataField,
int curveId,
VisualizerMonitoringNode visualizerMonitoringNode,
int uniqueId)
Constructor of MonitoringNode . |
MonitoringNode(String nodeName,
int curveId,
VisualizerMonitoringNode visualizerMonitoringNode,
int uniqueId)
|
Methods inherited from class org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode |
getColumnCount, getValueAt, isEditable, setValueAt |
Methods inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode |
add, children, createChildrenList, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, getUserObject, insert, isLeaf, remove, remove, removeFromParent, setAllowsChildren, setParent, setUserObject |
MonitoringNode
public MonitoringNode(String nodeName,
com.artenum.penelope.field.interfaces.DataField<?,?> dataField,
int curveId,
VisualizerMonitoringNode visualizerMonitoringNode,
int uniqueId)
- Constructor of
MonitoringNode
.
- Parameters:
nodeName
- The name of the node.dataField
- The data stored in this node which indicates the values of the curve plotted. The data array stored in
this DataField
contains the different ordinate of the curve plotted. The MeshMask
of
the DataField
contains the mesh element id of vertices stored in the Mesh
. This mesh
is stored in the MeshMask
. Vertices of the mesh contains coordinates which indicate the
abscissa value of curve plotted. For example, if you consider a time series in 2 dimensions (y=f(x)),
the time is stored in first value of vertex coordinate of mesh (vertex.getPoint().getCoord()[1]).curveId
- The id of the curve plotted. This is used by JFreeChart to know which is the representation of data in
all curves plotted.
MonitoringNode
public MonitoringNode(String nodeName,
com.artenum.penelope.field.interfaces.DataField<?,?> dataField,
int curveId,
int uniqueId)
MonitoringNode
public MonitoringNode(com.artenum.penelope.field.interfaces.DataField<?,?> dataField,
int curveId,
VisualizerMonitoringNode visualizerMonitoringNode,
int uniqueId)
MonitoringNode
public MonitoringNode(String nodeName,
int curveId,
VisualizerMonitoringNode visualizerMonitoringNode,
int uniqueId)
isVisble
public boolean isVisble()
- Returns:
- The boolean which indicates if the curve is displayed or not.
setVisble
public void setVisble(boolean visble)
- Define the visibility of the node.
- Parameters:
visble
- The boolean which indicates if the curve is displayed or not.
getColor
public Color getColor()
- Returns:
- The
Color
which indicates the color of the curve plotted.
setColor
public void setColor(Color color)
- Parameters:
color
- The Color
which indicates the color of the curve plotted.
getDataField
public com.artenum.penelope.field.interfaces.DataField<?,?> getDataField()
- Returns:
- The data stored in this node which indicates the values of the curve plotted. The data array stored in
this
DataField
contains the different ordinate of the curve plotted. The MeshMask
of the
DataField
contains the mesh element id of vertices stored in the Mesh
. This mesh is
stored in the MeshMask
. Vertices of the mesh contains coordinates which indicate the abscissa
value of curve plotted. For example, if you consider a time series in 2 dimensions (y=f(x)), the time is
stored in first value of vertex coordinate of mesh (vertex.getPoint().getCoord()[1]).
getNodeName
public String getNodeName()
- Returns:
- The name of the node.
getCurveId
public int getCurveId()
- Returns:
- The id of the curve plotted. This is used by JFreeChart to know which is the representation of data in
all curves plotted.
getCategoryMonitoringNode
public CategoryMonitoringNode getCategoryMonitoringNode()
- Returns:
- Reference of the
CategoryMonitoringNode
where is stored this present MonitoringNode
.
addMonitoringNodeExport
public void addMonitoringNodeExport(MonitoringNodeExport monitoringNodeExport)
- Add a
MonitoringNodeExport
which can export the DataField
stored in this MonitoringNode
.
- Parameters:
monitoringNodeExport
- is the MonitoringNodeExport
which must be added.
removeMonitoringNodeExport
public void removeMonitoringNodeExport(MonitoringNodeExport monitoringNodeExport)
- Remove a
MonitoringNodeExport
stored in this MonitoringNode
.
- Parameters:
monitoringNodeExport
- is the MonitoringNodeExport
which must be removed.
setCategoryMonitoringNode
public void setCategoryMonitoringNode(CategoryMonitoringNode categoryMonitoringNode)
- Parameters:
categoryMonitoringNode
- is the CategoryMonitoringNode
where this MonitoringNode
is defined.
clearDataField
public void clearDataField()
- Clear the data filed stored in memory.
getNodeURI
public URI getNodeURI()
- Returns:
- the
URI
of this MonitoringNode
.
setNodeURI
public void setNodeURI(URI nodeURI)
- Parameters:
nodeURI
- the new URI of this node.
getVisualizerMonitoringNode
public Container getVisualizerMonitoringNode(boolean isVTKActive)
- Returns:
- The
JPanel
which contains the visualization of this MonitoringNode
.
exportPNG
public void exportPNG(File directoryToExport)
- Parameters:
directoryToExport
- the path of directory where the export must be done.
getMonitoringNodeExport
public MonitoringNodeExport getMonitoringNodeExport(int index)
- Parameters:
index
- the index of the MonitoringNodeExport
stored in the MonitoringNode
.
- Returns:
- the
MonitoringNodeExport
stored in the MonitoringNode
at the given index.
getMonitoringNodeExportList
public List<MonitoringNodeExport> getMonitoringNodeExportList()
- Returns:
- List of
MonitoringNodeExport
available for this node.
setDataField
public void setDataField(com.artenum.penelope.field.interfaces.DataField<?,?> dataField)
- Parameters:
dataField
- The data stored in this node which indicates the values of the curve plotted. The data array stored in
this DataField contains the different ordinate of the curve plotted. The MeshMask of the DataField
contains the mesh element id of vertices stored in the Mesh. This mesh is stored in the MeshMask.
Vertices of the mesh contains coordinates which indicate the abscissa value of curve plotted. For
example, if you consider a time series in 2 dimensions (y=f(x)), the time is stored in first value of
vertex coordinate of mesh (vertex.getPoint().getCoord()[1]).
toString
public String toString()
- Overrides:
toString
in class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
getUniqueId
public int getUniqueId()
- Returns:
- The unique idetifie of this node.
getVisualizerMonitoringNode
public VisualizerMonitoringNode getVisualizerMonitoringNode()
- Returns:
- The
VisualizerMonitoringNode
used to visualize the selected DataField
.
Copyright © 2012-2013 Artenum. All Rights Reserved.