Class ChartRenderHints
java.lang.Object
com.arbergashi.charts.api.ChartRenderHints
Rendering hint container for chart rendering.
Provides a minimal API for anti-aliasing and stroke width control,
while allowing extensible rendering hints via setHint(RenderingHints.Key, Object).
- Since:
- 2026-01-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionantialiasing(boolean enabled) Fluent alias forsetAntialiasing(boolean).voidapplyTo(Graphics2D g2) Applies the configured hints to the graphics context.Returns the preferred stroke width (design units), or null if not set.setAntialiasing(boolean enabled) Enables or disables anti-aliasing.setHint(RenderingHints.Key key, Object value) Sets an arbitrary rendering hint for extensibility.setStrokeWidth(float strokeWidth) Sets the preferred base stroke width in design units (dp).strokeWidth(float strokeWidth) Fluent alias forsetStrokeWidth(float).
-
Constructor Details
-
ChartRenderHints
public ChartRenderHints()
-
-
Method Details
-
setAntialiasing
Enables or disables anti-aliasing. -
antialiasing
Fluent alias forsetAntialiasing(boolean). -
setStrokeWidth
Sets the preferred base stroke width in design units (dp). The framework will scale this value viaChartScale.scale(float). -
strokeWidth
Fluent alias forsetStrokeWidth(float). -
setHint
Sets an arbitrary rendering hint for extensibility. -
getStrokeWidth
Returns the preferred stroke width (design units), or null if not set. -
applyTo
Applies the configured hints to the graphics context.
-