Class AbstractCategoryRenderer3D

java.lang.Object
org.jfree.chart3d.renderer.AbstractRenderer3D
org.jfree.chart3d.renderer.category.AbstractCategoryRenderer3D
All Implemented Interfaces:
Serializable, ChartElement, CategoryRenderer3D, Renderer3D
Direct Known Subclasses:
AreaRenderer3D, BarRenderer3D, LineRenderer3D

A base class that can be used to implement renderers for a CategoryPlot3D.
See Also:
  • Constructor Details

  • Method Details

    • getPlot

      Returns the plot that the renderer is currently assigned to, if any.
      Specified by:
      getPlot in interface CategoryRenderer3D
      Returns:
      The plot or null.
    • setPlot

      public void setPlot(CategoryPlot3D plot)
      Sets the plot that the renderer is assigned to. You do not need to call this method yourself, the plot takes care of it when you call the setRenderer() method on the plot.
      Specified by:
      setPlot in interface CategoryRenderer3D
      Parameters:
      plot - the plot (null permitted).
    • getColorSource

      Returns the color source for the renderer. This is used to determine the colors used for individual items in the chart, and the color to display for a series in the chart legend.
      Specified by:
      getColorSource in interface CategoryRenderer3D
      Returns:
      The color source (never null).
    • setColorSource

      public void setColorSource(CategoryColorSource colorSource)
      Sets the color source for the renderer and sends a Renderer3DChangeEvent to all registered listeners.
      Specified by:
      setColorSource in interface CategoryRenderer3D
      Parameters:
      colorSource - the color source (null not permitted).
    • setColors

      public void setColors(Color... colors)
      Sets a new color source for the renderer using the specified colors and sends a Renderer3DChangeEvent to all registered listeners. This is a convenience method that is equivalent to setColorSource(new StandardCategoryColorSource(colors)).
      Specified by:
      setColors in interface CategoryRenderer3D
      Parameters:
      colors - one or more colors (null not permitted).
      Since:
      1.1
    • getItemLabelGenerator

      Returns the item label generator for the renderer (possibly null).
      Returns:
      The item label generator (possibly null).
      Since:
      1.3
    • setItemLabelGenerator

      Sets the item label generator for the renderer and sends a change event to all registered listeners.
      Parameters:
      generator - the generator (null permitted).
      Since:
      1.3
    • getItemLabelOffsets

      Returns the item label offsets.
      Returns:
      The item label offsets (never null).
      Since:
      1.3
    • setItemLabelOffsets

      public void setItemLabelOffsets(Offset3D offsets)
      Sets the item label offsets and sends a change event to all registered listeners.
      Parameters:
      offsets - the offsets (null not permitted).
      Since:
      1.3
    • findValueRange

      public Range findValueRange(Values3D<? extends Number> data)
      Returns the range of values that will be required on the value axis to see all the data from the dataset.
      Specified by:
      findValueRange in interface CategoryRenderer3D
      Parameters:
      data - the data (null not permitted).
      Returns:
      The range (possibly null)
    • equals

      public boolean equals(Object obj)
      Tests this renderer for equality with an arbitrary object.
      Overrides:
      equals in class AbstractRenderer3D
      Parameters:
      obj - the object (null permitted).
      Returns:
      A boolean.