public class RotatedTextDrawable extends Object implements ReportDrawable
Constructor and Description |
---|
RotatedTextDrawable(String text,
TextRotation rotation) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D graphics2D,
Rectangle2D bounds) |
static RotatedTextDrawable |
extract(Object value) |
ElementAlignment |
gethAlign() |
ImageMap |
getImageMap(Rectangle2D bounds)
Returns an optional image-map for the entry.
|
Dimension |
getPreferredSize() |
TextRotation |
getRotation() |
String |
getText() |
ElementAlignment |
getvAlign() |
boolean |
isKeepAspectRatio() |
void |
setConfiguration(org.pentaho.reporting.libraries.base.config.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.
|
String |
toString() |
public RotatedTextDrawable(String text, TextRotation rotation)
public void draw(Graphics2D graphics2D, Rectangle2D bounds)
draw
in interface ReportDrawable
public Dimension getPreferredSize()
public boolean isKeepAspectRatio()
public void setConfiguration(org.pentaho.reporting.libraries.base.config.Configuration config)
ReportDrawable
setConfiguration
in interface ReportDrawable
config
- the report configuration.public void setStyleSheet(StyleSheet style)
ReportDrawable
setStyleSheet
in interface ReportDrawable
style
- the stylesheet.public void setResourceBundleFactory(ResourceBundleFactory bundleFactory)
ReportDrawable
setResourceBundleFactory
in interface ReportDrawable
bundleFactory
- the resource-bundle factory.public ImageMap getImageMap(Rectangle2D bounds)
ReportDrawable
getImageMap
in interface ReportDrawable
bounds
- the bounds for which the image map is computed.public String getText()
public TextRotation getRotation()
public static RotatedTextDrawable extract(Object value)
public ElementAlignment gethAlign()
public ElementAlignment getvAlign()