|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jfree.report.Element
|
+--org.jfree.report.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 java.lang.String |
CONTENT_TYPE
A string for the content type. |
static java.awt.BasicStroke |
DEFAULT_STROKE
The default stroke. |
static StyleKey |
DRAW_SHAPE
A key for the 'draw-shape' style. |
static StyleKey |
FILL_SHAPE
A key for the 'fill-shape' style. |
| Fields inherited from class org.jfree.report.Element |
ANONYMOUS_ELEMENT_PREFIX |
| Constructor Summary | |
ShapeElement()
Constructs a shape element. |
|
| Method Summary | |
protected ElementDefaultStyleSheet |
createGlobalDefaultStyle()
Returns the ShapeElement specific global stylesheet. |
java.lang.String |
getContentType()
Returns the content type, in this case 'shape/generic'. |
static ElementDefaultStyleSheet |
getDefaultStyle()
Returns the default style-sheet for shape elements. |
java.awt.Stroke |
getStroke()
Returns the stroke. |
boolean |
isKeepAspectRatio()
Returns true if the shape's aspect ratio should be preserved, and false otherwise. |
boolean |
isScale()
Returns true if the shape should be scaled, and false otherwise. |
boolean |
isShouldDraw()
Returns true if the element outline should be drawn, and false otherwise. |
boolean |
isShouldFill()
Returns true of the element should be filled, and false otherwise. |
void |
setKeepAspectRatio(boolean kar)
Sets a flag that controls whether the shape should be scaled to fit the element bounds. |
void |
setScale(boolean scale)
Sets a flag that controls whether the shape should be scaled to fit the element bounds. |
void |
setShouldDraw(boolean shouldDraw)
Sets a flag that controls whether or not the outline of the shape is drawn. |
void |
setShouldFill(boolean shouldFill)
Sets a flag that controls whether or not the area of the shape is filled. |
void |
setStroke(java.awt.Stroke stroke)
Sets the stroke. |
java.lang.String |
toString()
Returns a string describing the element. |
| Methods inherited from class org.jfree.report.Element |
clone,
connectDataSource,
disconnectDataSource,
getDataSource,
getHRefTarget,
getMaximumSize,
getMinimumSize,
getName,
getObjectID,
getParent,
getPreferredSize,
getReportDefinition,
getStyle,
getTreeLock,
getValue,
isDynamicContent,
isLayoutCacheable,
isVisible,
setDataSource,
setDynamicContent,
setHRefTarget,
setLayoutCacheable,
setMaximumSize,
setMinimumSize,
setName,
setParent,
setPreferredSize,
setReportDefinition,
setVisible |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.awt.BasicStroke DEFAULT_STROKE
public static final StyleKey FILL_SHAPE
public static final StyleKey DRAW_SHAPE
public static final java.lang.String CONTENT_TYPE
| Constructor Detail |
public ShapeElement()
| Method Detail |
public static ElementDefaultStyleSheet getDefaultStyle()
protected ElementDefaultStyleSheet createGlobalDefaultStyle()
public java.lang.String toString()
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 java.lang.String getContentType()
public java.awt.Stroke getStroke()
public void setStroke(java.awt.Stroke stroke)
stroke - the stroke.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||