org.apache.batik.transcoder.wmf.tosvg
Class 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.
|
public void clear()
public int getID()
Return the identification of this GdiObject.
public Object getObject()
Return the Object associated with this GdiObject.
public int getType()
Return the type of this GdiObject.
public boolean isUsed()
Return true if this GdiObject is used.
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
{@link AbstractWMFPainter} that uses this GdiObject.
For example, if the painter paints in a Java Graphics2D :
- For a PEN or BRUSH GdiObject : the Object will be a Color
- For a FONT GdiObject : the Object can be a Font (in fact, the actual
{@link WMFPainter} implementation uses a more sophisticated kind of Object in order to keep
track of the associated charset)
Parameters: _type the type of this object _obj the associated Object
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.