org.pentaho.reporting.engine.classic.core.elementfactory
Class HorizontalLineElementFactory

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.elementfactory.ElementFactory
      extended by org.pentaho.reporting.engine.classic.core.elementfactory.AbstractContentElementFactory
          extended by org.pentaho.reporting.engine.classic.core.elementfactory.HorizontalLineElementFactory

public class HorizontalLineElementFactory
extends AbstractContentElementFactory

The drawable field element factory can be used to create elements that display Drawable elements.

A drawable field expects the named datasource to contain Drawable objects.

Once the desired properties are set, the factory can be reused to create similiar elements.

Author:
Thomas Morgner

Constructor Summary
HorizontalLineElementFactory()
          DefaultConstructor.
 
Method Summary
 Element createElement()
          Creates a new drawable field element based on the defined properties.
static Element createHorizontalLine(float y)
           
static Element createHorizontalLine(float y, Color color, Stroke stroke)
           
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.elementfactory.AbstractContentElementFactory
getFillColor, getKeepAspectRatio, getScale, getShouldDraw, getShouldFill, getStroke, setFillColor, setKeepAspectRatio, setScale, setShouldDraw, setShouldFill, setStroke
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.elementfactory.ElementFactory
getAbsolutePosition, getAvoidPagebreaks, getBackgroundColor, getBorderBottomColor, getBorderBottomLeftRadius, getBorderBottomLeftRadiusHeight, getBorderBottomLeftRadiusWidth, getBorderBottomRightRadius, getBorderBottomRightRadiusHeight, getBorderBottomRightRadiusWidth, getBorderBottomStyle, getBorderBottomWidth, getBorderBreakColor, getBorderBreakStyle, getBorderBreakWidth, getBorderColor, getBorderLeftColor, getBorderLeftStyle, getBorderLeftWidth, getBorderRadius, getBorderRadiusHeight, getBorderRadiusWidth, getBorderRightColor, getBorderRightStyle, getBorderRightWidth, getBorderStyle, getBorderTopColor, getBorderTopLeftRadius, getBorderTopLeftRadiusHeight, getBorderTopLeftRadiusWidth, getBorderTopRightRadius, getBorderTopRightRadiusHeight, getBorderTopRightRadiusWidth, getBorderTopStyle, getBorderTopWidth, getBorderWidth, getColor, getDynamicHeight, getFontSmooth, getHeight, getHorizontalAlignment, getHRefTarget, getHRefTitle, getHRefWindow, getLayoutCachable, getMaximumHeight, getMaximumSize, getMaximumWidth, getMinimumHeight, getMinimumSize, getMinimumWidth, getName, getOrphans, getOverflowX, getOverflowY, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPreferredSize, getUseMinChunkWidth, getVerticalAlignment, getVisible, getWidows, getWidth, getX, getY, setAbsolutePosition, setAvoidPagebreaks, setBackgroundColor, setBorderBottomColor, setBorderBottomLeftRadius, setBorderBottomLeftRadiusHeight, setBorderBottomLeftRadiusWidth, setBorderBottomRightRadius, setBorderBottomRightRadiusHeight, setBorderBottomRightRadiusWidth, setBorderBottomStyle, setBorderBottomWidth, setBorderBreakColor, setBorderBreakStyle, setBorderBreakWidth, setBorderColor, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRadius, setBorderRadiusHeight, setBorderRadiusWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderStyle, setBorderTopColor, setBorderTopLeftRadius, setBorderTopLeftRadiusHeight, setBorderTopLeftRadiusWidth, setBorderTopRightRadius, setBorderTopRightRadiusHeight, setBorderTopRightRadiusWidth, setBorderTopStyle, setBorderTopWidth, setBorderWidth, setColor, setDynamicHeight, setFontSmooth, setHeight, setHorizontalAlignment, setHRefTarget, setHRefTitle, setHRefWindow, setLayoutCachable, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setName, setOrphans, setOverflowX, setOverflowY, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPreferredSize, setUseMinChunkWidth, setVerticalAlignment, setVisible, setWidows, setWidth, setX, setY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HorizontalLineElementFactory

public HorizontalLineElementFactory()
DefaultConstructor.

Method Detail

createElement

public Element createElement()
Creates a new drawable field element based on the defined properties.

Specified by:
createElement in class ElementFactory
Returns:
the generated elements
Throws:
IllegalStateException - if the field name is not set.
See Also:
ElementFactory.createElement()

createHorizontalLine

public static Element createHorizontalLine(float y)

createHorizontalLine

public static Element createHorizontalLine(float y,
                                           Color color,
                                           Stroke stroke)