Import GNU Classpath (libgcj-import-20070727).
libjava/ 2007-08-04 Matthias Klose <doko@ubuntu.com> Import GNU Classpath (libgcj-import-20070727). * Regenerate class and header files. * Regenerate auto* files. * include/jvm.h: * jni-libjvm.cc (Jv_JNI_InvokeFunctions): Rename type. * jni.cc (_Jv_JNIFunctions, _Jv_JNI_InvokeFunctions): Likewise. * jni.cc (_Jv_JNI_CallAnyMethodA, _Jv_JNI_CallAnyVoidMethodA, _Jv_JNI_CallMethodA, _Jv_JNI_CallVoidMethodA, _Jv_JNI_CallStaticMethodA, _Jv_JNI_CallStaticVoidMethodA, _Jv_JNI_NewObjectA, _Jv_JNI_SetPrimitiveArrayRegion): Constify jvalue parameter. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise. * java/lang/VMFloat.java (toString, parseFloat): New. * gnu/awt/xlib/XToolkit.java (setAlwaysOnTop, isModalityTypeSupported, isModalExclusionTypeSupported): New (stub only). * gnu/awt/xlib/XCanvasPeer.java (requestFocus): Likewise. * gnu/awt/xlib/XFramePeer.java (updateMinimumSize, updateIconImages, updateFocusableWindowState, setModalBlocked, getBoundsPrivate, setAlwaysOnTop): Likewise. * gnu/awt/xlib/XFontPeer.java (canDisplay): Update signature. * scripts/makemake.tcl: Ignore gnu/javax/sound/sampled/gstreamer, ignore javax.sound.sampled.spi.MixerProvider, ignore .in files. * HACKING: Mention --enable-gstreamer-peer, removal of generated files. libjava/classpath/ 2007-08-04 Matthias Klose <doko@ubuntu.com> * java/util/EnumMap.java (clone): Add cast. From-SVN: r127204
This commit is contained in:
parent
2c3de459b6
commit
f06a83c0b2
522 changed files with 13385 additions and 4867 deletions
|
@ -169,6 +169,31 @@ public class Font implements Serializable
|
|||
*/
|
||||
public static final int LAYOUT_NO_LIMIT_CONTEXT = 4;
|
||||
|
||||
/**
|
||||
* @since 1.6
|
||||
*/
|
||||
public static final String DIALOG = "Dialog";
|
||||
|
||||
/**
|
||||
* @since 1.6
|
||||
*/
|
||||
public static final String DIALOG_INPUT = "DialogInput";
|
||||
|
||||
/**
|
||||
* @since 1.6
|
||||
*/
|
||||
public static final String MONOSPACED = "Monospaced";
|
||||
|
||||
/**
|
||||
* @since 1.6
|
||||
*/
|
||||
public static final String SANS_SERIF = "SansSerif";
|
||||
|
||||
/**
|
||||
* @since 1.6
|
||||
*/
|
||||
public static final String SERIF = "Serif";
|
||||
|
||||
/**
|
||||
* The logical name of this font.
|
||||
*
|
||||
|
@ -330,6 +355,11 @@ public class Font implements Serializable
|
|||
return getFont(propname, (Font) null);
|
||||
}
|
||||
|
||||
protected Font(Font font)
|
||||
{
|
||||
this(font.getName(), font.getAttributes());
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes a new instance of <code>Font</code> with the specified
|
||||
* attributes.
|
||||
|
@ -491,7 +521,12 @@ public class Font implements Serializable
|
|||
*/
|
||||
public boolean canDisplay(char c)
|
||||
{
|
||||
return peer.canDisplay(this, c);
|
||||
return canDisplay((int) c);
|
||||
}
|
||||
|
||||
public boolean canDisplay(int codePoint)
|
||||
{
|
||||
return peer.canDisplay(this, codePoint);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1373,6 +1408,12 @@ public class Font implements Serializable
|
|||
return getLineMetrics(str, 0, str.length() - 1, frc);
|
||||
}
|
||||
|
||||
public boolean hasLayoutAttributes()
|
||||
{
|
||||
// TODO: Implement properly.
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads the normal fields from the stream and then constructs the
|
||||
* peer from the style and size through getPeerFromToolkit().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue