1 36 37 package org.jfree.chart; 38 39 import java.io.Serializable ; 40 41 46 public class MarkerLabelPosition implements Serializable { 47 48 49 public static final MarkerLabelPosition TOP_LEFT 50 = new MarkerLabelPosition("MarkerLabelPosition.TOP_LEFT"); 51 52 53 public static final MarkerLabelPosition TOP_RIGHT 54 = new MarkerLabelPosition("MarkerLabelPosition.TOP_RIGHT"); 55 56 57 public static final MarkerLabelPosition BOTTOM_LEFT 58 = new MarkerLabelPosition("MarkerLabelPosition.BOTTOM_LEFT"); 59 60 61 public static final MarkerLabelPosition BOTTOM_RIGHT 62 = new MarkerLabelPosition("MarkerLabelPosition.BOTTOM_RIGHT"); 63 64 65 private String name; 66 67 72 private MarkerLabelPosition(String name) { 73 this.name = name; 74 } 75 76 81 public String toString() { 82 return this.name; 83 } 84 85 93 public boolean equals(Object o) { 94 95 if (this == o) { 96 return true; 97 } 98 if (!(o instanceof MarkerLabelPosition)) { 99 return false; 100 } 101 102 final MarkerLabelPosition order = (MarkerLabelPosition) o; 103 if (!this.name.equals(order.toString())) { 104 return false; 105 } 106 107 return true; 108 109 } 110 111 } 112 | Popular Tags |