Class DiagramText

java.lang.Object
org.stathissideris.ascii2image.graphics.DiagramComponent
org.stathissideris.ascii2image.graphics.DiagramText

public class DiagramText extends DiagramComponent
  • Field Details

    • DEFAULT_COLOR

      public static final Color DEFAULT_COLOR
  • Constructor Details

  • Method Details

    • centerInBounds

      public void centerInBounds(Rectangle2D bounds)
    • centerHorizontallyBetween

      public void centerHorizontallyBetween(int minX, int maxX)
    • centerVerticallyBetween

      public void centerVerticallyBetween(int minY, int maxY)
    • alignRightEdgeTo

      public void alignRightEdgeTo(int x)
    • getColor

      public Color getColor()
      Returns:
    • getFont

      public Font getFont()
      Returns:
    • getText

      public String getText()
      Returns:
    • getXPos

      public int getXPos()
      Returns:
    • getYPos

      public int getYPos()
      Returns:
    • setColor

      public void setColor(Color color)
      Parameters:
      color -
    • setFont

      public void setFont(Font font)
      Parameters:
      font -
    • setText

      public void setText(String string)
      Parameters:
      string -
    • setXPos

      public void setXPos(int i)
      Parameters:
      i -
    • setYPos

      public void setYPos(int i)
      Parameters:
      i -
    • getBounds

      public Rectangle2D getBounds()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isTextOnLine

      public boolean isTextOnLine()
      Returns:
    • setTextOnLine

      public void setTextOnLine(boolean b)
      Parameters:
      b -
    • hasOutline

      public boolean hasOutline()
    • setHasOutline

      public void setHasOutline(boolean hasOutline)
    • getOutlineColor

      public Color getOutlineColor()
    • setOutlineColor

      public void setOutlineColor(Color outlineColor)