1 39 40 package org.jfree.chart; 41 42 import java.awt.Color ; 43 import java.awt.Paint ; 44 import java.awt.Stroke ; 45 import java.io.Serializable ; 46 47 52 public class IntervalMarker extends Marker implements Cloneable , Serializable { 53 54 55 private double startValue; 56 57 58 private double endValue; 59 60 61 private String label; 62 63 69 public IntervalMarker(double start, double end) { 70 71 this(start, end, null, Color.gray, new java.awt.BasicStroke (0.5f), Color.blue, 0.8f); 72 } 73 74 85 public IntervalMarker(double start, double end, String label, 86 Paint outlinePaint, Stroke outlineStroke, Paint paint, float alpha) { 87 88 super((start + end) / 2, outlinePaint, outlineStroke, paint, alpha); 89 this.startValue = start; 90 this.endValue = end; 91 this.label = label; 92 } 93 94 99 public double getStartValue() { 100 return this.startValue; 101 } 102 103 108 public double getEndValue() { 109 return this.endValue; 110 } 111 112 117 public String getLabel() { 118 return this.label; 119 } 120 121 129 public Object clone() throws CloneNotSupportedException { 130 return super.clone(); 131 } 132 133 134 } 135 | Popular Tags |