com.ijchart.xychart.ui
Class Graphics2DState

java.lang.Object
  extended by com.ijchart.xychart.ui.Graphics2DState

public final class Graphics2DState
extends java.lang.Object

Title: IJChart

Description: a chart library for the Java(tm) platform.

For storage and restoration of the status of the current Graphics2d, such as: composite,clip shape,paint,stroke,font, and so on.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.

Constructor Summary
Graphics2DState(java.awt.Graphics2D g2)
           The current Graphics2D object (null not permitted).
 
Method Summary
 void restoreOldState()
           Restore old state of this Graphics2D.
 void restoreTransform()
           Restore AffineTransform only.
 void saveOldState()
           Save old state of this Graphics2D.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graphics2DState

public Graphics2DState(java.awt.Graphics2D g2)
The current Graphics2D object (null not permitted).

Parameters:
g2 - Graphics2D
Method Detail

saveOldState

public void saveOldState()
Save old state of this Graphics2D.


restoreOldState

public void restoreOldState()
Restore old state of this Graphics2D.


restoreTransform

public void restoreTransform()
Restore AffineTransform only.