org.apache.batik.transcoder.wmf.tosvg
Class GdiObject

java.lang.Object
  extended by org.apache.batik.transcoder.wmf.tosvg.GdiObject

public class GdiObject
extends Object

Represents GDI Objects encountred in WMF Files.


Method Summary
 void clear()
           
 int getID()
          Return the identification of this GdiObject.
 Object getObject()
          Return the Object associated with this GdiObject.
 int getType()
          Return the type of this GdiObject.
 boolean isUsed()
          Return true if this GdiObject is used.
 void Setup(int _type, Object _obj)
          Setup this Object, which means that it is used and associated with an Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clear

public void clear()

Setup

public void Setup(int _type,
                  Object _obj)
Setup this Object, which means that it is used and associated with an Object.

The Object can be any Java Object that is useful for an implementation of AbstractWMFPainter that uses this GdiObject.

For example, if the painter paints in a Java Graphics2D :

Parameters:
_type - the type of this object
_obj - the associated Object

isUsed

public boolean isUsed()
Return true if this GdiObject is used.


getType

public int getType()
Return the type of this GdiObject.


getObject

public Object getObject()
Return the Object associated with this GdiObject.


getID

public int getID()
Return the identification of this GdiObject.



Copyright © 2008 Apache Software Foundation. All Rights Reserved.