Class Utils

java.lang.Object
org.openjump.core.ui.plugin.raster.Utils

public class Utils extends Object
  • Field Details

  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • zoom

      public static void zoom(RasterImageLayer rLayer) throws NoninvertibleTransformException
      Zoom to the raster layer
      Parameters:
      rLayer - a RasterImageLayer
      Throws:
      NoninvertibleTransformException - if a NoninvertibleTransformException occurs
    • applyRandomGradualStyle

      public static void applyRandomGradualStyle(Layer layer, String attribute) throws Exception
      Apply a random generated color set style according to an attribute
      Parameters:
      layer - to apply the style
      attribute - to use for the color classification
      Throws:
      Exception - if an Exception occurs
    • applyGradualStyle

      public static void applyGradualStyle(Layer layer, String attribute, Color startColor, Color endColor) throws Exception
      Apply a random generated color set style according to an attribute, defining a start color (lower value) and an end color (upper value)
      Parameters:
      layer - a Layer
      attribute - an attribute
      startColor - the start Color
      endColor - the end Color
      Throws:
      Exception - if an Exception occurs
    • applyAlternateStyle

      public static void applyAlternateStyle(Layer layer, String attribute, int interval, int subInterval, Color color1, Color color2) throws Exception
      Throws:
      Exception