fi.hut.tml.xsmiles.gui.compatibility.jdk12
Class JDK12Compatibility

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.compatibility.jdk12.JDK12Compatibility
All Implemented Interfaces:
JDKCompatibility
Direct Known Subclasses:
JDK14Compatibility

public class JDK12Compatibility
extends java.lang.Object
implements JDKCompatibility

Provides cross-jdk compatibility Issues: such as Font.deriveFont()

Version:
0
Author:
Mikko

Constructor Summary
JDK12Compatibility()
           
 
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)
           
 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
 

Constructor Detail

JDK12Compatibility

public JDK12Compatibility()
Method Detail

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

createAttributedString

public java.lang.Object createAttributedString(java.lang.String text,
                                               java.awt.Font font)
Specified by:
createAttributedString in interface JDKCompatibility

setTextAttribute

public java.lang.Object setTextAttribute(java.lang.Object attributedString,
                                         short decoration)
Specified by:
setTextAttribute 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


X-Smiles 1.2