Interface ILcdSVGShapeWriter

All Known Implementing Classes:
ALcdSVGShapeWriter, TLcdSVGUnStyledShapeWriter

public interface ILcdSVGShapeWriter
This interface is used by the TLcdSVGModelEncoder. It represents the classes that can write elements from the model to a Writer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setTrueSVG(boolean aTrueSVG)
    Sets whether only true SVG shapes are passed on to the writer.
    void
    writeElement(Object aElement, Writer aTarget)
    Writes a given Object to a given Writer.
  • Method Details

    • writeElement

      void writeElement(Object aElement, Writer aTarget) throws IOException
      Writes a given Object to a given Writer.
      Parameters:
      aElement - the object to be written as an SVG element.
      aTarget - a Writer to write to.
      Throws:
      IOException - when writing to aTarget fails.
    • setTrueSVG

      void setTrueSVG(boolean aTrueSVG)
      Sets whether only true SVG shapes are passed on to the writer.
      Parameters:
      aTrueSVG - when set to true only shapes which have an equivalent SVG tag will be written. When set to false additional not svg supported shapes are also written. See ILcdSVGConstants for true SVG shapes.