Class AbstractCurveFormatter

  • All Implemented Interfaces:
    EepicConstants, LatexConstants, Formatter, PicObjectConstants

    public class AbstractCurveFormatter
    extends java.lang.Object
    implements Formatter, PicObjectConstants, EepicConstants
    Format an AbstractCurve, or any subclass of it, to the eepic format. Basically, a single \\path macro is used if the curve is a polygon, so that filling works properly. Otherwise we make use of \\qbezier, \\path and/or \\dashline macros.
    Since:
    jpicedt 1.4
    Version:
    $Id: AbstractCurveFormatter.java,v 1.4.2.1 2007/09/02 11:55:12 reynal Exp $

    Author:
    Sylvain Reynal
    • Method Detail

      • format

        public java.lang.String format()
        Returns a string representing this AbstractCurve using \\line and \\qbezier LaTeX macros only. Dashed style is allowed if all segments are straight, since \\qbezier does not support this style.
        Specified by:
        format in interface Formatter
      • formatCurve

        protected java.lang.String formatCurve​(java.lang.StringBuffer buf)
        formats curves containing at least one non-straight segment
      • formatPolygon

        protected java.lang.String formatPolygon​(java.lang.StringBuffer buf)
        Formats curves containing straight segments only