sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 10305 - svn://svn.freehep.org/svn / freehep / branches / vectorgraphics-emfplus / freehep-graphicsio-emf / src / main / java / org / freehep / graphicsio / emf / gdiplus / FillPath.java
Unified Diff View - FillPath.java
Search for Help
/freehep/branches/vectorgraphics-emfplus/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/gdiplus/FillPath.java @ revision 10304
/freehep/branches/vectorgraphics-emfplus/freehep-graphicsio-emf/src/main/java/org/freehep/graphicsio/emf/gdiplus/FillPath.java @ revision 10305
@@ -6,7 +6,6 @@ import org.freehep.graphicsio.emf.EMFInputStream; import org.freehep.graphicsio.emf.EMFOutputStream; -import org.freehep.graphicsio.emf.EMFTag; /**  * The FillPath metafile record represents a call to Graphics.FillPath, @@ -17,7 +16,7 @@  */ public class FillPath extends EMFPlusTag { - private Color color = null; + private Color brushColor = null;  private int brushIndex;  public FillPath() { @@ -30,25 +29,27 @@   this.brushIndex = brushIndex;  } - @Override  public EMFPlusTag read(int tagID, int flags, EMFInputStream emf, int len)    throws IOException {   FillPath tag = new FillPath();   tag.flags = flags;   if ((flags & 0x8000) > 0) { -   tag.color = emf.readCOLOR(); +   tag.brushColor = emf.readCOLOR();   } else {    tag.brushIndex = emf.readUINT();   }   return tag;  } - @Override - public void write(int tagID, EMFOutputStream emf) throws IOException { -  if (color != null) { -   emf.writeColor(color); + public void write(int tagID, int flags, EMFOutputStream emf) throws IOException { +  if (brushColor != null) { +   emf.writeCOLOR(brushColor);   } else {    emf.writeUINT(brushIndex);   }  } + +    public String toString() { +        return super.toString() + "\n " + (brushColor != null ? "brushColor: "+brushColor : "brushIndex: "+brushIndex); +    } }


feed icon

sventon 2.5.1