public abstract class PatternGenerator extends Object
| Modifier and Type | Method and Description |
|---|---|
abstract GeneratedImage |
generateImage(int width,
int height,
Map<String,String> parameters)
Generate a GeneratedImage with the provided width and height.
|
static BufferedImage |
getBufferedImageFromRaster(WritableRaster r) |
protected double |
getDoubleParameter(String parName,
Map<String,String> parameters,
double defaultValue) |
protected int |
getIntParameter(String parName,
Map<String,String> parameters,
int defaultValue) |
String |
getName()
The name of the pattern.
|
protected String |
getParameter(String parName,
Map<String,String> parameters) |
protected String |
getStringParameter(String parName,
Map<String,String> parameters,
String defaultValue) |
public String getName()
public abstract GeneratedImage generateImage(int width, int height, Map<String,String> parameters)
width - The image widthheight - The imageparameters - The parameters to be used to generate the image.protected double getDoubleParameter(String parName, Map<String,String> parameters, double defaultValue)
protected int getIntParameter(String parName, Map<String,String> parameters, int defaultValue)
protected String getStringParameter(String parName, Map<String,String> parameters, String defaultValue)
public static BufferedImage getBufferedImageFromRaster(WritableRaster r)
Copyright © 2019 LSST. All rights reserved.