package net.sf.jasperreports.engine.fill;

import net.sf.jasperreports.engine.JRDefaultStyleProvider;
import net.sf.jasperreports.engine.JRGraphicElement;
import net.sf.jasperreports.engine.JRLine;
import net.sf.jasperreports.engine.JROrigin;

public class JRTemplateLine extends JRTemplateGraphicElement {
  private static final long serialVersionUID = 10200L;
  
  private byte direction = 1;
  
  protected JRTemplateLine(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRLine line) {
    super(origin, defaultStyleProvider);
    setLine(line);
  }
  
  protected void setLine(JRLine line) {
    setGraphicElement((JRGraphicElement)line);
    setDirection(line.getDirection());
  }
  
  public byte getDirection() {
    return this.direction;
  }
  
  protected void setDirection(byte direction) {
    this.direction = direction;
  }
}
