fi.hut.tml.xsmiles.gui.compatibility
Interface JDKCompatibility

All Known Implementing Classes:
JDK11Compatibility, JDK12Compatibility, JDK14Compatibility

public interface JDKCompatibility

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

Version:
0
Author:
Mikko

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)
           
 

Method Detail

deriveFont

public java.awt.Font deriveFont(java.awt.Font orig,
                                int style,
                                float size)

createTransparentColor

public java.awt.Color createTransparentColor()

isTransparentColor

public boolean isTransparentColor(java.awt.Color col)

drawString

public void drawString(java.lang.String text,
                       java.awt.Font font,
                       java.awt.Graphics g,
                       int x,
                       int y,
                       java.lang.Object attributedString)

setTextAttribute

public java.lang.Object setTextAttribute(java.lang.Object attributedString,
                                         short decoration)

createAttributedString

public java.lang.Object createAttributedString(java.lang.String text,
                                               java.awt.Font font)

setFullScreen

public void setFullScreen(java.awt.Container window,
                          boolean fullscreen)

invokeAndWait

public void invokeAndWait(java.lang.Runnable runnable)
                   throws java.lang.InterruptedException,
                          java.lang.reflect.InvocationTargetException
Throws:
java.lang.InterruptedException
java.lang.reflect.InvocationTargetException


X-Smiles 1.2