Search in sources :

Example 1 with ComponentAdapter

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);
}
Also used : ComponentAdapter(org.jowidgets.tools.controller.ComponentAdapter)

Example 2 with ComponentAdapter

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);
}
Also used : Dimension(org.jowidgets.common.types.Dimension) ComponentAdapter(org.jowidgets.tools.controller.ComponentAdapter)

Aggregations

ComponentAdapter (org.jowidgets.tools.controller.ComponentAdapter)2 Dimension (org.jowidgets.common.types.Dimension)1