Class TextEditable

  • All Implemented Interfaces:
    Element, PicObjectConstants
    Direct Known Subclasses:
    PicText

    public abstract class TextEditable
    extends DefaultLeafElement
    An abstract class for Element's that have a textual representation, and [pending:removed as of 1.3.2] whose text can be graphically edited
    Since:
    jPicEdt 1.3.1
    Version:
    $Id: TextEditable.java,v 1.11.2.1 2007/09/02 11:56:27 reynal Exp $
    Author:
    Sylvain Reynal
    • Constructor Detail

      • TextEditable

        protected TextEditable​(java.lang.String textString,
                               PicPoint anchorPoint,
                               PicAttributeSet set)
        Construct a new TextEditable with the given content and attribute set
      • TextEditable

        protected TextEditable​(java.lang.String textString,
                               PicPoint anchorPoint)
        Construct a new TextEditable with the given content and a default attribute set
      • TextEditable

        protected TextEditable​(TextEditable e)
        Construct a clone of the given TextEditable
    • Method Detail

      • getText

        public java.lang.String getText()
        Return the string argument (e.g of the corresponding \\makebox{} command)
      • setText

        public void setText​(java.lang.String str)
        Set the string argument (e.g. of the \\makebox{} command)