Class Graph.FontParms

java.lang.Object
org.bzdev.graphs.Graph.FontParms
All Implemented Interfaces:
Cloneable
Enclosing class:
Graph

public static class Graph.FontParms extends Object implements Cloneable
Class specifying a graph's font parameters.
  • Constructor Details

    • FontParms

      public FontParms()
      Constructor.
  • Method Details

    • set

      public void set(Graph.FontParms parms)
      Set the parameters to those provided by another instance.
      Parameters:
      parms - a FontParams instance whose parameters should be copied
    • setFont

      public void setFont(Font f)
      Set the font.
      Parameters:
      f - the font to use
    • getFont

      public Font getFont()
      Get the font.
      Returns:
      the font
    • setColor

      public void setColor(Color c)
      Set the color of a font.
      Parameters:
      c - the color; null if the default color should be used
    • getColor

      public Color getColor()
      Get the font color.
      Returns:
      the font color
    • setJustification

      public void setJustification(Graph.Just j)
      Set the font justification.
      Parameters:
      j - the font justification
    • getJustification

      public Graph.Just getJustification()
      Get the font justification.
      Returns:
      the justification
    • setBaseline

      public void setBaseline(Graph.BLineP blp)
      Set the font vertical alignment.
      Parameters:
      blp - the vertical alignment
    • getBaseline

      public Graph.BLineP getBaseline()
      Get the font vertical alignment.
      Returns:
      the alignment
    • setAngle

      public void setAngle(double angle)
      Set the font angle. The font angle is measured counterclockwise.
      Parameters:
      angle - the angle in degrees
    • getAngle

      public double getAngle()
      Get the font angle
      Returns:
      the angle in degrees
    • clone

      public Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException