Class AbstractCurveFormatter

  • All Implemented Interfaces:
    PstricksConstants, Formatter, PicObjectConstants

    public class AbstractCurveFormatter
    extends java.lang.Object
    implements Formatter, PicObjectConstants, PstricksConstants
    Format an AbstractCurve, or any subclass of it, using PsTricks macros. These are "rendered" to PsTricks using a \\pscustom command that lumps several Bezier curves together in a single Pstricks object.
    Since:
    jpicedt 1.4
    Version:
    $Id: AbstractCurveFormatter.java,v 1.14.2.1 2007/09/02 11:55:13 reynal Exp $
    Author:
    Vincent Guirardel, Sylvain Reynal
    • Method Detail

      • format

        public java.lang.String format()
        Return a String representing this curve in the PsTricks format. This delegates to either formatPsCustom() or formatPsDots() depending on the value of POLYDOTS_STYLE attribute.
        Specified by:
        format in interface Formatter
      • formatCurve

        protected java.lang.String formatCurve()
        this is a convenience call to either formatPsCustom() or formatPsBezier() or formatPsLine().
      • formatPsBezier

        protected java.lang.String formatPsBezier()
        If the curve contains a single Bezier segment: \\psbezier...
      • formatPsLine

        protected java.lang.String formatPsLine()
        Polygon: \\psline...
      • formatPsCurve

        protected java.lang.String formatPsCurve()
        Format for pscurve
        Since:
        jPicEdt 1.4pre5
      • formatPsCustom

        protected java.lang.String formatPsCustom()
        If the curve has more than one segment, and it's not a polygon. \\pscustom[param]{arrows}
        \\psline... or \\psbezier...
        \\closepath
      • formatPsDots

        protected java.lang.String formatPsDots()
        \\psdots(x1,y1)...(xn,yn)