org.apache.batik.transcoder.wmf.tosvg

Class GdiObject

public class GdiObject extends Object

Represents GDI Objects encountred in WMF Files.
Method Summary
voidclear()
intgetID()
Return the identification of this GdiObject.
ObjectgetObject()
Return the Object associated with this GdiObject.
intgetType()
Return the type of this GdiObject.
booleanisUsed()
Return true if this GdiObject is used.
voidSetup(int _type, Object _obj)
Setup this Object, which means that it is used and associated with an Object.

Method Detail

clear

public void clear()

getID

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

getObject

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

getType

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

isUsed

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

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

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.