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.

用于存储及恢复当前的Graphics2d的各种状态,如:composite,clip shape,paint,stroke,font等等.

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)
          当前的图形环境 (不可为null).
 
Method Summary
 void restoreOldState()
          恢复旧的状态.
 void restoreTransform()
          恢复AffineTransform.
 void saveOldState()
          保存旧的状态.
 
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)
当前的图形环境 (不可为null).

Parameters:
g2 - Graphics2D
Method Detail

saveOldState

public void saveOldState()
保存旧的状态.


restoreOldState

public void restoreOldState()
恢复旧的状态.


restoreTransform

public void restoreTransform()
恢复AffineTransform.