Class GdiObject
java.lang.Object
org.apache.batik.transcoder.wmf.tosvg.GdiObject
Represents GDI Objects encountred in WMF Files.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intgetID()Return the identification of this GdiObject.Return the Object associated with this GdiObject.intgetType()Return the type of this GdiObject.booleanisUsed()Return true if this GdiObject is used.voidSetup this Object, which means that it is used and associated with an Object.
-
Method Details
-
clear
public void clear() -
Setup
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
AbstractWMFPainterthat 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
WMFPainterimplementation 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
-
isUsed
public boolean isUsed()Return true if this GdiObject is used. -
getType
public int getType()Return the type of this GdiObject. -
getObject
Return the Object associated with this GdiObject. -
getID
public int getID()Return the identification of this GdiObject.
-