Package org.jfree.ui

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


    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

        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

      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

    }

    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

        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

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

    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

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

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

TOP

Related Classes of org.jfree.ui.RectangleEdge

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.