Home | History | Annotate | Download | only in xy
      1 /*
      2  * Copyright 2012 AndroidPlot.com
      3  *
      4  *    Licensed under the Apache License, Version 2.0 (the "License");
      5  *    you may not use this file except in compliance with the License.
      6  *    You may obtain a copy of the License at
      7  *
      8  *        http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  *    Unless required by applicable law or agreed to in writing, software
     11  *    distributed under the License is distributed on an "AS IS" BASIS,
     12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  *    See the License for the specific language governing permissions and
     14  *    limitations under the License.
     15  */
     16 
     17 package com.androidplot.xy;
     18 
     19 import android.graphics.Paint;
     20 import com.androidplot.ui.XLayoutStyle;
     21 import com.androidplot.ui.XPositionMetric;
     22 
     23 public class YValueMarker extends ValueMarker<XPositionMetric> {
     24 
     25 
     26     /**
     27      *
     28      * @param value
     29      * @param text Set to null to use the plot's default formatter.
     30      */
     31     public YValueMarker(Number value, String text) {
     32         super(value, text, new XPositionMetric(3, XLayoutStyle.ABSOLUTE_FROM_LEFT));
     33     }
     34 
     35     /**
     36      *
     37      * @param value
     38      * @param text Set to null to use the plot's default formatter.
     39      * @param textPosition
     40      * @param linePaint
     41      * @param textPaint
     42      */
     43     public YValueMarker(Number value, String text, XPositionMetric textPosition, Paint linePaint, Paint textPaint) {
     44         super(value, text, textPosition, linePaint, textPaint);
     45     }
     46 
     47     /**
     48      *
     49      * @param value
     50      * @param text Set to null to use the plot's default formatter.
     51      * @param textPosition
     52      * @param linePaint
     53      * @param textPaint
     54      */
     55     public YValueMarker(Number value, String text, XPositionMetric textPosition, int linePaint, int textPaint) {
     56         super(value, text, textPosition, linePaint, textPaint);
     57     }
     58 }
     59