com.ibm.textlayout
Class Graphics2DConversion

java.lang.Object
  |
  +--com.ibm.textlayout.Graphics2DConversion

public final class Graphics2DConversion
extends java.lang.Object

This class allows JDK 1.1 code to use a "fake" Graphics2D for source-code compatibility with Java2 code. On Java2 it's a trivial class. The JDK 1.1 version of this class does interesting work.


Constructor Summary
Graphics2DConversion()
           
 
Method Summary
static java.lang.Object getColorState(java.awt.Graphics2D g)
          Will return an instance of Paint.
static java.awt.Graphics getGraphics(java.awt.Graphics2D g)
           
static java.awt.Graphics2D getGraphics2D(java.awt.Graphics g)
           
static void restoreColorState(java.awt.Graphics2D g, java.lang.Object state)
          State must be an instance of Paint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graphics2DConversion

public Graphics2DConversion()
Method Detail

getGraphics2D

public static java.awt.Graphics2D getGraphics2D(java.awt.Graphics g)

getGraphics

public static java.awt.Graphics getGraphics(java.awt.Graphics2D g)

getColorState

public static java.lang.Object getColorState(java.awt.Graphics2D g)
Will return an instance of Paint.

restoreColorState

public static void restoreColorState(java.awt.Graphics2D g,
                                     java.lang.Object state)
State must be an instance of Paint.


Copyright (c) 2001 IBM Corporation and others.