Documentation of 'org.jhotdraw.draw.text.FloatingTextArea' Java class
FloatingTextArea
org.jhotdraw.draw.text

Class FloatingTextArea

    • Constructor Summary

      Constructors 
      Constructor and Description
      FloatingTextArea()
      Constructor for the FloatingTextArea object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void createOverlay(DrawingView view)
      Creates the overlay within the given container.
      void createOverlay(DrawingView view, TextHolderFigure figure)
      Creates the overlay for the given Container using a specific font.
      void endOverlay()
      Removes the overlay.
      java.awt.Dimension getPreferredSize(int cols)
      Gets the preferred size of the overlay.
      java.lang.String getText()
      Gets the text contents of the overlay.
      void requestFocus() 
      void setBounds(java.awt.geom.Rectangle2D.Double r, java.lang.String text)
      Positions and sizes the overlay.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FloatingTextArea

        public FloatingTextArea()
        Constructor for the FloatingTextArea object
    • Method Detail

      • createOverlay

        public void createOverlay(DrawingView view)
        Creates the overlay within the given container.
        Parameters:
        view - the DrawingView
      • requestFocus

        public void requestFocus()
      • createOverlay

        public void createOverlay(DrawingView view,
                                  @Nullable
                                  TextHolderFigure figure)
        Creates the overlay for the given Container using a specific font.
        Parameters:
        view - the DrawingView
        figure - the figure holding the text
      • setBounds

        public void setBounds(java.awt.geom.Rectangle2D.Double r,
                              java.lang.String text)
        Positions and sizes the overlay.
        Parameters:
        r - the bounding Rectangle2D.Double for the overlay
        text - the text to edit
      • getText

        public java.lang.String getText()
        Gets the text contents of the overlay.
        Returns:
        The text value
      • getPreferredSize

        public java.awt.Dimension getPreferredSize(int cols)
        Gets the preferred size of the overlay.
        Parameters:
        cols - Description of the Parameter
        Returns:
        The preferredSize value
      • endOverlay

        public void endOverlay()
        Removes the overlay.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.