Class TextCanvasElement

Direct Known Subclasses:
BorderedTextCanvasElement

public class TextCanvasElement extends DrawableElement
Draw a piece of text on the canvas
  • Constructor Details

    • TextCanvasElement

      public TextCanvasElement(int x, int y, String string, Color color, int textSize)
  • Method Details

    • getTextSize

      public int getTextSize()
    • setTextSize

      public void setTextSize(int textSize)
    • getString

      public String getString()
    • setString

      public void setString(String string)
    • draw

      public void draw(Graphics2D g)
      Specified by:
      draw in class CanvasElement