link start!
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package org.apache.batik.ext.awt.geom;
|
||||
|
||||
public interface ExtendedPathIterator {
|
||||
public static final int SEG_ARCTO = 4321;
|
||||
public static final int SEG_CLOSE = 4;
|
||||
public static final int SEG_CUBICTO = 3;
|
||||
public static final int SEG_LINETO = 1;
|
||||
public static final int SEG_MOVETO = 0;
|
||||
public static final int SEG_QUADTO = 2;
|
||||
public static final int WIND_EVEN_ODD = 0;
|
||||
public static final int WIND_NON_ZERO = 1;
|
||||
|
||||
int currentSegment();
|
||||
|
||||
int currentSegment(double[] dArr);
|
||||
|
||||
int currentSegment(float[] fArr);
|
||||
|
||||
int getWindingRule();
|
||||
|
||||
boolean isDone();
|
||||
|
||||
void next();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.batik.ext.awt.geom;
|
||||
|
||||
import java.awt.Shape;
|
||||
|
||||
public interface ExtendedShape extends Shape {
|
||||
ExtendedPathIterator getExtendedPathIterator();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package org.apache.batik.ext.awt.image;
|
||||
|
||||
public interface ComponentTransferFunction {
|
||||
public static final int DISCRETE = 2;
|
||||
public static final int GAMMA = 4;
|
||||
public static final int IDENTITY = 0;
|
||||
public static final int LINEAR = 3;
|
||||
public static final int TABLE = 1;
|
||||
|
||||
float getAmplitude();
|
||||
|
||||
float getExponent();
|
||||
|
||||
float getIntercept();
|
||||
|
||||
float getOffset();
|
||||
|
||||
float getSlope();
|
||||
|
||||
float[] getTableValues();
|
||||
|
||||
int getType();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.apache.batik.ext.awt.image;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
public interface Light {
|
||||
double[] getColor(boolean z);
|
||||
|
||||
void getLight(double d, double d2, double d3, double[] dArr);
|
||||
|
||||
double[][][] getLightMap(double d, double d2, double d3, double d4, int i, int i2, double[][][] dArr);
|
||||
|
||||
double[][] getLightRow(double d, double d2, double d3, int i, double[][] dArr, double[][] dArr2);
|
||||
|
||||
boolean isConstant();
|
||||
|
||||
void setColor(Color color);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.batik.ext.awt.image;
|
||||
|
||||
public interface TransferFunction {
|
||||
byte[] getLookupTable();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.geom.AffineTransform;
|
||||
|
||||
public interface AffineRable extends Filter {
|
||||
AffineTransform getAffine();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
void setAffine(AffineTransform affineTransform);
|
||||
|
||||
void setSource(Filter filter);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.Shape;
|
||||
|
||||
public interface ClipRable extends Filter {
|
||||
Shape getClipPath();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
boolean getUseAntialiasedClip();
|
||||
|
||||
void setClipPath(Shape shape);
|
||||
|
||||
void setSource(Filter filter);
|
||||
|
||||
void setUseAntialiasedClip(boolean z);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
public interface ColorMatrixRable extends FilterColorInterpolation {
|
||||
public static final int TYPE_HUE_ROTATE = 2;
|
||||
public static final int TYPE_LUMINANCE_TO_ALPHA = 3;
|
||||
public static final int TYPE_MATRIX = 0;
|
||||
public static final int TYPE_SATURATE = 1;
|
||||
|
||||
float[][] getMatrix();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
int getType();
|
||||
|
||||
void setSource(Filter filter);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import org.apache.batik.ext.awt.image.ComponentTransferFunction;
|
||||
|
||||
public interface ComponentTransferRable extends FilterColorInterpolation {
|
||||
ComponentTransferFunction getAlphaFunction();
|
||||
|
||||
ComponentTransferFunction getBlueFunction();
|
||||
|
||||
ComponentTransferFunction getGreenFunction();
|
||||
|
||||
ComponentTransferFunction getRedFunction();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
void setAlphaFunction(ComponentTransferFunction componentTransferFunction);
|
||||
|
||||
void setBlueFunction(ComponentTransferFunction componentTransferFunction);
|
||||
|
||||
void setGreenFunction(ComponentTransferFunction componentTransferFunction);
|
||||
|
||||
void setRedFunction(ComponentTransferFunction componentTransferFunction);
|
||||
|
||||
void setSource(Filter filter);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.batik.ext.awt.image.CompositeRule;
|
||||
|
||||
public interface CompositeRable extends FilterColorInterpolation {
|
||||
CompositeRule getCompositeRule();
|
||||
|
||||
void setCompositeRule(CompositeRule compositeRule);
|
||||
|
||||
void setSources(List list);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.Point;
|
||||
import java.awt.image.Kernel;
|
||||
import org.apache.batik.ext.awt.image.PadMode;
|
||||
|
||||
public interface ConvolveMatrixRable extends FilterColorInterpolation {
|
||||
double getBias();
|
||||
|
||||
PadMode getEdgeMode();
|
||||
|
||||
Kernel getKernel();
|
||||
|
||||
double[] getKernelUnitLength();
|
||||
|
||||
boolean getPreserveAlpha();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
Point getTarget();
|
||||
|
||||
void setBias(double d);
|
||||
|
||||
void setEdgeMode(PadMode padMode);
|
||||
|
||||
void setKernel(Kernel kernel);
|
||||
|
||||
void setKernelUnitLength(double[] dArr);
|
||||
|
||||
void setPreserveAlpha(boolean z);
|
||||
|
||||
void setSource(Filter filter);
|
||||
|
||||
void setTarget(Point point);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import org.apache.batik.ext.awt.image.Light;
|
||||
|
||||
public interface DiffuseLightingRable extends FilterColorInterpolation {
|
||||
double getKd();
|
||||
|
||||
double[] getKernelUnitLength();
|
||||
|
||||
Light getLight();
|
||||
|
||||
Rectangle2D getLitRegion();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
double getSurfaceScale();
|
||||
|
||||
void setKd(double d);
|
||||
|
||||
void setKernelUnitLength(double[] dArr);
|
||||
|
||||
void setLight(Light light);
|
||||
|
||||
void setLitRegion(Rectangle2D rectangle2D);
|
||||
|
||||
void setSource(Filter filter);
|
||||
|
||||
void setSurfaceScale(double d);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.batik.ext.awt.image.ARGBChannel;
|
||||
|
||||
public interface DisplacementMapRable extends FilterColorInterpolation {
|
||||
public static final int CHANNEL_A = 4;
|
||||
public static final int CHANNEL_B = 3;
|
||||
public static final int CHANNEL_G = 2;
|
||||
public static final int CHANNEL_R = 1;
|
||||
|
||||
double getScale();
|
||||
|
||||
ARGBChannel getXChannelSelector();
|
||||
|
||||
ARGBChannel getYChannelSelector();
|
||||
|
||||
void setScale(double d);
|
||||
|
||||
void setSources(List list);
|
||||
|
||||
void setXChannelSelector(ARGBChannel aRGBChannel);
|
||||
|
||||
void setYChannelSelector(ARGBChannel aRGBChannel);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.Shape;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import java.awt.image.renderable.RenderableImage;
|
||||
|
||||
public interface Filter extends RenderableImage {
|
||||
Rectangle2D getBounds2D();
|
||||
|
||||
Shape getDependencyRegion(int i, Rectangle2D rectangle2D);
|
||||
|
||||
Shape getDirtyRegion(int i, Rectangle2D rectangle2D);
|
||||
|
||||
long getTimeStamp();
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.geom.Rectangle2D;
|
||||
|
||||
public interface FilterChainRable extends Filter {
|
||||
Rectangle2D getFilterRegion();
|
||||
|
||||
int getFilterResolutionX();
|
||||
|
||||
int getFilterResolutionY();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
void setFilterRegion(Rectangle2D rectangle2D);
|
||||
|
||||
void setFilterResolutionX(int i);
|
||||
|
||||
void setFilterResolutionY(int i);
|
||||
|
||||
void setSource(Filter filter);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.color.ColorSpace;
|
||||
|
||||
public interface FilterColorInterpolation extends Filter {
|
||||
ColorSpace getOperationColorSpace();
|
||||
|
||||
boolean isColorSpaceLinear();
|
||||
|
||||
void setColorSpaceLinear(boolean z);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
public interface FilterResRable extends Filter {
|
||||
int getFilterResolutionX();
|
||||
|
||||
int getFilterResolutionY();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
void setFilterResolutionX(int i);
|
||||
|
||||
void setFilterResolutionY(int i);
|
||||
|
||||
void setSource(Filter filter);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.Paint;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
|
||||
public interface FloodRable extends Filter {
|
||||
Paint getFloodPaint();
|
||||
|
||||
Rectangle2D getFloodRegion();
|
||||
|
||||
void setFloodPaint(Paint paint);
|
||||
|
||||
void setFloodRegion(Rectangle2D rectangle2D);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
public interface GaussianBlurRable extends FilterColorInterpolation {
|
||||
Filter getSource();
|
||||
|
||||
double getStdDeviationX();
|
||||
|
||||
double getStdDeviationY();
|
||||
|
||||
void setSource(Filter filter);
|
||||
|
||||
void setStdDeviationX(double d);
|
||||
|
||||
void setStdDeviationY(double d);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
public interface MorphologyRable extends Filter {
|
||||
boolean getDoDilation();
|
||||
|
||||
double getRadiusX();
|
||||
|
||||
double getRadiusY();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
void setDoDilation(boolean z);
|
||||
|
||||
void setRadiusX(double d);
|
||||
|
||||
void setRadiusY(double d);
|
||||
|
||||
void setSource(Filter filter);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
public interface OffsetRable extends Filter {
|
||||
Filter getSource();
|
||||
|
||||
double getXoffset();
|
||||
|
||||
double getYoffset();
|
||||
|
||||
void setSource(Filter filter);
|
||||
|
||||
void setXoffset(double d);
|
||||
|
||||
void setYoffset(double d);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import org.apache.batik.ext.awt.image.PadMode;
|
||||
|
||||
public interface PadRable extends Filter {
|
||||
PadMode getPadMode();
|
||||
|
||||
Rectangle2D getPadRect();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
void setPadMode(PadMode padMode);
|
||||
|
||||
void setPadRect(Rectangle2D rectangle2D);
|
||||
|
||||
void setSource(Filter filter);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.Graphics2D;
|
||||
|
||||
public interface PaintRable {
|
||||
boolean paintRable(Graphics2D graphics2D);
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import org.apache.batik.ext.awt.image.Light;
|
||||
|
||||
public interface SpecularLightingRable extends FilterColorInterpolation {
|
||||
double[] getKernelUnitLength();
|
||||
|
||||
double getKs();
|
||||
|
||||
Light getLight();
|
||||
|
||||
Rectangle2D getLitRegion();
|
||||
|
||||
Filter getSource();
|
||||
|
||||
double getSpecularExponent();
|
||||
|
||||
double getSurfaceScale();
|
||||
|
||||
void setKernelUnitLength(double[] dArr);
|
||||
|
||||
void setKs(double d);
|
||||
|
||||
void setLight(Light light);
|
||||
|
||||
void setLitRegion(Rectangle2D rectangle2D);
|
||||
|
||||
void setSource(Filter filter);
|
||||
|
||||
void setSpecularExponent(double d);
|
||||
|
||||
void setSurfaceScale(double d);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.geom.Rectangle2D;
|
||||
|
||||
public interface TileRable extends FilterColorInterpolation {
|
||||
Filter getSource();
|
||||
|
||||
Rectangle2D getTileRegion();
|
||||
|
||||
Rectangle2D getTiledRegion();
|
||||
|
||||
boolean isOverflow();
|
||||
|
||||
void setOverflow(boolean z);
|
||||
|
||||
void setSource(Filter filter);
|
||||
|
||||
void setTileRegion(Rectangle2D rectangle2D);
|
||||
|
||||
void setTiledRegion(Rectangle2D rectangle2D);
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package org.apache.batik.ext.awt.image.renderable;
|
||||
|
||||
import java.awt.geom.Rectangle2D;
|
||||
|
||||
public interface TurbulenceRable extends FilterColorInterpolation {
|
||||
double getBaseFrequencyX();
|
||||
|
||||
double getBaseFrequencyY();
|
||||
|
||||
int getNumOctaves();
|
||||
|
||||
int getSeed();
|
||||
|
||||
Rectangle2D getTurbulenceRegion();
|
||||
|
||||
boolean isFractalNoise();
|
||||
|
||||
boolean isStitched();
|
||||
|
||||
void setBaseFrequencyX(double d);
|
||||
|
||||
void setBaseFrequencyY(double d);
|
||||
|
||||
void setFractalNoise(boolean z);
|
||||
|
||||
void setNumOctaves(int i);
|
||||
|
||||
void setSeed(int i);
|
||||
|
||||
void setStitched(boolean z);
|
||||
|
||||
void setTurbulenceRegion(Rectangle2D rectangle2D);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.batik.ext.awt.image.rendered;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.awt.Shape;
|
||||
import java.awt.image.RenderedImage;
|
||||
|
||||
public interface CachableRed extends RenderedImage {
|
||||
Rectangle getBounds();
|
||||
|
||||
Shape getDependencyRegion(int i, Rectangle rectangle);
|
||||
|
||||
Shape getDirtyRegion(int i, Rectangle rectangle);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.batik.ext.awt.image.rendered;
|
||||
|
||||
import java.awt.image.Raster;
|
||||
|
||||
public interface TileGenerator {
|
||||
Raster genTile(int i, int i2);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.apache.batik.ext.awt.image.rendered;
|
||||
|
||||
import java.awt.image.Raster;
|
||||
|
||||
public interface TileStore {
|
||||
Raster getTile(int i, int i2);
|
||||
|
||||
Raster getTileNoCompute(int i, int i2);
|
||||
|
||||
void setTile(int i, int i2, Raster raster);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
public interface ErrorConstants {
|
||||
public static final String ERR_STREAM_FORMAT_UNREADABLE = "stream.format.unreadable";
|
||||
public static final String ERR_STREAM_UNREADABLE = "stream.unreadable";
|
||||
public static final String ERR_URL_FORMAT_UNREADABLE = "url.format.unreadable";
|
||||
public static final String ERR_URL_UNINTERPRETABLE = "url.uninterpretable";
|
||||
public static final String ERR_URL_UNREACHABLE = "url.unreachable";
|
||||
public static final String RESOURCES = "org.apache.batik.ext.awt.image.spi.resources.Messages";
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
import java.awt.image.RenderedImage;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
||||
public interface ImageWriter {
|
||||
String getMIMEType();
|
||||
|
||||
void writeImage(RenderedImage renderedImage, OutputStream outputStream) throws IOException;
|
||||
|
||||
void writeImage(RenderedImage renderedImage, OutputStream outputStream, ImageWriterParams imageWriterParams) throws IOException;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RegistryEntry {
|
||||
String getFormatName();
|
||||
|
||||
List getMimeTypes();
|
||||
|
||||
float getPriority();
|
||||
|
||||
List getStandardExtensions();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.StreamCorruptedException;
|
||||
import org.apache.batik.ext.awt.image.renderable.Filter;
|
||||
import org.apache.batik.util.ParsedURL;
|
||||
|
||||
public interface StreamRegistryEntry extends RegistryEntry {
|
||||
int getReadlimit();
|
||||
|
||||
Filter handleStream(InputStream inputStream, ParsedURL parsedURL, boolean z);
|
||||
|
||||
boolean isCompatibleStream(InputStream inputStream) throws StreamCorruptedException;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.apache.batik.ext.awt.image.spi;
|
||||
|
||||
import org.apache.batik.ext.awt.image.renderable.Filter;
|
||||
import org.apache.batik.util.ParsedURL;
|
||||
|
||||
public interface URLRegistryEntry extends RegistryEntry {
|
||||
Filter handleURL(ParsedURL parsedURL, boolean z);
|
||||
|
||||
boolean isCompatibleURL(ParsedURL parsedURL);
|
||||
}
|
||||
Reference in New Issue
Block a user