public class ShapeDrawable extends Object implements ReportDrawable
Constructor and Description |
---|
ShapeDrawable(Shape shape,
boolean isPreserveAspectRatio) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureGraphics(StyleSheet layoutContext,
Graphics2D g2) |
void |
draw(Graphics2D g2,
Rectangle2D bounds) |
ImageMap |
getImageMap(Rectangle2D bounds)
Returns an optional image-map for the entry.
|
Dimension |
getPreferredSize() |
Shape |
getShape() |
boolean |
isKeepAspectRatio() |
void |
setConfiguration(Configuration config)
Provides the current report configuration of the current report process to the drawable.
|
void |
setResourceBundleFactory(ResourceBundleFactory bundleFactory)
Defines the resource-bundle factory that can be used to localize the drawing process.
|
void |
setStyleSheet(StyleSheet style)
Provides the computed stylesheet of the report element that contained this drawable.
|
public ShapeDrawable(Shape shape, boolean isPreserveAspectRatio)
public Shape getShape()
public void draw(Graphics2D g2, Rectangle2D bounds)
draw
in interface ReportDrawable
protected void configureGraphics(StyleSheet layoutContext, Graphics2D g2)
public void setConfiguration(Configuration config)
setConfiguration
in interface ReportDrawable
config
- the report configuration.public void setStyleSheet(StyleSheet style)
setStyleSheet
in interface ReportDrawable
style
- the stylesheet.public void setResourceBundleFactory(ResourceBundleFactory bundleFactory)
setResourceBundleFactory
in interface ReportDrawable
bundleFactory
- the resource-bundle factory.public ImageMap getImageMap(Rectangle2D bounds)
getImageMap
in interface ReportDrawable
bounds
- the bounds for which the image map is computed.public boolean isKeepAspectRatio()
public Dimension getPreferredSize()
Copyright © 2017 Hitachi Vantara. All rights reserved.