1 7 package org.ejtools.graph; 8 9 import java.awt.Color ; 10 import java.awt.Graphics ; 11 12 17 public class DefaultGraphElement implements GraphElement 18 { 19 20 protected Range xr = new Range(0.0d, 1.0d); 21 22 protected Range yr = new Range(0.0d, 1.0d); 23 24 25 26 public DefaultGraphElement() { } 27 28 29 36 public void draw(Graphics graphics, double scaleX, double offsetX, double scaleY, double offsetY) { } 37 38 39 42 public Color getColor() 43 { 44 return Color.black; 45 } 46 47 48 51 public Range getXRange() 52 { 53 return this.xr; 54 } 55 56 57 60 public Range getYRange() 61 { 62 return this.yr; 63 } 64 } 65 | Popular Tags |