org.pentaho.reporting.engine.classic.core
Class ShapeElement

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.Element
      extended by org.pentaho.reporting.engine.classic.core.ShapeElement
All Implemented Interfaces:
Serializable, Cloneable, DataTarget, ReportElement

Deprecated. This class is no longer used and will be removed in the next version.

public class ShapeElement
extends Element

Used to draw shapes (typically lines and boxes) on a report band. The drawing style of the shapes contained in that element can be controled by using the StyleKeys FILL_SHAPE and DRAW_SHAPE.

Author:
David Gilbert, Thomas Morgner
See Also:
Serialized Form

Field Summary
static BasicStroke DEFAULT_STROKE
          Deprecated. The default stroke.
static StyleKey DRAW_SHAPE
          Deprecated. A key for the 'draw-shape' style.
static StyleKey FILL_SHAPE
          Deprecated. A key for the 'fill-shape' style.
 
Fields inherited from class org.pentaho.reporting.engine.classic.core.Element
ANONYMOUS_ELEMENT_PREFIX
 
Constructor Summary
ShapeElement()
          Deprecated. Constructs a shape element.
 
Method Summary
 Stroke getStroke()
          Deprecated. Returns the stroke.
 boolean isKeepAspectRatio()
          Deprecated. Returns true if the shape's aspect ratio should be preserved, and false otherwise.
 boolean isScale()
          Deprecated. Returns true if the shape should be scaled, and false otherwise.
 boolean isShouldDraw()
          Deprecated. Returns true if the element outline should be drawn, and false otherwise.
 boolean isShouldFill()
          Deprecated. Returns true of the element should be filled, and false otherwise.
 void setKeepAspectRatio(boolean kar)
          Deprecated. Sets a flag that controls whether the shape should be scaled to fit the element bounds.
 void setScale(boolean scale)
          Deprecated. Sets a flag that controls whether the shape should be scaled to fit the element bounds.
 void setShouldDraw(boolean shouldDraw)
          Deprecated. Sets a flag that controls whether or not the outline of the shape is drawn.
 void setShouldFill(boolean shouldFill)
          Deprecated. Sets a flag that controls whether or not the area of the shape is filled.
 void setStroke(Stroke stroke)
          Deprecated. Sets the stroke.
 String toString()
          Deprecated. Returns a string describing the element.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.Element
clone, derive, derive, getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeNames, getAttributeNamespaces, getAttributes, getChangeTracker, getContentBase, getDataSource, getDefinitionSource, getElementType, getElementTypeName, getHRefTarget, getId, getMetaData, getName, getObjectID, getParent, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, getValue, isDynamicContent, isVisible, notifyNodeChildAdded, notifyNodeChildRemoved, notifyNodePropertiesChanged, notifyNodePropertiesChanged, notifyNodeStructureChanged, setAttribute, setAttribute, setAttributeExpression, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setStyleExpression, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_STROKE

public static final BasicStroke DEFAULT_STROKE
Deprecated. 
The default stroke.


FILL_SHAPE

public static final StyleKey FILL_SHAPE
Deprecated. 
A key for the 'fill-shape' style.


DRAW_SHAPE

public static final StyleKey DRAW_SHAPE
Deprecated. 
A key for the 'draw-shape' style.

Constructor Detail

ShapeElement

public ShapeElement()
Deprecated. 
Constructs a shape element.

Method Detail

toString

public String toString()
Deprecated. 
Returns a string describing the element. Useful for debugging.

Overrides:
toString in class Element
Returns:
the string.

isShouldDraw

public boolean isShouldDraw()
Deprecated. 
Returns true if the element outline should be drawn, and false otherwise.

This is determined by the element's style-sheet.

Returns:
true or false.

isShouldFill

public boolean isShouldFill()
Deprecated. 
Returns true of the element should be filled, and false otherwise.

This is determined by the element's style-sheet.

Returns:
true or false.

setShouldDraw

public void setShouldDraw(boolean shouldDraw)
Deprecated. 
Sets a flag that controls whether or not the outline of the shape is drawn.

Parameters:
shouldDraw - the flag.

setShouldFill

public void setShouldFill(boolean shouldFill)
Deprecated. 
Sets a flag that controls whether or not the area of the shape is filled.

Parameters:
shouldFill - the flag.

isScale

public boolean isScale()
Deprecated. 
Returns true if the shape should be scaled, and false otherwise.

This is determined by the element's style-sheet.

Returns:
true or false.

setScale

public void setScale(boolean scale)
Deprecated. 
Sets a flag that controls whether the shape should be scaled to fit the element bounds.

Parameters:
scale - the flag.

isKeepAspectRatio

public boolean isKeepAspectRatio()
Deprecated. 
Returns true if the shape's aspect ratio should be preserved, and false otherwise.

This is determined by the element's style-sheet.

Returns:
true or false.

setKeepAspectRatio

public void setKeepAspectRatio(boolean kar)
Deprecated. 
Sets a flag that controls whether the shape should be scaled to fit the element bounds.

Parameters:
kar - the flag.

getStroke

public Stroke getStroke()
Deprecated. 
Returns the stroke.

Returns:
the stroke.

setStroke

public void setStroke(Stroke stroke)
Deprecated. 
Sets the stroke.

Parameters:
stroke - the stroke.