1 37 38 package org.jfree.chart.renderer; 39 40 47 public class RangeType { 48 49 52 public static final RangeType STANDARD = new RangeType("RangeType.STANDARD"); 53 54 58 public static final RangeType STACKED = new RangeType("RangeType.STACKED"); 59 60 63 public static final RangeType SERIES_CUMULATIVE = new RangeType("RangeType.SERIES_CUMULATIVE"); 64 65 66 private String name; 67 68 73 private RangeType(String name) { 74 this.name = name; 75 } 76 77 82 public String toString() { 83 return this.name; 84 } 85 86 94 public boolean equals(Object o) { 95 96 if (this == o) { 97 return true; 98 } 99 if (!(o instanceof RangeType)) { 100 return false; 101 } 102 103 final RangeType order = (RangeType) o; 104 if (!this.name.equals(order.toString())) { 105 return false; 106 } 107 108 return true; 109 110 } 111 112 } 113 | Popular Tags |