2003-10-11 Michael Koch <konqueror@gmx.de>
* java/awt/ActiveEvent.java * java/awt/datatransfer/ClipboardOwner.java * java/awt/datatransfer/FlavorMap.java * java/awt/datatransfer/Transferable.java * java/awt/dnd/Autoscroll.java * java/awt/dnd/peer/DragSourceContextPeer.java * java/awt/dnd/peer/DropTargetContextPeer.java * java/awt/dnd/peer/DropTargetPeer.java * java/awt/font/MultipleMaster.java * java/awt/font/OpenType.java * java/awt/im/spi/InputMethodDescriptor.java * java/awt/image/ImageObserver.java * java/awt/image/ImageConsumer.java * java/awt/image/ImageProducer.java * java/awt/image/RGBImageFilter.java * java/awt/image/RasterOp.java * java/awt/image/renderable/RenderableImage.java From-SVN: r72341
This commit is contained in:
parent
b46f35f3a8
commit
00f4a3fb56
18 changed files with 119 additions and 92 deletions
|
@ -1,3 +1,23 @@
|
||||||
|
2003-10-11 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
|
* java/awt/ActiveEvent.java
|
||||||
|
* java/awt/datatransfer/ClipboardOwner.java
|
||||||
|
* java/awt/datatransfer/FlavorMap.java
|
||||||
|
* java/awt/datatransfer/Transferable.java
|
||||||
|
* java/awt/dnd/Autoscroll.java
|
||||||
|
* java/awt/dnd/peer/DragSourceContextPeer.java
|
||||||
|
* java/awt/dnd/peer/DropTargetContextPeer.java
|
||||||
|
* java/awt/dnd/peer/DropTargetPeer.java
|
||||||
|
* java/awt/font/MultipleMaster.java
|
||||||
|
* java/awt/font/OpenType.java
|
||||||
|
* java/awt/im/spi/InputMethodDescriptor.java
|
||||||
|
* java/awt/image/ImageObserver.java
|
||||||
|
* java/awt/image/ImageConsumer.java
|
||||||
|
* java/awt/image/ImageProducer.java
|
||||||
|
* java/awt/image/RGBImageFilter.java
|
||||||
|
* java/awt/image/RasterOp.java
|
||||||
|
* java/awt/image/renderable/RenderableImage.java
|
||||||
|
|
||||||
2003-10-11 Michael Koch <konqueror@gmx.de>
|
2003-10-11 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* gnu/awt/j2d/DirectRasterGraphics.java,
|
* gnu/awt/j2d/DirectRasterGraphics.java,
|
||||||
|
|
|
@ -57,5 +57,5 @@ public interface ActiveEvent
|
||||||
* Dispatch the event, according to what the event needs done. Invoked
|
* Dispatch the event, according to what the event needs done. Invoked
|
||||||
* automatically if this is placed on the <code>EventDispatchQueue</code>.
|
* automatically if this is placed on the <code>EventDispatchQueue</code>.
|
||||||
*/
|
*/
|
||||||
public void dispatch();
|
void dispatch();
|
||||||
} // interface ActiveEvent
|
} // interface ActiveEvent
|
||||||
|
|
|
@ -39,22 +39,20 @@ exception statement from your version. */
|
||||||
package java.awt.datatransfer;
|
package java.awt.datatransfer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface is for classes that will own a clipboard object.
|
* This interface is for classes that will own a clipboard object.
|
||||||
*
|
*
|
||||||
* @author Aaron M. Renn (arenn@urbanophile.com)
|
* @author Aaron M. Renn (arenn@urbanophile.com)
|
||||||
*/
|
*/
|
||||||
public interface ClipboardOwner
|
public interface ClipboardOwner
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
/**
|
* This method is called to notify this object that it no longer
|
||||||
* This method is called to notify this object that it no longer
|
* has ownership of the specified <code>Clipboard</code>.
|
||||||
* has ownership of the specified <code>Clipboard</code>.
|
*
|
||||||
*
|
* @param clipboard The clipboard for which ownership was lost.
|
||||||
* @param clipboard The clipboard for which ownership was lost.
|
* @param contents The contents of the clipboard which are no longer owned.
|
||||||
* @param contents The contents of the clipboard which are no longer owned.
|
*/
|
||||||
*/
|
void lostOwnership (Clipboard clipboard, Transferable contents);
|
||||||
public abstract void
|
|
||||||
lostOwnership(Clipboard clipboard, Transferable contents);
|
|
||||||
|
|
||||||
} // interface ClipboardOwner
|
} // interface ClipboardOwner
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ public interface FlavorMap
|
||||||
*
|
*
|
||||||
* @return A <code>Map</code> of native data types.
|
* @return A <code>Map</code> of native data types.
|
||||||
*/
|
*/
|
||||||
public abstract Map getNativesForFlavors (DataFlavor[] flavors);
|
Map getNativesForFlavors (DataFlavor[] flavors);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maps the specified native type names to <code>DataFlavor</code>'s.
|
* Maps the specified native type names to <code>DataFlavor</code>'s.
|
||||||
|
@ -71,5 +71,5 @@ public interface FlavorMap
|
||||||
*
|
*
|
||||||
* @return A <code>Map</code> of data flavors.
|
* @return A <code>Map</code> of data flavors.
|
||||||
*/
|
*/
|
||||||
public abstract Map getFlavorsForNatives (String[] natives);
|
Map getFlavorsForNatives (String[] natives);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ public interface Transferable
|
||||||
*
|
*
|
||||||
* @return adA list of data flavors for this data
|
* @return adA list of data flavors for this data
|
||||||
*/
|
*/
|
||||||
public abstract DataFlavor[] getTransferDataFlavors();
|
DataFlavor[] getTransferDataFlavors();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests whether or not this data can be delivered in the specified data
|
* Tests whether or not this data can be delivered in the specified data
|
||||||
|
@ -65,7 +65,7 @@ public interface Transferable
|
||||||
* @param flavor the data flavor to test
|
* @param flavor the data flavor to test
|
||||||
* @return true if the data flavor is supported
|
* @return true if the data flavor is supported
|
||||||
*/
|
*/
|
||||||
public abstract boolean isDataFlavorSupported(DataFlavor flavor);
|
boolean isDataFlavorSupported(DataFlavor flavor);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the data in the specified <code>DataFlavor</code>.
|
* Returns the data in the specified <code>DataFlavor</code>.
|
||||||
|
@ -76,6 +76,8 @@ public interface Transferable
|
||||||
* @throws IOException if the data is not available
|
* @throws IOException if the data is not available
|
||||||
* @see DataFlavor#getRepresentationClass
|
* @see DataFlavor#getRepresentationClass
|
||||||
*/
|
*/
|
||||||
public abstract Object getTransferData(DataFlavor flavor)
|
Object getTransferData(DataFlavor flavor)
|
||||||
throws UnsupportedFlavorException, IOException;
|
throws UnsupportedFlavorException, IOException;
|
||||||
|
|
||||||
} // interface Transferable
|
} // interface Transferable
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ public interface Autoscroll
|
||||||
* This method returns the Insets describing the autoscrolling region or
|
* This method returns the Insets describing the autoscrolling region or
|
||||||
* border relative to the geometry of the implementing Component
|
* border relative to the geometry of the implementing Component
|
||||||
*/
|
*/
|
||||||
public Insets getAutoscrollInsets ();
|
Insets getAutoscrollInsets ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notify the Component to autoscroll
|
* Notify the Component to autoscroll
|
||||||
|
@ -63,5 +63,7 @@ public interface Autoscroll
|
||||||
* @param location A Point indicating the location of the cursor that
|
* @param location A Point indicating the location of the cursor that
|
||||||
* triggered this operation
|
* triggered this operation
|
||||||
*/
|
*/
|
||||||
public void autoscroll (Point location);
|
void autoscroll (Point location);
|
||||||
|
|
||||||
} // interface Autoscroll
|
} // interface Autoscroll
|
||||||
|
|
||||||
|
|
|
@ -49,9 +49,9 @@ import java.awt.dnd.InvalidDnDOperationException;
|
||||||
*/
|
*/
|
||||||
public interface DragSourceContextPeer
|
public interface DragSourceContextPeer
|
||||||
{
|
{
|
||||||
public void startDrag(DragSourceContext context, Cursor c, Image i, Point p)
|
void startDrag(DragSourceContext context, Cursor c, Image i, Point p)
|
||||||
throws InvalidDnDOperationException;
|
throws InvalidDnDOperationException;
|
||||||
public Cursor getCursor();
|
Cursor getCursor();
|
||||||
public void setCursor(Cursor c) throws InvalidDnDOperationException;
|
void setCursor(Cursor c) throws InvalidDnDOperationException;
|
||||||
public void transferablesFlavorsChanged();
|
void transferablesFlavorsChanged();
|
||||||
} // interface DragSourceContextPeer
|
} // interface DragSourceContextPeer
|
||||||
|
|
|
@ -53,15 +53,15 @@ import java.awt.dnd.InvalidDnDOperationException;
|
||||||
*/
|
*/
|
||||||
public interface DropTargetContextPeer
|
public interface DropTargetContextPeer
|
||||||
{
|
{
|
||||||
public void setTargetActions(int actions);
|
void setTargetActions(int actions);
|
||||||
public int getTargetActions();
|
int getTargetActions();
|
||||||
public DropTarget getDropTarget();
|
DropTarget getDropTarget();
|
||||||
public DataFlavor[] getTransferDataFlavors();
|
DataFlavor[] getTransferDataFlavors();
|
||||||
public Transferable getTransferable() throws InvalidDnDOperationException;
|
Transferable getTransferable() throws InvalidDnDOperationException;
|
||||||
public boolean isTransferableJVMLocal();
|
boolean isTransferableJVMLocal();
|
||||||
public void acceptDrag(int dragAction);
|
void acceptDrag(int dragAction);
|
||||||
public void rejectDrag();
|
void rejectDrag();
|
||||||
public void acceptDrop(int dropAction);
|
void acceptDrop(int dropAction);
|
||||||
public void rejectDrop();
|
void rejectDrop();
|
||||||
public void dropComplete(boolean success);
|
void dropComplete(boolean success);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,6 @@ import java.awt.dnd.DropTarget;
|
||||||
*/
|
*/
|
||||||
public interface DropTargetPeer
|
public interface DropTargetPeer
|
||||||
{
|
{
|
||||||
public void addDropTarget (DropTarget target);
|
void addDropTarget (DropTarget target);
|
||||||
public void removeDropTarget (DropTarget target);
|
void removeDropTarget (DropTarget target);
|
||||||
} // interface DropTargetContextPeer
|
} // interface DropTargetContextPeer
|
||||||
|
|
|
@ -45,17 +45,17 @@ import java.awt.Font;
|
||||||
*/
|
*/
|
||||||
public interface MultipleMaster
|
public interface MultipleMaster
|
||||||
{
|
{
|
||||||
public Font deriveMMFont (float[] axes);
|
Font deriveMMFont (float[] axes);
|
||||||
|
|
||||||
public Font deriveMMFont (float[] glyphWidths, float avgStemWidth,
|
Font deriveMMFont (float[] glyphWidths, float avgStemWidth,
|
||||||
float typicalCapHeight, float typicalXHeight,
|
float typicalCapHeight, float typicalXHeight,
|
||||||
float italicAngle);
|
float italicAngle);
|
||||||
|
|
||||||
public float[] getDesignAxisDefaults ();
|
float[] getDesignAxisDefaults();
|
||||||
|
|
||||||
public String[] getDesignAxisNames ();
|
String[] getDesignAxisNames();
|
||||||
|
|
||||||
public float[] getDesignAxisRanges ();
|
float[] getDesignAxisRanges();
|
||||||
|
|
||||||
public int getNumDesignAxes ();
|
int getNumDesignAxes();
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,17 +95,17 @@ public interface OpenType
|
||||||
int TAG_VHEA = 1986553185;
|
int TAG_VHEA = 1986553185;
|
||||||
int TAG_VMTX = 1986884728;
|
int TAG_VMTX = 1986884728;
|
||||||
|
|
||||||
public byte[] getFontTable (int sfntTag);
|
byte[] getFontTable (int sfntTag);
|
||||||
|
|
||||||
public byte[] getFontTable (int sfntTag, int offset, int count);
|
byte[] getFontTable (int sfntTag, int offset, int count);
|
||||||
|
|
||||||
public byte[] getFontTable (String strSfntTag);
|
byte[] getFontTable (String strSfntTag);
|
||||||
|
|
||||||
public byte[] getFontTable (String strSfntTag, int offset, int count);
|
byte[] getFontTable (String strSfntTag, int offset, int count);
|
||||||
|
|
||||||
public int getFontTableSize (int sfntTag);
|
int getFontTableSize (int sfntTag);
|
||||||
|
|
||||||
public int getFontTableSize (String strSfntTag);
|
int getFontTableSize (String strSfntTag);
|
||||||
|
|
||||||
public int getVersion ();
|
int getVersion ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,8 +88,8 @@ public interface InputMethodDescriptor
|
||||||
* @param displayLanguage the language of the result
|
* @param displayLanguage the language of the result
|
||||||
* @return the name of the input method when using the given inputLocale
|
* @return the name of the input method when using the given inputLocale
|
||||||
*/
|
*/
|
||||||
public String getInputMethodDisplayName(Locale inputLocale,
|
String getInputMethodDisplayName(Locale inputLocale,
|
||||||
Locale displayLanguage);
|
Locale displayLanguage);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a 16x16 icon for the input locale. The inputLocale parameter
|
* Returns a 16x16 icon for the input locale. The inputLocale parameter
|
||||||
|
@ -99,7 +99,7 @@ public interface InputMethodDescriptor
|
||||||
* @param inputLocale the locale of the input method, or null
|
* @param inputLocale the locale of the input method, or null
|
||||||
* @return a 16x16 icon for the input method when using the given inputLocale
|
* @return a 16x16 icon for the input method when using the given inputLocale
|
||||||
*/
|
*/
|
||||||
public Image getInputMethodIcon(Locale inputLocale);
|
Image getInputMethodIcon(Locale inputLocale);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new instance of the input method.
|
* Creates a new instance of the input method.
|
||||||
|
@ -107,5 +107,7 @@ public interface InputMethodDescriptor
|
||||||
* @return the newly created input method
|
* @return the newly created input method
|
||||||
* @throws Exception if anything goes wrong
|
* @throws Exception if anything goes wrong
|
||||||
*/
|
*/
|
||||||
public InputMethod createInputMethod() throws Exception;
|
InputMethod createInputMethod() throws Exception;
|
||||||
|
|
||||||
} // interface InputMethodDescriptor
|
} // interface InputMethodDescriptor
|
||||||
|
|
||||||
|
|
|
@ -54,21 +54,21 @@ public interface ImageConsumer
|
||||||
*
|
*
|
||||||
* @see #setHints
|
* @see #setHints
|
||||||
*/
|
*/
|
||||||
public static final int RANDOMPIXELORDER = 1;
|
int RANDOMPIXELORDER = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The pixel order is top-down, left-right.
|
* The pixel order is top-down, left-right.
|
||||||
*
|
*
|
||||||
* @see #setHints
|
* @see #setHints
|
||||||
*/
|
*/
|
||||||
public static final int TOPDOWNLEFTRIGHT = 2;
|
int TOPDOWNLEFTRIGHT = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The pixel order is in multiples of complete scanlines.
|
* The pixel order is in multiples of complete scanlines.
|
||||||
*
|
*
|
||||||
* @see #setHints
|
* @see #setHints
|
||||||
*/
|
*/
|
||||||
public static final int COMPLETESCANLINES = 4;
|
int COMPLETESCANLINES = 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The pixels will be delivered in a single pass. There is at
|
* The pixels will be delivered in a single pass. There is at
|
||||||
|
@ -77,7 +77,7 @@ public interface ImageConsumer
|
||||||
* @see #setHints
|
* @see #setHints
|
||||||
* @see #setPixels
|
* @see #setPixels
|
||||||
*/
|
*/
|
||||||
public static final int SINGLEPASS = 8;
|
int SINGLEPASS = 8;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The pixels will be delivered with multiple calls to
|
* The pixels will be delivered with multiple calls to
|
||||||
|
@ -91,35 +91,35 @@ public interface ImageConsumer
|
||||||
* @see #setHints
|
* @see #setHints
|
||||||
* @see #imageComplete
|
* @see #imageComplete
|
||||||
*/
|
*/
|
||||||
public static final int SINGLEFRAME = 16;
|
int SINGLEFRAME = 16;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates an error occurred while producing an image.
|
* Indicates an error occurred while producing an image.
|
||||||
*
|
*
|
||||||
* @see #imageComplete
|
* @see #imageComplete
|
||||||
*/
|
*/
|
||||||
public static final int IMAGEERROR = 1;
|
int IMAGEERROR = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A single frame is complete but more will follow.
|
* A single frame is complete but more will follow.
|
||||||
*
|
*
|
||||||
* @see #imageComplete
|
* @see #imageComplete
|
||||||
*/
|
*/
|
||||||
public static final int SINGLEFRAMEDONE = 2;
|
int SINGLEFRAMEDONE = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The image is complete and no more pixels or frames will follow.
|
* The image is complete and no more pixels or frames will follow.
|
||||||
*
|
*
|
||||||
* @see #imageComplete
|
* @see #imageComplete
|
||||||
*/
|
*/
|
||||||
public static final int STATICIMAGEDONE = 3;
|
int STATICIMAGEDONE = 3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Production of the image has been aborted.
|
* Production of the image has been aborted.
|
||||||
*
|
*
|
||||||
* @see #imageComplete
|
* @see #imageComplete
|
||||||
*/
|
*/
|
||||||
public static final int IMAGEABORTED = 4;
|
int IMAGEABORTED = 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An <code>ImageProducer</code> indicates the size of the image
|
* An <code>ImageProducer</code> indicates the size of the image
|
||||||
|
@ -128,7 +128,7 @@ public interface ImageConsumer
|
||||||
* @param width the width of the image
|
* @param width the width of the image
|
||||||
* @param height the height of the image
|
* @param height the height of the image
|
||||||
*/
|
*/
|
||||||
public abstract void setDimensions(int width, int height);
|
void setDimensions(int width, int height);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An <code>ImageProducer</code> can set a list of properties
|
* An <code>ImageProducer</code> can set a list of properties
|
||||||
|
@ -136,7 +136,7 @@ public interface ImageConsumer
|
||||||
*
|
*
|
||||||
* @param props the list of properties associated with this image
|
* @param props the list of properties associated with this image
|
||||||
*/
|
*/
|
||||||
public abstract void setProperties(Hashtable props);
|
void setProperties(Hashtable props);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This <code>ColorModel</code> should indicate the model used by
|
* This <code>ColorModel</code> should indicate the model used by
|
||||||
|
@ -147,7 +147,7 @@ public interface ImageConsumer
|
||||||
* @param model the color model to be used most often by setPixels
|
* @param model the color model to be used most often by setPixels
|
||||||
* @see ColorModel
|
* @see ColorModel
|
||||||
*/
|
*/
|
||||||
public abstract void setColorModel(ColorModel model);
|
void setColorModel(ColorModel model);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The <code>ImageProducer</code> should call this method with a
|
* The <code>ImageProducer</code> should call this method with a
|
||||||
|
@ -157,14 +157,14 @@ public interface ImageConsumer
|
||||||
*
|
*
|
||||||
* @param flags a bit mask of hints
|
* @param flags a bit mask of hints
|
||||||
*/
|
*/
|
||||||
public abstract void setHints(int flags);
|
void setHints(int flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function delivers a rectangle of pixels where any
|
* This function delivers a rectangle of pixels where any
|
||||||
* pixel(m,n) is stored in the array as a <code>byte</code> at
|
* pixel(m,n) is stored in the array as a <code>byte</code> at
|
||||||
* index (n * scansize + m + offset).
|
* index (n * scansize + m + offset).
|
||||||
*/
|
*/
|
||||||
public abstract void setPixels(int x, int y, int w, int h,
|
void setPixels(int x, int y, int w, int h,
|
||||||
ColorModel model, byte[] pixels, int offset, int scansize);
|
ColorModel model, byte[] pixels, int offset, int scansize);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -172,7 +172,7 @@ public interface ImageConsumer
|
||||||
* pixel(m,n) is stored in the array as an <code>int</code> at
|
* pixel(m,n) is stored in the array as an <code>int</code> at
|
||||||
* index (n * scansize + m + offset).
|
* index (n * scansize + m + offset).
|
||||||
*/
|
*/
|
||||||
public abstract void setPixels(int x, int y, int w, int h,
|
void setPixels(int x, int y, int w, int h,
|
||||||
ColorModel model, int[] pixels, int offset, int scansize);
|
ColorModel model, int[] pixels, int offset, int scansize);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -181,6 +181,6 @@ public interface ImageConsumer
|
||||||
* also used to indicate an error in loading or producing the
|
* also used to indicate an error in loading or producing the
|
||||||
* image.
|
* image.
|
||||||
*/
|
*/
|
||||||
public abstract void imageComplete(int status);
|
void imageComplete(int status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ public interface ImageObserver
|
||||||
*
|
*
|
||||||
* @see #imageUpdate
|
* @see #imageUpdate
|
||||||
*/
|
*/
|
||||||
public static final int WIDTH = 1;
|
int WIDTH = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The height of the image has been provided as the
|
* The height of the image has been provided as the
|
||||||
|
@ -64,7 +64,7 @@ public interface ImageObserver
|
||||||
*
|
*
|
||||||
* @see #imageUpdate
|
* @see #imageUpdate
|
||||||
*/
|
*/
|
||||||
public static final int HEIGHT = 2;
|
int HEIGHT = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The properties of the image have been provided.
|
* The properties of the image have been provided.
|
||||||
|
@ -72,7 +72,7 @@ public interface ImageObserver
|
||||||
* @see #imageUpdate
|
* @see #imageUpdate
|
||||||
* @see java.awt.Image#getProperty (java.lang.String, java.awt.image.ImageObserver)
|
* @see java.awt.Image#getProperty (java.lang.String, java.awt.image.ImageObserver)
|
||||||
*/
|
*/
|
||||||
public static final int PROPERTIES = 4;
|
int PROPERTIES = 4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* More pixels are now available for drawing a scaled variation of
|
* More pixels are now available for drawing a scaled variation of
|
||||||
|
@ -80,7 +80,7 @@ public interface ImageObserver
|
||||||
*
|
*
|
||||||
* @see #imageUpdate
|
* @see #imageUpdate
|
||||||
*/
|
*/
|
||||||
public static final int SOMEBITS = 8;
|
int SOMEBITS = 8;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All the pixels needed to draw a complete frame of a multi-frame
|
* All the pixels needed to draw a complete frame of a multi-frame
|
||||||
|
@ -88,28 +88,28 @@ public interface ImageObserver
|
||||||
*
|
*
|
||||||
* @see #imageUpdate
|
* @see #imageUpdate
|
||||||
*/
|
*/
|
||||||
public static final int FRAMEBITS = 16;
|
int FRAMEBITS = 16;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An image with a single frame, a static image, is complete.
|
* An image with a single frame, a static image, is complete.
|
||||||
*
|
*
|
||||||
* @see #imageUpdate
|
* @see #imageUpdate
|
||||||
*/
|
*/
|
||||||
public static final int ALLBITS = 32;
|
int ALLBITS = 32;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An error was encountered while producing the image.
|
* An error was encountered while producing the image.
|
||||||
*
|
*
|
||||||
* @see #imageUpdate
|
* @see #imageUpdate
|
||||||
*/
|
*/
|
||||||
public static final int ERROR = 64;
|
int ERROR = 64;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Production of the image was aborted.
|
* Production of the image was aborted.
|
||||||
*
|
*
|
||||||
* @see #imageUpdate
|
* @see #imageUpdate
|
||||||
*/
|
*/
|
||||||
public static final int ABORT = 128;
|
int ABORT = 128;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a callback method for an asynchronous image producer to
|
* This is a callback method for an asynchronous image producer to
|
||||||
|
@ -124,6 +124,6 @@ public interface ImageObserver
|
||||||
*
|
*
|
||||||
* @see java.awt.Image
|
* @see java.awt.Image
|
||||||
*/
|
*/
|
||||||
public abstract boolean imageUpdate(Image image, int flags, int x,
|
boolean imageUpdate(Image image, int flags, int x,
|
||||||
int y, int width, int height);
|
int y, int width, int height);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,19 +53,19 @@ public interface ImageProducer
|
||||||
* Used to register an <code>ImageConsumer</code> with this
|
* Used to register an <code>ImageConsumer</code> with this
|
||||||
* <code>ImageProducer</code>.
|
* <code>ImageProducer</code>.
|
||||||
*/
|
*/
|
||||||
public abstract void addConsumer(ImageConsumer ic);
|
void addConsumer(ImageConsumer ic);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to determine if the given <code>ImageConsumer</code> is
|
* Used to determine if the given <code>ImageConsumer</code> is
|
||||||
* already registered with this <code>ImageProducer</code>.
|
* already registered with this <code>ImageProducer</code>.
|
||||||
*/
|
*/
|
||||||
public abstract boolean isConsumer(ImageConsumer ic);
|
boolean isConsumer(ImageConsumer ic);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to remove an <code>ImageConsumer</code> from the list of
|
* Used to remove an <code>ImageConsumer</code> from the list of
|
||||||
* registered consumers for this <code>ImageProducer</code>.
|
* registered consumers for this <code>ImageProducer</code>.
|
||||||
*/
|
*/
|
||||||
public abstract void removeConsumer(ImageConsumer ic);
|
void removeConsumer(ImageConsumer ic);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to register an <code>ImageConsumer</code> with this
|
* Used to register an <code>ImageConsumer</code> with this
|
||||||
|
@ -73,13 +73,13 @@ public interface ImageProducer
|
||||||
* reconstruction of the image data to be delivered to all
|
* reconstruction of the image data to be delivered to all
|
||||||
* registered consumers.
|
* registered consumers.
|
||||||
*/
|
*/
|
||||||
public abstract void startProduction(ImageConsumer ic);
|
void startProduction(ImageConsumer ic);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to register an <code>ImageConsumer</code> with this
|
* Used to register an <code>ImageConsumer</code> with this
|
||||||
* <code>ImageProducer</code> and then request that this producer
|
* <code>ImageProducer</code> and then request that this producer
|
||||||
* resend the image data in the order top-down, left-right.
|
* resend the image data in the order top-down, left-right.
|
||||||
*/
|
*/
|
||||||
public abstract void requestTopDownLeftRightResend(ImageConsumer ic);
|
void requestTopDownLeftRightResend(ImageConsumer ic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -149,7 +149,7 @@ public abstract class RGBImageFilter extends ImageFilter
|
||||||
int off,
|
int off,
|
||||||
int scansize)
|
int scansize)
|
||||||
{
|
{
|
||||||
int xp, yp, i;
|
int xp, yp;
|
||||||
|
|
||||||
for( xp = x; xp < ( x + w); xp++ )
|
for( xp = x; xp < ( x + w); xp++ )
|
||||||
for( yp = y; yp < (y + h); yp++ )
|
for( yp = y; yp < (y + h); yp++ )
|
||||||
|
@ -212,7 +212,7 @@ public abstract class RGBImageFilter extends ImageFilter
|
||||||
private void convertColorModelToDefault( int x, int y, int w, int h,
|
private void convertColorModelToDefault( int x, int y, int w, int h,
|
||||||
ColorModel model, int pixels[], int offset, int scansize)
|
ColorModel model, int pixels[], int offset, int scansize)
|
||||||
{
|
{
|
||||||
int xp, yp, i;
|
int xp, yp;
|
||||||
|
|
||||||
for( xp = x; xp < ( x + w); xp++ )
|
for( xp = x; xp < ( x + w); xp++ )
|
||||||
for( yp = y; yp < (y + h); yp++ )
|
for( yp = y; yp < (y + h); yp++ )
|
||||||
|
|
|
@ -50,6 +50,6 @@ public interface RasterOp {
|
||||||
|
|
||||||
Point2D getPoint2D(Point2D srcPoint, Point2D destPoint);
|
Point2D getPoint2D(Point2D srcPoint, Point2D destPoint);
|
||||||
|
|
||||||
public RenderingHints getRenderingHints();
|
RenderingHints getRenderingHints();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,8 @@ import java.util.Vector;
|
||||||
|
|
||||||
public interface RenderableImage
|
public interface RenderableImage
|
||||||
{
|
{
|
||||||
static final String HINTS_OBSERVED = "HINTS_OBSERVED";
|
String HINTS_OBSERVED = "HINTS_OBSERVED";
|
||||||
|
|
||||||
Vector getSources();
|
Vector getSources();
|
||||||
Object getProperty(String name);
|
Object getProperty(String name);
|
||||||
String[] getPropertyNames();
|
String[] getPropertyNames();
|
||||||
|
@ -56,4 +57,6 @@ public interface RenderableImage
|
||||||
RenderedImage createScaledRendering(int w, int h, RenderingHints hints);
|
RenderedImage createScaledRendering(int w, int h, RenderingHints hints);
|
||||||
RenderedImage createDefaultRendering();
|
RenderedImage createDefaultRendering();
|
||||||
RenderedImage createRendering(RenderContext context);
|
RenderedImage createRendering(RenderContext context);
|
||||||
|
|
||||||
} // interface RenderableImage
|
} // interface RenderableImage
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue