Class PicTextFormatter

  • All Implemented Interfaces:
    PstricksConstants, Formatter, PicObjectConstants

    public class PicTextFormatter
    extends java.lang.Object
    implements Formatter, PicObjectConstants, PstricksConstants
    A formatter for PicText objects in the PsTricks format :
    \\rput[refpoint]{rotation}(x,y){stuff}
    where :
    • stuff can be any of the following :
      \\psframebox[param]{text}}
      \\pscirclebox[param]{text}}
      \\psovalbox[param]{text}}
    • refpoint = B|b|t for vertical and l|r for horizontal (B = baseline)
    • rotation = any angle in degree or U,L,D,R,N,W,S or E.

    The following are built from "frame", "oval" or "circle", but are allegedly more efficient :
    \\psdblframebox[param]{stuff} % same as psframebox with doubleline=true
    \\psshadowbox[param]{stuff} % same as psframebox with shadow=true
    \\cput[shadow=true](x,y){a cput with a shadow} % same as pscirclebox, yet more efficient
    We don't use them so far.

    Version:
    $Id: PicTextFormatter.java,v 1.6.2.1 2007/09/02 11:55:14 reynal Exp $
    Author:
    Sylvain Reynal
    • Method Detail

      • format

        public java.lang.String format()
        Description copied from interface: Formatter
        Create a String representing an Element in the format of this formatter
        Specified by:
        format in interface Formatter
        Returns:
        a String representing this Element in the PsTricks