congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ClientRasterLayerInfo.setStyle
Code IndexAdd Tabnine to your IDE (free)

How to use
setStyle
method
in
org.geomajas.configuration.client.ClientRasterLayerInfo

Best Java code snippets using org.geomajas.configuration.client.ClientRasterLayerInfo.setStyle (Showing top 2 results out of 315)

origin: org.geomajas/geomajas-gwt-client-impl

/**
 * Apply a new opacity on the entire raster layer.
 * 
 * @param opacity
 *            The new opacity value. Must be a value between 0 and 1, where 0 means invisible and 1 is totally
 *            visible.
 */
public void setOpacity(double opacity) {
  getLayerInfo().setStyle(Double.toString(opacity));
  eventBus.fireEvent(new LayerStyleChangedEvent(this));
}
origin: org.geomajas/geomajas-project-deskmanager-gwt

private void saved() {
  if (form.validate()) {
    if (layer.getClientLayerInfo() == null) {
      layer.setClientLayerInfo(layer.getReferencedLayerInfo()); // clone??
    }
    ClientLayerInfo cli = layer.getClientLayerInfo();
    cli.setLayerInfo(null);
    cli.setVisible(defaultVisible.getValueAsBoolean());
    cli.setLabel(label.getValueAsString());
    cli.setMinimumScale(SensibleScaleConverter.stringToScale(minScale.getValueAsString()));
    cli.setMaximumScale(SensibleScaleConverter.stringToScale(maxScale.getValueAsString()));
    if (cli instanceof ClientRasterLayerInfo && opacitySlider != null) {
      float opacityValue = opacitySlider.getValue() / 100;
      ((ClientRasterLayerInfo) cli).setStyle(String.valueOf(opacityValue));
    } else if (cli instanceof ClientVectorLayerInfo && styleHelper != null) {
      styleHelper.apply((ClientVectorLayerInfo) cli);
    }
    for (WidgetEditorHandler h : widgetEditors) {
      h.save(layer);
    }
    hide();
    destroy();
    if (callback != null) {
      callback.execute(true);
    }
  }
}
org.geomajas.configuration.clientClientRasterLayerInfosetStyle

Javadoc

Sets the opacity of the raster layer.

Popular methods of ClientRasterLayerInfo

  • getLabel
  • getLayerType
  • getStyle
    Returns the opacity of the raster layer.
  • <init>
  • getWidgetInfo
  • setId
  • setLabel
  • setMaxExtent
  • setMaximumScale
  • setMinimumScale
  • setServerLayerId
  • setUserData
  • setServerLayerId,
  • setUserData,
  • setVisible

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JOptionPane (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now