Search in sources :

Example 6 with TabbedValuePanel

use of com.revolsys.swing.component.TabbedValuePanel in project com.revolsys.open by revolsys.

the class AbstractLayer method showProperties.

@Override
public void showProperties(final String tabName) {
    final MapPanel map = getMapPanel();
    if (map != null) {
        if (this.exists) {
            if (checkShowProperties()) {
                try {
                    final Window window = SwingUtilities.getWindowAncestor(map);
                    final TabbedValuePanel panel = newPropertiesPanel();
                    panel.setSelectdTab(tabName);
                    panel.showDialog(window);
                    refresh();
                } finally {
                    removeProperty("INTERNAL_PROPERTIES_VISIBLE");
                }
            }
        }
    }
}
Also used : Window(java.awt.Window) MapPanel(com.revolsys.swing.map.MapPanel) TabbedValuePanel(com.revolsys.swing.component.TabbedValuePanel)

Example 7 with TabbedValuePanel

use of com.revolsys.swing.component.TabbedValuePanel in project com.revolsys.open by revolsys.

the class GriddedElevationModelLayer method newPropertiesPanel.

@Override
public TabbedValuePanel newPropertiesPanel() {
    final TabbedValuePanel propertiesPanel = super.newPropertiesPanel();
    newPropertiesPanelStyle(propertiesPanel);
    return propertiesPanel;
}
Also used : TabbedValuePanel(com.revolsys.swing.component.TabbedValuePanel)

Example 8 with TabbedValuePanel

use of com.revolsys.swing.component.TabbedValuePanel in project com.revolsys.open by revolsys.

the class Layer method showRendererProperties.

default void showRendererProperties(final LayerRenderer<?> renderer) {
    final MapPanel map = getMapPanel();
    if (map != null && isExists() && checkShowProperties()) {
        try {
            final Window window = SwingUtilities.getWindowAncestor(map);
            final TabbedValuePanel panel = newPropertiesPanel();
            panel.setSelectdTab("Style");
            final LayerStylePanel stylePanel = panel.getTab("Style");
            if (stylePanel != null) {
                stylePanel.setSelectedRenderer(renderer);
                panel.showDialog(window);
            }
            refresh();
        } finally {
            removeProperty("INTERNAL_PROPERTIES_VISIBLE");
        }
    }
}
Also used : Window(java.awt.Window) MapPanel(com.revolsys.swing.map.MapPanel) TabbedValuePanel(com.revolsys.swing.component.TabbedValuePanel) LayerStylePanel(com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel)

Aggregations

TabbedValuePanel (com.revolsys.swing.component.TabbedValuePanel)8 MapPanel (com.revolsys.swing.map.MapPanel)2 Window (java.awt.Window)2 LayerStylePanel (com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel)1