Class XYLine3DRenderer

All Implemented Interfaces:
Serializable, Cloneable, EventListener, Effect3D, AnnotationChangeListener, LegendItemSource, XYItemRenderer, org.jfree.util.PublicCloneable

A XYLineAndShapeRenderer that adds a shadow line to the graph to emulate a 3D-effect.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getXOffset

      public double getXOffset()
      Returns the x-offset for the 3D effect.
      Specified by:
      getXOffset in interface Effect3D
      Returns:
      The 3D effect.
    • getYOffset

      public double getYOffset()
      Returns the y-offset for the 3D effect.
      Specified by:
      getYOffset in interface Effect3D
      Returns:
      The 3D effect.
    • setXOffset

      public void setXOffset(double xOffset)
      Sets the x-offset and sends a RendererChangeEvent to all registered listeners.
      Parameters:
      xOffset - the x-offset.
    • setYOffset

      public void setYOffset(double yOffset)
      Sets the y-offset and sends a RendererChangeEvent to all registered listeners.
      Parameters:
      yOffset - the y-offset.
    • getWallPaint

      public Paint getWallPaint()
      Returns the paint used to highlight the left and bottom wall in the plot background.
      Returns:
      The paint.
    • setWallPaint

      public void setWallPaint(Paint paint)
      Sets the paint used to hightlight the left and bottom walls in the plot background and sends a RendererChangeEvent to all registered listeners.
      Parameters:
      paint - the paint.
    • getPassCount

      public int getPassCount()
      Returns the number of passes through the data that the renderer requires in order to draw the chart. Most charts will require a single pass, but some require two passes.
      Specified by:
      getPassCount in interface XYItemRenderer
      Overrides:
      getPassCount in class XYLineAndShapeRenderer
      Returns:
      The pass count.
    • isLinePass

      protected boolean isLinePass(int pass)
      Returns true if the specified pass involves drawing lines.
      Overrides:
      isLinePass in class XYLineAndShapeRenderer
      Parameters:
      pass - the pass.
      Returns:
      A boolean.
    • isItemPass

      protected boolean isItemPass(int pass)
      Returns true if the specified pass involves drawing items.
      Overrides:
      isItemPass in class XYLineAndShapeRenderer
      Parameters:
      pass - the pass.
      Returns:
      A boolean.
    • isShadowPass

      protected boolean isShadowPass(int pass)
      Returns true if the specified pass involves drawing shadows.
      Parameters:
      pass - the pass.
      Returns:
      A boolean.
    • drawFirstPassShape

      protected void drawFirstPassShape(Graphics2D g2, int pass, int series, int item, Shape shape)
      Overrides the method in the subclass to draw a shadow in the first pass.
      Overrides:
      drawFirstPassShape in class XYLineAndShapeRenderer
      Parameters:
      g2 - the graphics device.
      pass - the pass.
      series - the series index (zero-based).
      item - the item index (zero-based).
      shape - the shape.
    • equals

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