net.sf.jasperreports.engine.fill
Class JRTemplateGraphicElement

java.lang.Object
  extended by net.sf.jasperreports.engine.fill.JRTemplateElement
      extended by net.sf.jasperreports.engine.fill.JRTemplateGraphicElement
All Implemented Interfaces:
java.io.Serializable, JRCommonElement, JRCommonGraphicElement, JRPenContainer, JRPropertiesHolder, JRStyleContainer
Direct Known Subclasses:
JRTemplateEllipse, JRTemplateImage, JRTemplateLine, JRTemplateRectangle

public abstract class JRTemplateGraphicElement
extends JRTemplateElement
implements JRCommonGraphicElement

Base class consisting of graphic print element information shared by multiple print element instances.

Version:
$Id: JRTemplateGraphicElement.java 3034 2009-08-27 11:58:04Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  JRPen linePen
           
 
Fields inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
defaultStyleProvider, origin, parentStyle
 
Constructor Summary
protected JRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider)
           
protected JRTemplateGraphicElement(JROrigin origin, JRDefaultStyleProvider defaultStyleProvider, JRGraphicElement graphicElement)
           
 
Method Summary
 void copyLinePen(JRPen pen)
          Copies pen attributes.
 java.awt.Color getDefaultLineColor()
           
 java.lang.Float getDefaultLineWidth()
           
 byte getFill()
          Indicates the fill type used for this element.
 JRPen getLinePen()
           
 java.lang.Byte getOwnFill()
           
 java.lang.Byte getOwnPen()
          Deprecated. Replaced by getLinePen()
 byte getPen()
          Deprecated. Replaced by getLinePen()
 void setFill(byte fill)
           
 void setFill(java.lang.Byte fill)
           
protected  void setGraphicElement(JRGraphicElement graphicElement)
           
 void setPen(byte pen)
          Deprecated. Replaced by getLinePen()
 void setPen(java.lang.Byte pen)
          Deprecated. Replaced by getLinePen()
 
Methods inherited from class net.sf.jasperreports.engine.fill.JRTemplateElement
getBackcolor, getBaseStyle, getDefaultStyleProvider, getForecolor, getId, getKey, getMode, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, hasProperties, setBackcolor, setElement, setForecolor, setKey, setMode, setMode, setStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
 

Field Detail

linePen

protected JRPen linePen
Constructor Detail

JRTemplateGraphicElement

protected JRTemplateGraphicElement(JROrigin origin,
                                   JRDefaultStyleProvider defaultStyleProvider)

JRTemplateGraphicElement

protected JRTemplateGraphicElement(JROrigin origin,
                                   JRDefaultStyleProvider defaultStyleProvider,
                                   JRGraphicElement graphicElement)
Method Detail

setGraphicElement

protected void setGraphicElement(JRGraphicElement graphicElement)

copyLinePen

public void copyLinePen(JRPen pen)
Copies pen attributes.

Parameters:
pen - the object to copy the attributes from

getLinePen

public JRPen getLinePen()
Specified by:
getLinePen in interface JRCommonGraphicElement

getPen

public byte getPen()
Deprecated. Replaced by getLinePen()


getOwnPen

public java.lang.Byte getOwnPen()
Deprecated. Replaced by getLinePen()


setPen

public void setPen(byte pen)
Deprecated. Replaced by getLinePen()


setPen

public void setPen(java.lang.Byte pen)
Deprecated. Replaced by getLinePen()


getFill

public byte getFill()
Description copied from interface: JRCommonGraphicElement
Indicates the fill type used for this element.

Specified by:
getFill in interface JRCommonGraphicElement
Returns:
one of the pen constants in this class

getOwnFill

public java.lang.Byte getOwnFill()
Specified by:
getOwnFill in interface JRCommonGraphicElement

setFill

public void setFill(byte fill)

setFill

public void setFill(java.lang.Byte fill)

getDefaultLineWidth

public java.lang.Float getDefaultLineWidth()
Specified by:
getDefaultLineWidth in interface JRPenContainer

getDefaultLineColor

public java.awt.Color getDefaultLineColor()
Specified by:
getDefaultLineColor in interface JRPenContainer


© 2001-2009 Jaspersoft Corporation www.jaspersoft.com