1 25 package org.jrobin.graph; 26 27 import org.jrobin.core.RrdException; 28 import org.jrobin.core.XmlWriter; 29 30 36 public class TimeAxisLabel extends Comment 37 { 38 46 TimeAxisLabel( String text ) throws RrdException 47 { 48 this.text = text; 49 lfToken = Comment.TKN_ACF; 50 super.parseComment(); 51 52 if ( !super.isCompleteLine() ) { 54 oList.add( "" ); 55 oList.add( TimeAxisLabel.TKN_ACF ); 56 57 oList.add( "" ); 58 oList.add( TimeAxisLabel.TKN_ALF ); 59 60 this.lineCount += 2; 61 } 62 } 63 64 void exportXmlTemplate(XmlWriter xml) { 65 xml.writeTag("time_axis_label", getText()); 66 } 67 68 } 69 | Popular Tags |