use of org.cytoscape.ding.impl.cyannotator.create.AbstractDingAnnotationFactory in project cytoscape-impl by cytoscape.
the class AddAnnotationTask method run.
@Override
public void run(TaskMonitor tm) throws Exception {
if (view instanceof DGraphView && annotationFactory instanceof AbstractDingAnnotationFactory) {
SwingUtilities.invokeLater(() -> {
final JDialog dialog = ((AbstractDingAnnotationFactory<?>) annotationFactory).createAnnotationDialog((DGraphView) view, location);
dialog.setLocation((int) location.getX(), (int) location.getY());
dialog.setVisible(true);
});
}
}
use of org.cytoscape.ding.impl.cyannotator.create.AbstractDingAnnotationFactory in project cytoscape-impl by cytoscape.
the class AddArrowTask method run.
@Override
public void run(TaskMonitor tm) throws Exception {
if (view instanceof DGraphView && annotationFactory instanceof AbstractDingAnnotationFactory) {
SwingUtilities.invokeLater(() -> {
final JDialog dialog = ((AbstractDingAnnotationFactory<?>) annotationFactory).createAnnotationDialog((DGraphView) view, location);
dialog.setLocation((int) location.getX(), (int) location.getY());
dialog.setVisible(true);
});
}
}
Aggregations