Class SparklineJComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
PropertySourcedSparklineJComponent

public class SparklineJComponent extends JPanel
See Also:
  • Field Details

    • DEFAULT_LENGTH

      public static int DEFAULT_LENGTH
    • data

      public Number[] data
    • image

      public BufferedImage image
    • params

      public com.representqueens.spark.SizeParams params
    • previousComponentSize

      public Dimension previousComponentSize
    • lineGraph

      public boolean lineGraph
    • foregroundColor

      public Color foregroundColor
    • highlightColor

      public Color highlightColor
    • lastColor

      public Color lastColor
  • Constructor Details

    • SparklineJComponent

      public SparklineJComponent()
  • Method Details

    • getData

      public Number[] getData()
    • getForegroundColor

      public Color getForegroundColor()
    • setForegroundColor

      public void setForegroundColor(Color foregroundColor)
    • getHighlightColor

      public Color getHighlightColor()
    • setHighlightColor

      public void setHighlightColor(Color highlightColor)
    • getLastColor

      public Color getLastColor()
    • setLastColor

      public void setLastColor(Color lastColor)
    • addData

      public void addData(Object newValue)
    • setData

      public void setData(Number[] newData)
    • setData

      public void setData(javax.measure.Quantity[] newAmountData)
    • setData

      public void setData(double[] newDoubleData)
    • setData

      public void setData(float[] newFloatData)
    • setData

      public void setData(int[] newIntData)
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • makeNewGraph

      public void makeNewGraph()
    • isLineGraph

      public boolean isLineGraph()
    • setLineGraph

      public void setLineGraph(boolean lineGraph)
    • clearData

      public void clearData()
    • repaint

      public void repaint()
      Overrides:
      repaint in class Component