public ToggleFitToSizeAction(ClusterMap map) { super("Scale to Fit", ResourceUtil.getImageIcon("info/aduna/clustermap/layout-center.png")); putValue(Action.SHORT_DESCRIPTION, "Scale to fit view if necessary"); this.map = map; }
public ToggleAnimationAction(GraphPanel panel) { super("Animation", ResourceUtil.getImageIcon("info/aduna/clustermap/movie.png")); putValue(Action.SHORT_DESCRIPTION, "Toggle the use of animation"); this.panel = panel; }
public OpenAction(ClassTreeMediator mediator) { super("Open...", ResourceUtil.getImageIcon("info/aduna/clustermap/folder.png")); putValue(Action.SHORT_DESCRIPTION, "Open a classification file"); this.mediator = mediator; }
public SaveAsAction(ClassTree tree) { super("Save as...", ResourceUtil.getImageIcon("info/aduna/clustermap/save-as.png")); putValue(Action.SHORT_DESCRIPTION, "Save a classification file"); this.tree = tree; }
public PreferencesAction(GraphPanel panel) { super("Preferences...", ResourceUtil.getImageIcon("info/aduna/clustermap/preferences.png")); putValue(Action.SHORT_DESCRIPTION, "View/Modify preferences"); this.panel = panel; }
@Override protected JPanel createPanel() { label = createLabel("Initializing..."); label.setIcon(ResourceUtil.getImageIcon("info/aduna/clustermap/export/exporting.png")); JPanel result = new JPanel(); result.setLayout(new GridBagLayout()); GridBagUtil.constrain(result, label, 0, 0, 1, 1, GridBagConstraints.NONE, GridBagConstraints.CENTER, 1, 0, 0, 0, 0, 0); return result; }
@Override protected JPanel createPanel() { JLabel label = createLabel("The Cluster Map has been successfully exported."); label.setIcon(ResourceUtil.getImageIcon("info/aduna/clustermap/export/finished.png")); JPanel result = new JPanel(); result.setLayout(new GridBagLayout()); GridBagUtil.constrain(result, label, 0, 0, 1, 1, GridBagConstraints.NONE, GridBagConstraints.CENTER, 1, 1, 0, 0, 0, 0); return result; }
private JRadioButton addOption(String text, String imageResource, ButtonGroup group, int index, JPanel panel) { JLabel imageLabel = new JLabel(ResourceUtil.getImageIcon(imageResource)); JRadioButton button = createRadioButton(text); group.add(button); button.addActionListener(contentChangeActionListener); GridBagUtil.constrain(panel, imageLabel, 0, index, 1, 1, GridBagConstraints.NONE, GridBagConstraints.WEST, 0, 0, 5, 20, 0, 0); GridBagUtil.constrain(panel, button, 1, index, 1, 1, GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST, 1, 0, 5, 20, 0, 0); return button; }
protected JButton createImageButton(String location) { SmallButton button = new SmallButton(); button.setIcon(ResourceUtil.getImageIcon(location)); return button; }
+ "All information you provide us will be treated confidentially.</html>"; ImageIcon icon = ResourceUtil.getImageIcon("info/aduna/swing/warning.png"); arrowsUpIcon = ResourceUtil.getImageIcon("info/aduna/swing/arrows-up.png"); arrowsDownIcon = ResourceUtil.getImageIcon("info/aduna/swing/arrows-down.png");
public UpdateLayoutAction(ClusterMap map) { super("Update Layout", ResourceUtil.getImageIcon("info/aduna/clustermap/refresh.png")); putValue(Action.SHORT_DESCRIPTION, "Update the cluster map layout"); this.map = map; map.addClusterMapListener(this); updateEnabledState(map); }
treeUI.setCollapsedIcon(ResourceUtil.getImageIcon("info/aduna/swing/config/collapsed.png")); treeUI.setExpandedIcon(ResourceUtil.getImageIcon("info/aduna/swing/config/expanded.png"));
public HistoryForwardAction(RequestHandler handler) { super("Forward", ResourceUtil.getImageIcon("info/aduna/clustermap/arrow-right-green.png")); putValue(Action.SHORT_DESCRIPTION, "Go forward to the next graph"); this.handler = handler; History history = handler.getHistory(); history.addListener(this); updateEnabledState(history); }
public HistoryBackAction(RequestHandler handler) { super("Back", ResourceUtil.getImageIcon("info/aduna/clustermap/arrow-left-green.png")); putValue(Action.SHORT_DESCRIPTION, "Go back to the previous graph"); this.handler = handler; History history = handler.getHistory(); history.addListener(this); updateEnabledState(history); }
public ExportAction(GraphPanel panel) { super("Export Cluster Map...", ResourceUtil.getImageIcon("info/aduna/clustermap/disk-blue.png")); putValue(Action.SHORT_DESCRIPTION, "Export the cluster map"); this.panel = panel; ClusterMap map = panel.getClusterMap(); map.addClusterMapListener(this); updateEnabledState(map); }
public ModelClearAction(GraphPanel panel) { super("Clear", ResourceUtil.getImageIcon("info/aduna/clustermap/garbage.png")); putValue(Action.SHORT_DESCRIPTION, "Clear the graph display"); this.panel = panel; ClusterMap map = panel.getClusterMap(); map.addClusterMapListener(this); updateEnabledState(map); }