Package com.positive.charts.axis.ticks

Examples of com.positive.charts.axis.ticks.ValueTick


      if ((gridStroke != null) && (gridPaint != null)) {
        final ValueAxis axis = this.getRangeAxis();
        if (axis != null) {
          final Iterator iterator = ticks.iterator();
          while (iterator.hasNext()) {
            final ValueTick tick = (ValueTick) iterator.next();
            final CategoryItemRenderer renderer1 = this
                .getRenderer();
            if (renderer1 != null) {
              renderer1.drawRangeGridline(g2, this, this
                  .getRangeAxis(), dataArea, tick.getValue());
            }
          }
        }
      }
    }
View Full Code Here


    final List ticks = this.refreshTicks(g2, state, dataArea, edge);
    state.setTicks(ticks);
    g2.setFont(this.getTickLabelFont());
    final Iterator iterator = ticks.iterator();
    while (iterator.hasNext()) {
      final ValueTick tick = (ValueTick) iterator.next();
      if (this.isTickLabelsVisible()) {
        // TODO Set color
        // g2.setPaint(getTickLabelPaint());
        final Point anchorPoint = this.calculateAnchorPoint(tick,
            cursor, dataArea, edge);
        TextUtilities.drawRotatedString(tick.getText(), g2,
            anchorPoint.x, anchorPoint.y, tick.getTextAnchor(),
            tick.getAngle(), tick.getRotationAnchor());
      }

      if (this.isTickMarksVisible()) {
        final int xx = (int) this.valueToJava2D(tick.getValue(),
            dataArea, edge);

        // TODO Set color and linestyle
        // g2.setStroke(getTickMarkStroke());
        // g2.setPaint(getTickMarkPaint());
View Full Code Here

TOP

Related Classes of com.positive.charts.axis.ticks.ValueTick

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.