Class VectorRenderer

    • Field Detail

      • baseLength

        private double baseLength
        The length of the base.
      • headLength

        private double headLength
        The length of the head.
    • Constructor Detail

      • VectorRenderer

        public VectorRenderer()
        Creates a new VectorRenderer instance with default attributes.
    • Method Detail

      • drawItem

        public void drawItem​(java.awt.Graphics2D g2,
                             XYItemRendererState state,
                             java.awt.geom.Rectangle2D dataArea,
                             PlotRenderingInfo info,
                             XYPlot plot,
                             ValueAxis domainAxis,
                             ValueAxis rangeAxis,
                             XYDataset dataset,
                             int series,
                             int item,
                             CrosshairState crosshairState,
                             int pass)
        Draws the block representing the specified item.
        Specified by:
        drawItem in interface XYItemRenderer
        Parameters:
        g2 - the graphics device.
        state - the state.
        dataArea - the data area.
        info - the plot rendering info.
        plot - the plot.
        domainAxis - the x-axis.
        rangeAxis - the y-axis.
        dataset - the dataset.
        series - the series index.
        item - the item index.
        crosshairState - the crosshair state.
        pass - the pass index.
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests this VectorRenderer for equality with an arbitrary object. This method returns true if and only if:
        • obj is an instance of VectorRenderer (not null);
        • obj has the same field values as this VectorRenderer;
        Overrides:
        equals in class AbstractXYItemRenderer
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a clone of this renderer.
        Specified by:
        clone in interface PublicCloneable
        Overrides:
        clone in class AbstractXYItemRenderer
        Returns:
        A clone of this renderer.
        Throws:
        java.lang.CloneNotSupportedException - if there is a problem creating the clone.