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 /**
     20  * An immutable object generated by XYStepCalculator representing
     21  * a stepping model to be used by an XYPlot.
     22  */
     23 public class XYStep {
     24 
     25     private final float stepCount;
     26     private final float stepPix;
     27     private final double stepVal;
     28 
     29     //public XYStep() {}
     30 
     31     public XYStep(float stepCount, float stepPix, double stepVal) {
     32         this.stepCount = stepCount;
     33         this.stepPix = stepPix;
     34         this.stepVal = stepVal;
     35     }
     36 
     37     public double getStepCount() {
     38         return stepCount;
     39     }
     40 
     41     /*public void setStepCount(double stepCount) {
     42         this.stepCount = stepCount;
     43     }*/
     44 
     45     public float getStepPix() {
     46         return stepPix;
     47     }
     48 
     49     /*public void setStepPix(float stepPix) {
     50         this.stepPix = stepPix;
     51     }*/
     52 
     53     public double getStepVal() {
     54         return stepVal;
     55     }
     56 
     57     /*public void setStepVal(double stepVal) {
     58         this.stepVal = stepVal;
     59     }*/
     60 }
     61