public class RenderContext
extends java.lang.Object
Constructor and Description |
---|
RenderContext(java.awt.geom.Rectangle2D clipRect,
Theme theme)
Initializes a new instance of the
RenderContext class. |
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getClipRect(com.mindfusion.charting.components.Component relativeTo)
Gets the clip rectangle relative to specified Component.
|
java.awt.geom.Rectangle2D |
getClipRectF(com.mindfusion.charting.components.Component relativeTo)
Gets the clip rectangle relative to specified Component.
|
com.mindfusion.charting.components.Component |
getComponent()
Gets the component currently being painted.
|
java.awt.Graphics2D |
getGraphics()
Gets the current drawing surface.
|
java.lang.Object |
getTag() |
Theme |
getTheme()
Gets the Theme used to resolve appearance attributes.
|
Axis |
getXAxis()
Gets the X axis associated with parent plot or chart.
|
Axis |
getXAxis(Renderer2D series)
Gets the X axis assigned to a Renderer2D or returns one from parent plot or chart.
|
Axis |
getYAxis()
Gets the Y axis associated with parent plot or chart.
|
Axis |
getYAxis(Renderer2D series)
Gets the Y axis assigned to a Renderer2D or returns one from parent plot or chart.
|
Axis |
globalXAxis()
Gets the chart's XAxis.
|
Axis |
globalYAxis()
Gets the chart's YAxis.
|
void |
setComponent(com.mindfusion.charting.components.Component value)
Sets the component currently being painted.
|
void |
setGraphics(java.awt.Graphics2D value)
Sets the current drawing surface.
|
void |
setTag(java.lang.Object value) |
void |
setTheme(Theme value)
Sets the Theme used to resolve appearance attributes.
|
TextStyle |
textStyle(TextStyleHint hint)
Gets a TextStyle from current Theme.
|
public RenderContext(java.awt.geom.Rectangle2D clipRect, Theme theme)
RenderContext
class.clipRect
- A Rectangle2D specifying the clip rectangle.theme
- A Theme instance where appearance attributes should be derived from.public java.awt.Graphics2D getGraphics()
public void setGraphics(java.awt.Graphics2D value)
public com.mindfusion.charting.components.Component getComponent()
public void setComponent(com.mindfusion.charting.components.Component value)
public Axis getXAxis(Renderer2D series)
series
- A Renderer2D instance.public Axis getYAxis(Renderer2D series)
series
- A Renderer2D instance.public Axis getXAxis()
public Axis getYAxis()
public Axis globalXAxis()
public Axis globalYAxis()
public Theme getTheme()
public void setTheme(Theme value)
public java.awt.geom.Rectangle2D getClipRect(com.mindfusion.charting.components.Component relativeTo)
relativeTo
- A Component instance.public java.awt.geom.Rectangle2D getClipRectF(com.mindfusion.charting.components.Component relativeTo)
relativeTo
- A Component instance.public TextStyle textStyle(TextStyleHint hint)
hint
- A member of the TextStyleHint enumeration.public java.lang.Object getTag()
public void setTag(java.lang.Object value)