Class MReactionSign

All Implemented Interfaces:
Serializable, Cloneable

@PublicApi public class MReactionSign extends MTextBox
Special MTextBox desdendant for displaying Reaction signs. The text is always a "+" sign no changes are permitted.
See Also:
  • Constructor Details

    • MReactionSign

      public MReactionSign()
    • MReactionSign

      public MReactionSign(DPoint3 p)
  • Method Details

    • setText

      public void setText(String s)
      Description copied from class: MTextBox
      Sets the text.
      Overrides:
      setText in class MTextBox
      Parameters:
      s - the text
    • addString

      public void addString(String s)
      Description copied from class: MTextBox
      Adds a string to the text.
      Overrides:
      addString in class MTextBox
      Parameters:
      s - the string
    • addChar

      public void addChar(char c)
      Description copied from class: MTextBox
      Adds a character to the text.
      Overrides:
      addChar in class MTextBox
      Parameters:
      c - the character
    • addLine

      public void addLine(MTextDocument.Portion s)
      Overrides:
      addLine in class MTextBox
    • setAttribute

      public void setAttribute(String s, String v)
      Description copied from class: MTextBox
      Sets the value of an attribute.
      Supported attributes:
      • cursorPosition: the position of the cursor in the text box
      • text: the content of the text box
      Overrides:
      setAttribute in class MTextBox
      Parameters:
      s - the attribute name
      v - the attribute value
    • insertDocument

      public void insertDocument(MTextDocument document)
      Description copied from class: MTextBox
      Inserts document at the current cursor position. Style of the source is preserved.
      Overrides:
      insertDocument in class MTextBox
    • updateBoundingRect

      public void updateBoundingRect(double[] xyminm, CTransform3D pretrf)
      Description copied from class: MPolyline
      Calculate the bounding rectangle.
      Overrides:
      updateBoundingRect in class MPolyline
      Parameters:
      xyminm - array containing the current minimum x, y and maximum x, y coordinates
      pretrf - transformation matrix
    • wrapTextAndSetActualPoints

      public void wrapTextAndSetActualPoints(CTransform3D transform, double scale)
      Overrides:
      wrapTextAndSetActualPoints in class MTextBox
    • getPointRefCount

      public int getPointRefCount()
      Description copied from class: MRectangle
      Gets the number of internal selectable point references.
      Overrides:
      getPointRefCount in class MRectangle
      Returns:
      8
    • isSelectableNow

      public boolean isSelectableNow()
      Description copied from class: MObject
      Is the object selectable now?
      Overrides:
      isSelectableNow in class MObject
      Returns:
      true for ordinary objects, false for some internal selectables