use of edu.cmu.tetradapp.workbench.GraphNodeMeasured in project tetrad by cmu-phil.
the class SemPmGraphicalEditor method addMouseListenerToGraphNodesMeasured.
private void addMouseListenerToGraphNodesMeasured() {
List nodes = graph().getNodes();
for (Object node : nodes) {
Object displayNode = workbench().getModelNodesToDisplay().get(node);
if (displayNode instanceof GraphNodeMeasured) {
DisplayNode _displayNode = (DisplayNode) displayNode;
_displayNode.setToolTipText(getEquationOfNode(_displayNode.getModelNode()));
}
}
}
use of edu.cmu.tetradapp.workbench.GraphNodeMeasured in project tetrad by cmu-phil.
the class TestDisplayNode method testSetLocation.
@Test
public void testSetLocation() {
// When constructing a display node without a model node, must check
// make sure its position can be set. This at one point threw a
// null pointer exception.
DisplayNode displayNode = new GraphNodeMeasured("X");
displayNode.setLocation(10, 10);
}
Aggregations