/** * Constructs a renderable image. * * @param xAxis Dimension to use for <var>x</var> axis. * @param yAxis Dimension to use for <var>y</var> axis. */ public Renderable(final int xAxis, final int yAxis) { super(null, AbstractCoverage.this); this.xAxis = xAxis; this.yAxis = yAxis; final Envelope envelope = getEnvelope(); bounds = new Rectangle2D.Double(envelope.getMinimum(xAxis), envelope.getMinimum(yAxis), envelope.getLength (xAxis), envelope.getLength (yAxis)); }
case LENGTH : return new Double( envelope.getLength (dimension)); case MINIMUM: return getValue(coverage, envelope.getMinimum(dimension)); case MAXIMUM: return getValue(coverage, envelope.getMaximum(dimension)); case UPPER : return new Integer( range.getUpper (dimension)); case RESOLUTION: { return new Double(envelope.getLength(dimension)/range.getLength(dimension));