Package org.jfree.chart.plot

Examples of org.jfree.chart.plot.Plot


    /**
     * Rescales the axis to ensure that all data is visible.
     */
    protected void autoAdjustRange() {

        Plot plot = getPlot();
        if (plot == null) {
            return// no plot, no data
        }

        if (plot instanceof ValueAxisPlot) {
View Full Code Here


     * Adjusts the axis range to match the data range that the axis is
     * required to display.
     */
   @Override
    protected void autoAdjustRange() {
        Plot plot = getPlot();
        if (plot == null) {
            return// no plot, no data
        }

        if (plot instanceof ValueAxisPlot) {
View Full Code Here

    /**
     * Rescales the axis to ensure that all data is visible.
     */
    public void autoAdjustRange() {

        Plot plot = getPlot();
        if (plot == null) {
            return// no plot, no data.
        }

        if (plot instanceof ValueAxisPlot) {
View Full Code Here

        textAnchor = TextAnchor.TOP_LEFT;
      else if ("TOP_RIGHT".equals(str))
        textAnchor = TextAnchor.TOP_RIGHT;
    }

    Plot plot = ((JFreeChart) chart).getPlot();
        if (plot instanceof XYPlot) {
      XYTextAnnotation anno = drawArrow
                  ? new XYPointerAnnotation(text, x, y, arrowAngle)
                  : new XYTextAnnotation(text, x, y);
      anno.setPaint(textPaint);
View Full Code Here

    str = (String) params.get("drawBorder");
    if (str != null)
      drawBorder = "true".equals(str);

    Plot plot = ((JFreeChart) chart).getPlot();
    if (plot instanceof CompassPlot) {
      CompassPlot cplot = (CompassPlot) plot;

      cplot.setDrawBorder(drawBorder);
View Full Code Here

public class PieEnhancer implements ChartPostProcessor, Serializable
{
  private static final long serialVersionUID = 2295977907208852725L;

    public void processChart (Object chart, Map params) {
    Plot plot = ((JFreeChart) chart).getPlot();

    if (plot instanceof PiePlot) {
      PiePlot piePlot = (PiePlot) plot;

      double interiorGap = piePlot.getInteriorGap();
View Full Code Here

    str = (String) params.get("labelItalic");
    if (str != null)
      isItalic = "true".equals(str.toLowerCase());

    Plot plot = ((JFreeChart) chart).getPlot();
    if (plot instanceof SpiderWebPlot) {
      SpiderWebPlot swplot = (SpiderWebPlot) plot;
      swplot.setStartAngle(startAngle);
      swplot.setInteriorGap(interiorGap);
      swplot.setHeadPercent(headPercent);
View Full Code Here

    str = (String) params.get("useSubrangePaint");
    if (str != null)
      useSubrangePaint = "true".equals(str.toLowerCase());

    Plot plot = ((JFreeChart) chart).getPlot();
    if (plot instanceof ThermometerPlot) {
      ThermometerPlot tplot = (ThermometerPlot) plot;
      tplot.setUnits(units);
      tplot.setUseSubrangePaint(false);
      tplot.setThermometerPaint(thermometerColor);
View Full Code Here

        minorTickCount = Integer.parseInt(str);
        setScale = true;
      } catch (NumberFormatException nfex) { }
    }

    Plot plot = ((JFreeChart) chart).getPlot();
    if (plot instanceof DialPlot) {
      DialPlot dplot = (DialPlot) plot;

      if ("pin".equals(pointerType)) {
        dplot.removePointer(0);
View Full Code Here

    str = (String) params.get("units");
    if (str != null) {
      units = str;
    }

    Plot plot = ((JFreeChart) chart).getPlot();
    if (plot instanceof MeterPlot) {
      MeterPlot mplot = (MeterPlot) plot;
      mplot.setNeedlePaint(needleColor);
      mplot.setValuePaint(valueColor);
      mplot.setDialBackgroundPaint(backgroundColor);
View Full Code Here

TOP

Related Classes of org.jfree.chart.plot.Plot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.