Documentation of 'smile.plot.Shape' Java class
Shape
smile.plot

Class Shape

  • Direct Known Subclasses:
    Label, Line, Plot, Point


    public abstract class Shape
    extends java.lang.Object
    Abstract rendering object in a PlotCanvas.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Shape()
      Constructor.
      Shape(java.awt.Color color)
      Constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Color getColor()
      Returns the color of component.
      abstract void paint(Graphics painter)
      Draw the component with given graphics object.
      Shape setColor(java.awt.Color color)
      Set the color of component.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Shape

        public Shape()
        Constructor.
      • Shape

        public Shape(java.awt.Color color)
        Constructor.
    • Method Detail

      • setColor

        public Shape setColor(java.awt.Color color)
        Set the color of component.
      • getColor

        public java.awt.Color getColor()
        Returns the color of component.
      • paint

        public abstract void paint(Graphics painter)
        Draw the component with given graphics object.
        Parameters:
        painter -

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.