use of org.jowidgets.tools.controller.ComponentAdapter in project jo-client-platform by jo-source.
the class BeanRelationGraphImpl method openUpdateLayoutSettingsDialog.
private void openUpdateLayoutSettingsDialog() {
if (layoutSettingsDialog != null) {
layoutSettingsDialog.setVisible(false);
layoutSettingsDialog.removeAll();
layoutSettingsDialog.dispose();
layoutSettingsDialog = null;
}
layoutSettingsDialog = new GraphSettingsDialog(activeLayout, layoutManager, layoutSettingsDialogPosition);
layoutSettingsDialog.addComponentListener(new ComponentAdapter() {
@Override
public void positionChanged() {
layoutSettingsDialogPosition = layoutSettingsDialog.getPosition();
}
});
layoutSettingsDialog.setVisible(true);
}
use of org.jowidgets.tools.controller.ComponentAdapter in project jo-client-platform by jo-source.
the class BeanRelationGraphImpl method openUpdateEdgeVisibilityDialog.
public void openUpdateEdgeVisibilityDialog(final int filterTabIndex) {
if (settingsDialog != null) {
settingsDialog.setVisible(false);
settingsDialog.removeAll();
settingsDialog.dispose();
settingsDialog = null;
}
updateVisibilityMaps();
settingsDialog = new BeanGraphSettingsDialog(vis, groupVisibilityMap, edgeVisibilityMap, settingsDialogPosition, filterTabIndex, groupColorMap);
settingsDialog.addComponentListener(new ComponentAdapter() {
@Override
public void positionChanged() {
settingsDialogPosition = settingsDialog.getPosition();
}
});
settingsDialog.setMinPackSize(new Dimension(400, 100));
settingsDialog.setMaxPackSize(new Dimension(400, 300));
settingsDialog.setVisible(true);
}
Aggregations