1 package org.simantics.jfreechart.chart.properties;
\r
3 public class ChartVariable implements Comparable<ChartVariable>{
\r
6 private String label;
\r
8 public ChartVariable(String rvi) {
\r
12 public ChartVariable(String rvi, String label) {
\r
17 public String getRvi() {
\r
21 public String getLabel() {
\r
26 public String toString() {
\r
33 public int hashCode() {
\r
34 return rvi.hashCode();
\r
38 public boolean equals(Object obj) {
\r
41 if (obj.getClass() != getClass())
\r
43 ChartVariable other = (ChartVariable)obj;
\r
44 return rvi.equals(other.rvi);
\r
48 public int compareTo(ChartVariable o) {
\r
49 if (label != null && o.label != null) {
\r
50 return label.compareTo(o.label);
\r
52 return rvi.compareTo(o.rvi);
\r