net.sf.jasperreports.engine.base
Class JRBasePrintGraphicElement

java.lang.Object
  extended by net.sf.jasperreports.engine.base.JRBasePrintElement
      extended by net.sf.jasperreports.engine.base.JRBasePrintGraphicElement
All Implemented Interfaces:
java.io.Serializable, JRCommonElement, JRCommonGraphicElement, JRPenContainer, JRPrintElement, JRPrintGraphicElement, JRPropertiesHolder, JRStyleContainer
Direct Known Subclasses:
JRBasePrintEllipse, JRBasePrintImage, JRBasePrintLine, JRBasePrintRectangle

public abstract class JRBasePrintGraphicElement
extends JRBasePrintElement
implements JRPrintGraphicElement

Version:
$Id: JRBasePrintGraphicElement.java 3939 2010-08-20 09:52:00Z teodord $
Author:
Teodor Danciu ([email protected])
See Also:
Serialized Form

Field Summary
protected  FillEnum fillValue
           
protected  JRPen linePen
           
 
Fields inherited from class net.sf.jasperreports.engine.base.JRBasePrintElement
backcolor, defaultStyleProvider, forecolor, height, key, modeValue, origin, style, width, x, y
 
Constructor Summary
JRBasePrintGraphicElement(JRDefaultStyleProvider defaultStyleProvider)
           
 
Method Summary
 void copyPen(JRPen linePen)
           
 java.awt.Color getDefaultLineColor()
           
 java.lang.Float getDefaultLineWidth()
           
 byte getFill()
          Deprecated. Replaced by getFillValue()
 FillEnum getFillValue()
          Indicates the fill type used for this element.
 JRPen getLinePen()
           
 java.lang.Byte getOwnFill()
          Deprecated. Replaced by getOwnFillValue()
 FillEnum getOwnFillValue()
          Indicates the own fill type used for this element.
 java.lang.Byte getOwnPen()
          Deprecated. Replaced by getLinePen()
 byte getPen()
          Deprecated. Replaced by getLinePen()
 void setFill(byte fill)
          Deprecated. Replaced by setFill(FillEnum)
 void setFill(java.lang.Byte fill)
          Deprecated. Replaced by setFill(FillEnum)
 void setFill(FillEnum fillValue)
          Sets the fill type used for this element.
 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.base.JRBasePrintElement
accept, getBackcolor, getDefaultStyleProvider, getForecolor, getHeight, getKey, getMode, getModeValue, getOrigin, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, getParentProperties, getPropertiesMap, getStyle, getStyleNameReference, getWidth, getX, getY, hasProperties, setBackcolor, setForecolor, setHeight, setKey, setMode, setMode, setMode, setOrigin, setStyle, setWidth, setX, setY
 
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.JRPrintElement
accept, getHeight, getKey, getOrigin, getWidth, getX, getY, setHeight, setStyle, setWidth, setX, setY
 
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
 
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getMode, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnMode, getOwnModeValue, setBackcolor, setForecolor, setMode, setMode, setMode
 
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReference
 

Field Detail

linePen

protected JRPen linePen

fillValue

protected FillEnum fillValue
Constructor Detail

JRBasePrintGraphicElement

public JRBasePrintGraphicElement(JRDefaultStyleProvider defaultStyleProvider)
Method Detail

getLinePen

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

copyPen

public void copyPen(JRPen linePen)

getPen

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

Description copied from interface: JRPrintGraphicElement
Indicates the pen type used for this element.

Specified by:
getPen in interface JRPrintGraphicElement
Returns:
one of the pen constants in this class

getOwnPen

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

Specified by:
getOwnPen in interface JRPrintGraphicElement

setPen

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

Description copied from interface: JRPrintGraphicElement
Sets the pen type that will used for this element.

Specified by:
setPen in interface JRPrintGraphicElement
Parameters:
pen - one of the pen constants in this class

setPen

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

Specified by:
setPen in interface JRPrintGraphicElement

getFill

public byte getFill()
Deprecated. Replaced by getFillValue()

Specified by:
getFill in interface JRCommonGraphicElement

getOwnFill

public java.lang.Byte getOwnFill()
Deprecated. Replaced by getOwnFillValue()

Specified by:
getOwnFill in interface JRCommonGraphicElement

setFill

public void setFill(byte fill)
Deprecated. Replaced by setFill(FillEnum)

Specified by:
setFill in interface JRCommonGraphicElement
Specified by:
setFill in interface JRPrintGraphicElement

setFill

public void setFill(java.lang.Byte fill)
Deprecated. Replaced by setFill(FillEnum)

Specified by:
setFill in interface JRCommonGraphicElement
Specified by:
setFill in interface JRPrintGraphicElement

getFillValue

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

Specified by:
getFillValue in interface JRCommonGraphicElement
Returns:
a value representing one of the fill type constants in FillEnum

getOwnFillValue

public FillEnum getOwnFillValue()
Description copied from interface: JRCommonGraphicElement
Indicates the own fill type used for this element.

Specified by:
getOwnFillValue in interface JRCommonGraphicElement
Returns:
a value representing one of the fill type constants in FillEnum

setFill

public void setFill(FillEnum fillValue)
Description copied from interface: JRPrintGraphicElement
Sets the fill type used for this element.

Specified by:
setFill in interface JRCommonGraphicElement
Specified by:
setFill in interface JRPrintGraphicElement
Parameters:
fillValue - one of the pen constants in FillEnum.

getDefaultLineWidth

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

getDefaultLineColor

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


Copyright © 2011. All Rights Reserved.