fi.hut.tml.xsmiles.gui.compatibility.jdk11
Class JDK11Compatibility
java.lang.Object
fi.hut.tml.xsmiles.gui.compatibility.jdk11.JDK11Compatibility
- All Implemented Interfaces:
- JDKCompatibility
- public class JDK11Compatibility
- extends java.lang.Object
- implements JDKCompatibility
Provides cross-jdk compatibility Issues: such as Font.deriveFont()
- Version:
- 0
- Author:
- Mikko Honkala
|
Method Summary |
java.lang.Object |
createAttributedString(java.lang.String text,
java.awt.Font font)
|
java.awt.Color |
createTransparentColor()
|
java.awt.Font |
deriveFont(java.awt.Font orig,
int style,
float size)
|
void |
drawString(java.lang.String text,
java.awt.Font font,
java.awt.Graphics g,
int x,
int y,
java.lang.Object attributedString)
|
java.awt.Component |
getSVGComponent(MLFC mlfc,
java.net.URL url,
View view)
|
java.awt.Image |
getSVGImage(java.lang.String url)
|
void |
invokeAndWait(java.lang.Runnable runnable)
|
boolean |
isTransparentColor(java.awt.Color col)
|
void |
setFullScreen(java.awt.Container window,
boolean fullscreen)
|
java.lang.Object |
setTextAttribute(java.lang.Object attributedString,
short decoration)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jdk11TransparentColor
protected static java.awt.Color jdk11TransparentColor
JDK11Compatibility
public JDK11Compatibility()
deriveFont
public java.awt.Font deriveFont(java.awt.Font orig,
int style,
float size)
- Specified by:
deriveFont in interface JDKCompatibility
createTransparentColor
public java.awt.Color createTransparentColor()
- Specified by:
createTransparentColor in interface JDKCompatibility
isTransparentColor
public boolean isTransparentColor(java.awt.Color col)
- Specified by:
isTransparentColor in interface JDKCompatibility
drawString
public void drawString(java.lang.String text,
java.awt.Font font,
java.awt.Graphics g,
int x,
int y,
java.lang.Object attributedString)
- Specified by:
drawString in interface JDKCompatibility
setTextAttribute
public java.lang.Object setTextAttribute(java.lang.Object attributedString,
short decoration)
- Specified by:
setTextAttribute in interface JDKCompatibility
createAttributedString
public java.lang.Object createAttributedString(java.lang.String text,
java.awt.Font font)
- Specified by:
createAttributedString in interface JDKCompatibility
setFullScreen
public void setFullScreen(java.awt.Container window,
boolean fullscreen)
- Specified by:
setFullScreen in interface JDKCompatibility
invokeAndWait
public void invokeAndWait(java.lang.Runnable runnable)
throws java.lang.InterruptedException,
java.lang.reflect.InvocationTargetException
- Specified by:
invokeAndWait in interface JDKCompatibility
- Throws:
java.lang.InterruptedException
java.lang.reflect.InvocationTargetException
getSVGImage
public java.awt.Image getSVGImage(java.lang.String url)
getSVGComponent
public java.awt.Component getSVGComponent(MLFC mlfc,
java.net.URL url,
View view)
X-Smiles 1.2