com.jrefinery.report
Class DrawableElement

java.lang.Object
  |
  +--com.jrefinery.report.Element
        |
        +--com.jrefinery.report.DrawableElement
All Implemented Interfaces:
java.lang.Cloneable, DataTarget, java.io.Serializable

public class DrawableElement
extends Element

The element returns a drawable container. Drawable elements always scale.

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
static java.lang.String CONTENT_TYPE
          The content type for the element.
 
Fields inherited from class com.jrefinery.report.Element
BOTTOM, CENTER, LEFT, MIDDLE, RIGHT, TOP
 
Constructor Summary
DrawableElement()
          Default constructor.
 
Method Summary
 java.lang.String getContentType()
          Defines the content-type for this element.
 
Methods inherited from class com.jrefinery.report.Element
clone, getDataSource, getName, getPaint, getParent, getStyle, getStyleSheetCollection, getValue, isVisible, registerStyleSheetCollection, setDataSource, setName, setPaint, setParent, setStyleSheetCollection, setVisible, unregisterStyleSheetCollection
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_TYPE

public static final java.lang.String CONTENT_TYPE
The content type for the element.

See Also:
Constant Field Values
Constructor Detail

DrawableElement

public DrawableElement()
Default constructor.

Method Detail

getContentType

public java.lang.String getContentType()
Defines the content-type for this element. The content-type is used as a hint how to process the contents of this element. An element implementation should restrict itself to the content-type set here, or the reportprocessing may fail or the element may not be printed.

An element is not allowed to change its content-type after ther report processing has started.

If an content-type is unknown to the output-target, the processor should ignore the content or clearly document its internal reprocessing. Ignoring is preferred.

Specified by:
getContentType in class Element
Returns:
the content-type as string.