Class BoundedTextLine

All Implemented Interfaces:
ImageObserver, Drawable, Interactive, Measurable, Selectable

public class BoundedTextLine extends BoundedImage
A BoundedTextLine is a line of text that can be rotated and scaled using a mouse.
Version:
1.0
Author:
W. Christian
  • Constructor Details

    • BoundedTextLine

      public BoundedTextLine(String text, double x, double y)
      Constructor BoundedTextLine
      Parameters:
      text -
      x -
      y -
  • Method Details

    • setFont

      public void setFont(Font font)
      Sets the font text font.
      Parameters:
      font - Font
    • getFont

      public Font getFont()
      Gets the font.
      Returns:
      Font
    • draw

      public void draw(DrawingPanel panel, Graphics g)
      Draws the image.
      Specified by:
      draw in interface Drawable
      Overrides:
      draw in class BoundedImage
      Parameters:
      panel - the world in which the arrow is viewed
      g - the graphics context upon which to draw