Class Utils
java.lang.Object
org.openjump.core.ui.plugin.raster.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyAlternateStyle(Layer layer, String attribute, int interval, int subInterval, Color color1, Color color2) static voidapplyGradualStyle(Layer layer, String attribute, Color startColor, Color endColor) Apply a random generated color set style according to an attribute, defining a start color (lower value) and an end color (upper value)static voidapplyRandomGradualStyle(Layer layer, String attribute) Apply a random generated color set style according to an attributestatic voidzoom(RasterImageLayer rLayer) Zoom to the raster layer
-
Field Details
-
frame
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
zoom
Zoom to the raster layer- Parameters:
rLayer- a RasterImageLayer- Throws:
NoninvertibleTransformException- if a NoninvertibleTransformException occurs
-
applyRandomGradualStyle
-
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 Layerattribute- an attributestartColor- the start ColorendColor- the end Color- Throws:
Exception- if an Exception occurs
-
applyAlternateStyle
-