Codota Logo
ClientRasterLayerInfo.setStyle
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • Kernel (java.awt.image)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now