public abstract class AbstractShapeCustomizer
extends net.sf.jasperreports.engine.JRAbstractChartCustomizer
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractShapeCustomizer.ShapeSetter |
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_SHAPE_HEIGHT |
static String |
PROPERTY_SHAPE_POINTS |
static String |
PROPERTY_SHAPE_TYPE |
static String |
PROPERTY_SHAPE_WIDTH |
| Constructor and Description |
|---|
AbstractShapeCustomizer() |
| Modifier and Type | Method and Description |
|---|---|
protected Shape |
buildEllipse()
Builds an ellipse shape.
|
protected Shape |
buildPolygon(ShapePoints shapePoints)
Builds a polygon shape.
|
protected Shape |
buildPolyline(ShapePoints baseShape)
Uses the points to build a polyline
|
protected Shape |
buildRectangle()
Builds a rectangle shape.
|
protected Shape |
buildShape()
Builds the shape from the type and the points read from the respective configuration properties.
|
protected Rectangle2D |
getBounds(ShapePoints shape) |
protected Integer |
getHeight()
Returns the height of the shape.
|
protected abstract Point |
getOffset(Dimension2D size) |
protected abstract Point |
getOffset(Rectangle2D bounds) |
protected Dimension2D |
getSize()
Returns the width and height properties defined, if only one is defined it value will be used
also for the other, if they are both undefined it will return null.
|
protected Integer |
getWidth()
Returns the width of the shape.
|
protected void |
updateItem(ItemsCounter itemsCounter,
AbstractShapeCustomizer.ShapeSetter shapeSetter,
int index)
Apply the shaped defined in the configuration to the ShapeSetter in the specified
index of the passed parameter
|
protected void |
updateItems(ItemsCounter itemsCounter,
AbstractShapeCustomizer.ShapeSetter shapeSetter)
Update all the items in the collection
|
getBooleanProperty, getCustomizerPropertyName, getDoubleProperty, getFieldValue, getFieldValue, getFloatProperty, getIntegerProperty, getParameterValue, getParameterValue, getProperty, getVariableValue, getVariableValue, init, init, setNamepublic static final String PROPERTY_SHAPE_WIDTH
public static final String PROPERTY_SHAPE_HEIGHT
public static final String PROPERTY_SHAPE_TYPE
public static final String PROPERTY_SHAPE_POINTS
protected Integer getWidth()
protected Integer getHeight()
protected Shape buildShape()
protected Dimension2D getSize()
protected Rectangle2D getBounds(ShapePoints shape)
protected abstract Point getOffset(Dimension2D size)
protected abstract Point getOffset(Rectangle2D bounds)
protected Shape buildEllipse()
protected Shape buildRectangle()
protected Shape buildPolygon(ShapePoints shapePoints)
shapePoints - the points of the polygonprotected Shape buildPolyline(ShapePoints baseShape)
baseShape - the points of the polylineprotected void updateItem(ItemsCounter itemsCounter, AbstractShapeCustomizer.ShapeSetter shapeSetter, int index)
protected void updateItems(ItemsCounter itemsCounter, AbstractShapeCustomizer.ShapeSetter shapeSetter)
Copyright © 2019 TIBCO Software Inc.. All rights reserved.