Package org.jfree.chart.block
Class BlockParams
java.lang.Object
org.jfree.chart.block.BlockParams
- All Implemented Interfaces:
EntityBlockParams
A standard parameter object that can be passed to the draw() method defined
by the
Block class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the flag that controls whether or not chart entities are generated.doubleReturns the translation required to convert local x-coordinates back to the coordinate space of the container.doubleReturns the translation required to convert local y-coordinates back to the coordinate space of the container.voidsetGenerateEntities(boolean generate) Sets the flag that controls whether or not chart entities are generated.voidsetTranslateX(double x) Sets the translation required to convert local x-coordinates into the coordinate space of the container.voidsetTranslateY(double y) Sets the translation required to convert local y-coordinates into the coordinate space of the container.
-
Constructor Details
-
BlockParams
public BlockParams()Creates a new instance.
-
-
Method Details
-
getGenerateEntities
Returns the flag that controls whether or not chart entities are generated.- Specified by:
getGenerateEntitiesin interfaceEntityBlockParams- Returns:
- A boolean.
-
setGenerateEntities
Sets the flag that controls whether or not chart entities are generated.- Parameters:
generate- the flag.
-
getTranslateX
Returns the translation required to convert local x-coordinates back to the coordinate space of the container.- Returns:
- The x-translation amount.
-
setTranslateX
Sets the translation required to convert local x-coordinates into the coordinate space of the container.- Parameters:
x- the x-translation amount.
-
getTranslateY
Returns the translation required to convert local y-coordinates back to the coordinate space of the container.- Returns:
- The y-translation amount.
-
setTranslateY
Sets the translation required to convert local y-coordinates into the coordinate space of the container.- Parameters:
y- the y-translation amount.
-