Package org.jrobin.core

Examples of org.jrobin.core.RrdException


      return FRIDAY;
    }
    else if (firstDayOfWeek.equalsIgnoreCase("saturday")) {
      return SATURDAY;
    }
    throw new RrdException("Never heard for this day of week: " + firstDayOfWeek);
  }
View Full Code Here


        fstyle = Font.BOLD;
      }
      return new Font(name, fstyle, size);
    }
    else {
      throw new RrdException("Incomplete font specification");
    }
  }
View Full Code Here

    rrdGraphDef.setDrawYGrid(showGrid);
    if (!Double.isNaN(gridStep) && labelFactor != NOT_SET) {
      rrdGraphDef.setValueAxis(gridStep, labelFactor);
    }
    else if (!Double.isNaN(gridStep) || labelFactor != NOT_SET) {
      throw new RrdException("Incomplete value axis settings");
    }
  }
View Full Code Here

          labelUnit, labelUnitCount, labelSpan, labelFormat);
    }
    else if (minorGridUnit != NOT_SET || minorGridUnitCount != NOT_SET ||
        majorGridUnit != NOT_SET || majorGridUnitCount != NOT_SET ||
        labelUnit != NOT_SET || labelUnitCount != NOT_SET || labelSpan != NOT_SET || labelFormat != null) {
      throw new RrdException("Incomplete time axis settings");
    }
  }
View Full Code Here

      return RrdGraphConstants.MONTH;
    }
    else if (unit.equalsIgnoreCase("year")) {
      return RrdGraphConstants.YEAR;
    }
    throw new RrdException("Unknown time unit specified: " + unit);
  }
View Full Code Here

            worker.drawPolyline(x, lastY, stack.getParentColor(), new BasicStroke(0));
          }
        }
        else {
          // should not be here
          throw new RrdException("Unknown plot source: " + source.getClass().getName());
        }
        lastY = y;
      }
    }
    worker.reset();
View Full Code Here

    im.xsize = gdef.width;
    im.ysize = gdef.height;
    im.unitslength = gdef.unitsLength;
    if (gdef.onlyGraph) {
      if (im.ysize > 64) {
        throw new RrdException("Cannot create graph only, height too big");
      }
      im.xorigin = 0;
    }
    else {
      im.xorigin = (int) (PADDING_LEFT + im.unitslength * getSmallFontCharWidth());
 
View Full Code Here

     */
    public void setColor(int colorTag, Paint color) throws RrdException {
        if (colorTag >= 0 && colorTag < colors.length) {
            colors[colorTag] = color;
        } else {
            throw new RrdException("Invalid color index specified: " + colorTag);
        }
    }
View Full Code Here

    for (int i = 0; i < COLOR_NAMES.length; i++) {
      if (COLOR_NAMES[i].equalsIgnoreCase(colorName)) {
        return i;
      }
    }
    throw new RrdException("Unknown color name specified: " + colorName);
  }
View Full Code Here

        parent = (SourcedPlotElement) plotElement;
        break;
      }
    }
    if (parent == null) {
      throw new RrdException("You have to stack graph onto something (line or area)");
    }
    else {
      LegendText legendText = new LegendText(color, legend);
      comments.add(legendText);
      plotElements.add(new Stack(parent, srcName, color));
View Full Code Here

TOP

Related Classes of org.jrobin.core.RrdException

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.