Klasse AbstractAreaRenderer

java.lang.Object
de.erichseifert.gral.plots.areas.AbstractAreaRenderer
Alle implementierten Schnittstellen:
AreaRenderer
Bekannte direkte Unterklassen:
DefaultAreaRenderer2D, LineAreaRenderer2D

public abstract class AbstractAreaRenderer extends Object implements AreaRenderer

Base class for AreaRenderer implementations. It holds the gap and color settings and punches a hole around every data point out of the shape produced by the subclass, so that the marks remain visible on top of the fill.

A subclass has to implement AreaRenderer.getAreaShape(java.util.List) and AreaRenderer.getArea(java.util.List, java.awt.Shape).

  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Initializes a new instance with default settings.
  • Methodenübersicht

    Modifikator und Typ
    Methode
    Beschreibung
    Returns the paint used to fill the area shape.
    double
    Returns the size of the hole that is punched out of the area around each data point, in view units (pixels).
    boolean
    Returns whether the gaps should have rounded corners.
    void
    setColor(Paint color)
    Sets the paint used to fill the area shape.
    void
    setGap(double gap)
    Sets the size of the hole that is punched out of the area around each data point, in view units (pixels).
    void
    setGapRounded(boolean gapRounded)
    Sets a value which decides whether the gaps should have rounded corners.

    Von Klasse geerbte Methoden Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Von Schnittstelle geerbte Methoden AreaRenderer

    getArea, getAreaShape
  • Konstruktordetails

    • AbstractAreaRenderer

      public AbstractAreaRenderer()
      Initializes a new instance with default settings.
  • Methodendetails

    • getGap

      public double getGap()
      Beschreibung aus Schnittstelle kopiert: AreaRenderer
      Returns the size of the hole that is punched out of the area around each data point, in view units (pixels). A value of 0.0 means no hole.
      Angegeben von:
      getGap in Schnittstelle AreaRenderer
      Gibt zurück:
      Gap between area and data point.
    • setGap

      public void setGap(double gap)
      Beschreibung aus Schnittstelle kopiert: AreaRenderer
      Sets the size of the hole that is punched out of the area around each data point, in view units (pixels). A value of 0.0 means no hole.
      Angegeben von:
      setGap in Schnittstelle AreaRenderer
      Parameter:
      gap - Gap between area and data point.
    • isGapRounded

      public boolean isGapRounded()
      Beschreibung aus Schnittstelle kopiert: AreaRenderer
      Returns whether the gaps should have rounded corners.
      Angegeben von:
      isGapRounded in Schnittstelle AreaRenderer
      Gibt zurück:
      true, if the gaps should have rounded corners.
    • setGapRounded

      public void setGapRounded(boolean gapRounded)
      Beschreibung aus Schnittstelle kopiert: AreaRenderer
      Sets a value which decides whether the gaps should have rounded corners.
      Angegeben von:
      setGapRounded in Schnittstelle AreaRenderer
      Parameter:
      gapRounded - true, if the gaps should have rounded corners.
    • getColor

      public Paint getColor()
      Beschreibung aus Schnittstelle kopiert: AreaRenderer
      Returns the paint used to fill the area shape.
      Angegeben von:
      getColor in Schnittstelle AreaRenderer
      Gibt zurück:
      Paint for the area shape.
    • setColor

      public void setColor(Paint color)
      Beschreibung aus Schnittstelle kopiert: AreaRenderer
      Sets the paint used to fill the area shape.
      Angegeben von:
      setColor in Schnittstelle AreaRenderer
      Parameter:
      color - Paint for the area shape.