ICC_Profile.java: Added missing constants.
2002-11-07 Michael Koch <konqueror@gmx.de> * java/awt/color/ICC_Profile.java: Added missing constants. * java/awt/color/ICC_ColorSpace.java (getMinValue): Added dummy implementation. (getMaxValue): Added dummy implementation. * java/awt/datatransfer/DataFlavor.java (imageFlavor): Added. (isMimeTypeEqual): Must be final. (getDefaultRepresentationClass): Must be non-static. (getDefaultRepresentationClassAsString): Must be non-static. * java/awt/dnd/DragSourceContext.java (dragExit): Corrected argument. (dragDropEnd): Corrected argument. * java/awt/dnd/DragSourceListener.java.java (dragExit): Corrected argument. (dragDropEnd): Corrected argument. * java/awt/font/TextHitInfo.java (toString): Added stubbed implementation. * java/awt/geom/PathIterator.java: The constants must be static. * java/awt/image/VolatileImage.java (IMAGE_INCOMPATIBLE): Fixed typo. * java/awt/image/renderable/RenderableImage.java (HINTS_OBSERVED): Must be static. * java/beans/BeanInfo.java: Constants must be final. From-SVN: r58885
This commit is contained in:
committed by
Michael Koch
parent
d7899d8a40
commit
3bb5c7a169
@@ -87,6 +87,8 @@ public static final DataFlavor stringFlavor;
|
||||
*/
|
||||
public static final DataFlavor javaFileListFlavor;
|
||||
|
||||
public static final DataFlavor imageFlavor;
|
||||
|
||||
/**
|
||||
* This is the MIME type used for transferring a serialized object.
|
||||
* The representation class is the type of object be deserialized.
|
||||
@@ -125,6 +127,10 @@ static
|
||||
"Java File List");
|
||||
|
||||
// javaFileListFlavor.mimeType = "application/x-java-file-list";
|
||||
|
||||
imageFlavor
|
||||
= new DataFlavor(java.awt.Image.class,
|
||||
"Java Image");
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
@@ -498,7 +504,7 @@ setHumanPresentableName(String humanPresentableName)
|
||||
* @return <code>true</code> if the MIME type is equal to this object's
|
||||
* MIME type, <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean
|
||||
public final boolean
|
||||
isMimeTypeEqual(String mimeType)
|
||||
{
|
||||
// FIXME: Need to handle default attributes and parameters
|
||||
@@ -861,7 +867,7 @@ getTextPlainUnicodeFlavor()
|
||||
*
|
||||
* @since 1.3
|
||||
*/
|
||||
public static final Class
|
||||
public final Class
|
||||
getDefaultRepresentationClass()
|
||||
{
|
||||
return(java.io.InputStream.class);
|
||||
@@ -871,7 +877,7 @@ getDefaultRepresentationClass()
|
||||
/**
|
||||
* XXX - Currently returns <code>java.io.InputStream</code>.
|
||||
*/
|
||||
public static final String
|
||||
public final String
|
||||
getDefaultRepresentationClassAsString()
|
||||
{
|
||||
return(getDefaultRepresentationClass().getName());
|
||||
|
||||
Reference in New Issue
Block a user