|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.Element
org.pentaho.reporting.engine.classic.core.ShapeElement
public class ShapeElement
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.
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final BasicStroke DEFAULT_STROKE
public static final StyleKey FILL_SHAPE
public static final StyleKey DRAW_SHAPE
Constructor Detail |
---|
public ShapeElement()
Method Detail |
---|
public String toString()
toString
in class Element
public boolean isShouldDraw()
public boolean isShouldFill()
public void setShouldDraw(boolean shouldDraw)
shouldDraw
- the flag.public void setShouldFill(boolean shouldFill)
shouldFill
- the flag.public boolean isScale()
public void setScale(boolean scale)
scale
- the flag.public boolean isKeepAspectRatio()
public void setKeepAspectRatio(boolean kar)
kar
- the flag.public Stroke getStroke()
public void setStroke(Stroke stroke)
stroke
- the stroke.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |