Examples of RectangleEdge


Examples of com.positive.charts.common.RectangleEdge

  /**
   * Fetches the latest legend items.
   */
  protected void fetchLegendItems() {
    this.items.clear();
    final RectangleEdge p = this.getPosition();
    if (RectangleEdge.isTopOrBottom(p)) {
      this.items.setArrangement(this.hLayout);
    } else {
      this.items.setArrangement(this.vLayout);
    }
View Full Code Here

Examples of org.jfree.chart.ui.RectangleEdge

            AxisLocation location, PlotOrientation orientation) {

        ParamChecks.nullNotPermitted(location, "location");
        ParamChecks.nullNotPermitted(orientation, "orientation");

        RectangleEdge result = null;

        if (location == AxisLocation.TOP_OR_RIGHT) {
            if (orientation == PlotOrientation.HORIZONTAL) {
                result = RectangleEdge.RIGHT;
            }
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

    else
    {
      final LegendTitle chLegend = chart.getLegend();
      if (chLegend != null)
      {
        final RectangleEdge loc = translateEdge(legendLocation.toLowerCase());
        if (loc != null)
        {
          chLegend.setPosition(loc);
        }
        if (getLegendFont() != null)
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

    return titleText;
  }

  protected RectangleEdge translateEdge(final String edge)
  {
    final RectangleEdge translatedEdge = (RectangleEdge) LEGEND_LOCATIONS.get(edge);
    if (translatedEdge != null)
    {
      return translatedEdge;
    }
    return RectangleEdge.LEFT;
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

        final double[] adjStackLeft = adjustedStackValues(stack0, stack1);
        final double[] adjStackRight = adjustedStackValues(stack1, stack2);

        final float transY1;

        final RectangleEdge edge1 = plot.getRangeAxisEdge();

        final GeneralPath left = new GeneralPath();
        final GeneralPath right = new GeneralPath();
        if (y1 >= 0.0) {  // handle positive value
            transY1 = (float) rangeAxis.valueToJava2D(y1 + stack1[1], dataArea,
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

      final XYZDataset xyzData = (XYZDataset) dataset;
      z = xyzData.getZValue(series, item);
    }
    if (!Double.isNaN(z))
    {
      final RectangleEdge domainAxisLocation = plot.getDomainAxisEdge();
      final RectangleEdge rangeAxisLocation = plot.getRangeAxisEdge();
      final double transX = domainAxis.valueToJava2D(x, dataArea, domainAxisLocation);
      final double transY = rangeAxis.valueToJava2D(y, dataArea, rangeAxisLocation);

      double circleSize;
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

    }

    final LegendTitle chLegend = chart.getLegend();
    if (chLegend != null)
    {
      final RectangleEdge loc = translateEdge(getLegendLocation().toLowerCase());
      if (loc != null)
      {
        chLegend.setPosition(loc);
      }
      if (getLegendFont() != null)
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

        if(backcolor != null)
    {
      jfreechart.setBackgroundPaint(backcolor);
    }
   
    RectangleEdge titleEdge = getEdge(chartSettings.getTitlePosition(), RectangleEdge.TOP);
   
    if (titleText != null)
    {
      TextTitle title = jfreechart.getTitle();
      title.setText(titleText);
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

  /**
   *
   */
  private static RectangleEdge getEdge(EdgeEnum position, RectangleEdge defaultPosition)
  {
    RectangleEdge edge = defaultPosition;
    if(position != null)
    {
      switch (position)
      {
        case TOP :
View Full Code Here

Examples of org.jfree.ui.RectangleEdge

    else
    {
      jfreeChart.setBackgroundPaint(TRANSPARENT_PAINT);
    }
   
    RectangleEdge titleEdge = getEdge(getChart().getTitlePositionValue(), RectangleEdge.TOP);
   
    if (jfreeChart.getTitle() != null)
    {
      TextTitle title = jfreeChart.getTitle();
      title.setPaint(getChart().getTitleColor());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.