Class TextPlot


public class TextPlot extends Plot
The scatter plot of texts.
  • Constructor Details

    • TextPlot

      public TextPlot(Label... texts)
      Constructor.
  • Method Details

    • paint

      public void paint(Graphics g)
      Description copied from class: Shape
      Draws the shape.
      Specified by:
      paint in class Shape
    • getLowerBound

      public double[] getLowerBound()
      Description copied from class: Plot
      Returns the lower bound of data.
      Specified by:
      getLowerBound in class Plot
    • getUpperBound

      public double[] getUpperBound()
      Description copied from class: Plot
      Returns the upper bound of data.
      Specified by:
      getUpperBound in class Plot
    • of

      public static TextPlot of(String[] texts, double[][] coordinates)
      Create a text plot.
      Parameters:
      texts - the texts.
      coordinates - an n-by-2 or n-by-3 matrix that are the coordinates of texts.