1 25 package org.jrobin.graph; 26 27 import org.jrobin.core.XmlWriter; 28 29 34 class GridRange 35 { 36 private double lower = Double.NaN; 40 private double upper = Double.NaN; 41 private boolean rigid = false; 42 43 44 52 GridRange( double lower, double upper ) 53 { 54 this.lower = lower; 55 this.upper = upper; 56 } 57 58 69 GridRange( double lower, double upper, boolean rigid ) 70 { 71 this.lower = lower; 72 this.upper = upper; 73 this.rigid = rigid; 74 } 75 76 77 double getLowerValue() { 81 return lower; 82 } 83 84 double getUpperValue() { 85 return upper; 86 } 87 88 boolean isRigid() { 89 return rigid; 90 } 91 92 void exportXmlTemplate(XmlWriter xml) { 93 xml.startTag("grid_range"); 94 xml.writeTag("lower", getLowerValue()); 95 xml.writeTag("upper", getUpperValue()); 96 xml.writeTag("rigid", isRigid()); 97 xml.closeTag(); } 99 } 100 | Popular Tags |