org.eclipse.draw2d
Class SWTGraphics.State

java.lang.Object
  extended byorg.eclipse.draw2d.SWTGraphics.State
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
SWTGraphics

protected static class SWTGraphics.State
extends java.lang.Object
implements java.lang.Cloneable

Contains the state variables of this SWTGraphics object


Field Summary
 org.eclipse.swt.graphics.Color bgColor
          Background and foreground colors
 int clipH
          Clip values
 int clipW
          Clip values
 int clipX
          Clip values
 int clipY
          Clip values
 int dx
          Line values
 int dy
          Line values
 org.eclipse.swt.graphics.Color fgColor
          Background and foreground colors
 org.eclipse.swt.graphics.Font font
          Font value
 int lineStyle
          Line values
 int lineWidth
          Line values
 boolean xor
          XOR value
 
Constructor Summary
protected SWTGraphics.State()
           
 
Method Summary
 java.lang.Object clone()
           
 void copyFrom(SWTGraphics.State state)
          Copies all state information from the given State to this State
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bgColor

public org.eclipse.swt.graphics.Color bgColor
Background and foreground colors


fgColor

public org.eclipse.swt.graphics.Color fgColor
Background and foreground colors


clipX

public int clipX
Clip values


clipY

public int clipY
Clip values


clipW

public int clipW
Clip values


clipH

public int clipH
Clip values


font

public org.eclipse.swt.graphics.Font font
Font value


lineWidth

public int lineWidth
Line values


lineStyle

public int lineStyle
Line values


dx

public int dx
Line values


dy

public int dy
Line values


xor

public boolean xor
XOR value

Constructor Detail

SWTGraphics.State

protected SWTGraphics.State()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

copyFrom

public void copyFrom(SWTGraphics.State state)
Copies all state information from the given State to this State

Parameters:
state - The State to copy from