Search in sources :

Example 1 with LayerStylePanel

use of com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel in project com.revolsys.open by revolsys.

the class GriddedElevationModelLayer method newPropertiesPanelStyle.

protected void newPropertiesPanelStyle(final TabbedValuePanel propertiesPanel) {
    if (getRenderer() != null) {
        final LayerStylePanel stylePanel = new LayerStylePanel(this);
        propertiesPanel.addTab("Style", "palette", stylePanel);
    }
}
Also used : LayerStylePanel(com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel)

Example 2 with LayerStylePanel

use of com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel in project com.revolsys.open by revolsys.

the class TiledGriddedElevationModelLayer method newPropertiesPanelStyle.

protected void newPropertiesPanelStyle(final TabbedValuePanel propertiesPanel) {
    if (getRenderer() != null) {
        final LayerStylePanel stylePanel = new LayerStylePanel(this);
        propertiesPanel.addTab("Style", "palette", stylePanel);
    }
}
Also used : LayerStylePanel(com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel)

Example 3 with LayerStylePanel

use of com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel in project com.revolsys.open by revolsys.

the class GridLayer method newPropertiesPanelStyle.

protected void newPropertiesPanelStyle(final TabbedValuePanel propertiesPanel) {
    if (getRenderer() != null) {
        final LayerStylePanel stylePanel = new LayerStylePanel(this);
        propertiesPanel.addTab("Style", "palette", stylePanel);
    }
}
Also used : LayerStylePanel(com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel)

Example 4 with LayerStylePanel

use of com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel 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)

Example 5 with LayerStylePanel

use of com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel in project com.revolsys.open by revolsys.

the class AbstractRecordLayer method newPropertiesPanelStyle.

protected void newPropertiesPanelStyle(final TabbedValuePanel propertiesPanel) {
    if (getRenderer() != null) {
        final LayerStylePanel stylePanel = new LayerStylePanel(this);
        propertiesPanel.addTab("Style", "palette", stylePanel);
    }
}
Also used : LayerStylePanel(com.revolsys.swing.map.layer.record.style.panel.LayerStylePanel)

Aggregations

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