com.stimulsoft.base.context.chart
Class StiContext

java.lang.Object
  extended by com.stimulsoft.base.context.chart.StiContext

public class StiContext
extends java.lang.Object


Field Summary
 StiContextOptions Options
           
 
Constructor Summary
StiContext(IStiContextPainter contextPainter, java.lang.Boolean isGdi, java.lang.Boolean isWpf, java.lang.Boolean isPrinting, float zoom)
           
 
Method Summary
 StiContext CreateShadowGraphics()
           
 void DrawAnimationBar(java.lang.Object brush, StiPenGeom borderPen, java.lang.Object columnRect, java.lang.Double value, java.lang.String toolTip, java.lang.Object tag, StiAnimation animation, StiInteractionDataGeom interaction)
           
 void DrawAnimationColumn(java.lang.Object brush, StiPenGeom borderPen, java.lang.Object rect, java.lang.Double value, java.lang.String toolTip, java.lang.Object tag, StiAnimation animation, StiInteractionDataGeom interaction)
           
 void DrawAnimationCurve(StiPenGeom pen, StiPoint[] points, float tension, StiAnimation animation)
           
 void DrawAnimationLabel(java.lang.String text, StiFontGeom font, java.lang.Object textBrush, java.lang.Object labelBrush, StiPenGeom penBorder, StiRectangle rect, StiStringFormatGeom sf, StiRotationMode mode, float angle, java.lang.Boolean drawBorder, StiAnimation animation)
           
 void DrawAnimationLines(StiPenGeom pen, StiPoint[] points, StiAnimation animation)
           
 void DrawAnimationPathElement(java.lang.Object brush, StiPenGeom borderPen, java.util.List<StiSegmentGeom> path, java.lang.Object rect, java.lang.String toolTip, java.lang.Object tag, StiAnimation animation, StiInteractionDataGeom interaction)
           
 void DrawAnimationRectangle(java.lang.Object brush, StiPenGeom pen, StiRectangle rect, StiAnimation animation, StiInteractionDataGeom interaction, java.lang.String tooltip)
           
 void drawCachedShadow(StiRectangle rect, StiEnumSet<StiShadowSides> sides, boolean isPrinting)
           
 void DrawCurve(StiPenGeom pen, StiPoint[] points, float tension, boolean useZoom)
           
 void DrawEllipse(StiPenGeom pen, double x, double y, double width, double height)
           
 void DrawEllipse(StiPenGeom pen, StiRectangle rect)
           
 void DrawLine(StiPenGeom pen, double x1, double y1, double x2, double y2)
           
 void DrawLines(StiPenGeom pen, StiPoint[] points)
           
 void DrawLines(StiPenGeom pen, StiPoint[] points, boolean useZoom)
           
 void DrawPath(StiPenGeom pen, java.util.List<StiSegmentGeom> path, java.lang.Object rect)
           
 void DrawPath(StiPenGeom pen, java.util.List<StiSegmentGeom> path, java.lang.Object rect, boolean useZoom)
           
 void DrawRectangle(StiPenGeom pen, double x, double y, double width, double height)
           
 void DrawRectangle(StiPenGeom pen, StiRectangle rect)
           
 StiTextGeom DrawRotatedString(java.lang.String text, StiFontGeom font, java.lang.Object brush, StiPoint pos, StiStringFormatGeom sf, StiRotationMode mode, float angle, boolean antialiasing)
           
 StiTextGeom DrawRotatedString(java.lang.String text, StiFontGeom font, java.lang.Object brush, StiPoint pos, StiStringFormatGeom sf, StiRotationMode mode, float angle, boolean antialiasing, int maximalWidth)
           
 StiTextGeom DrawRotatedString(java.lang.String text, StiFontGeom font, java.lang.Object brush, StiRectangle rect, StiStringFormatGeom sf, float angle, boolean antialiasing)
           
 StiTextGeom DrawRotatedString(java.lang.String text, StiFontGeom font, java.lang.Object brush, StiRectangle rect, StiStringFormatGeom sf, StiRotationMode mode, float angle, boolean antialiasing)
           
 StiTextGeom DrawRotatedString(java.lang.String text, StiFontGeom font, java.lang.Object brush, StiRectangle rect, StiStringFormatGeom sf, StiRotationMode mode, float angle, boolean antialiasing, int maximalWidth)
           
 void DrawShadow(StiContext sg, StiRectangle rect, double radius)
           
 void DrawShadowRect(StiRectangle rect, double radiusX, double radiusY, int shadowWidth, StiAnimation animation)
           
 void DrawShadowRect(StiRectangle rect, int shadowWidth, StiAnimation animation)
           
 StiTextGeom DrawString(java.lang.String text, StiFontGeom font, java.lang.Object brush, StiRectangle rect, StiStringFormatGeom sf)
           
 StiTextGeom DrawString(java.lang.String text, StiFontGeom font, java.lang.Object brush, StiRectangle rect, StiStringFormatGeom sf, int elementIndex)
           
 void FillDrawAnimationEllipse(java.lang.Object brush, StiPenGeom pen, double x, double y, double width, double height, java.lang.String toolTip, java.lang.Object tag, StiAnimation animation, StiInteractionDataGeom interaction)
           
 void FillDrawAnimationPath(java.lang.Object brush, StiPenGeom pen, java.util.List<StiSegmentGeom> path, java.lang.Object rect, java.lang.Object tag, StiAnimation animation, StiInteractionDataGeom interaction)
           
 void FillEllipse(java.lang.Object brush, double x, double y, double width, double height, StiInteractionDataGeom interaction)
           
 void FillEllipse(java.lang.Object brush, StiRectangle rect, StiInteractionDataGeom interaction)
           
 void FillPath(java.lang.Object brush, java.util.List<StiSegmentGeom> path, java.lang.Object rect, StiInteractionDataGeom interaction)
           
 void FillPath(java.lang.Object brush, java.util.List<StiSegmentGeom> path, java.lang.Object rect, StiInteractionDataGeom interaction, int elementIndex)
           
 void FillRectangle(java.lang.Object brush, double x, double y, double width, double height, StiInteractionDataGeom interaction)
           
 void FillRectangle(java.lang.Object brush, double x, double y, double width, double height, StiInteractionDataGeom interaction, int elementIndex)
           
 void FillRectangle(java.lang.Object brush, StiRectangle rect, StiInteractionDataGeom interaction)
           
 void FillRectangle(java.lang.Object brush, StiRectangle rect, StiInteractionDataGeom interaction, int elementIndex)
           
 IStiContextPainter getContextPainter()
           
 StiStringFormatGeom GetDefaultStringFormat()
           
 StiStringFormatGeom GetGenericStringFormat()
           
 java.util.List<StiGeom> getGeoms()
           
 StiRectangle GetPathBounds(java.util.List<StiSegmentGeom> geoms)
           
 StiRectangle MeasureRotatedString(java.lang.String text, StiFontGeom font, StiPoint point, StiStringFormatGeom sf, StiRotationMode mode, float angle)
           
 StiRectangle MeasureRotatedString(java.lang.String text, StiFontGeom font, StiPoint point, StiStringFormatGeom sf, StiRotationMode mode, float angle, float maximalWidth)
           
 StiRectangle MeasureRotatedString(java.lang.String text, StiFontGeom font, StiPoint point, StiStringFormatGeom sf, StiRotationMode mode, float angle, int maximalWidth, boolean wordWrap)
           
 StiRectangle MeasureRotatedString(java.lang.String text, StiFontGeom font, StiRectangle rect, StiStringFormatGeom sf, float angle)
           
 StiRectangle MeasureRotatedString(java.lang.String text, StiFontGeom font, StiRectangle rect, StiStringFormatGeom sf, StiRotationMode mode, double angle)
           
 StiSize MeasureString(java.lang.String text, StiFontGeom font)
           
 StiSize MeasureString(java.lang.String text, StiFontGeom font, int width, StiStringFormatGeom sf)
           
 void PopClip()
           
 void PopSmoothingMode()
           
 void PopTextRenderingHint()
           
 void PopTransform()
           
 void PushClip(StiRectangle clipRect)
           
 void PushRotateTransform(float angle)
           
 void PushSmoothingModeToAntiAlias()
           
 void PushTextRenderingHintToAntiAlias()
           
 void PushTranslateTransform(double x, double y)
           
 void render(StiRectangle rect)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Options

public StiContextOptions Options
Constructor Detail

StiContext

public StiContext(IStiContextPainter contextPainter,
                  java.lang.Boolean isGdi,
                  java.lang.Boolean isWpf,
                  java.lang.Boolean isPrinting,
                  float zoom)
Method Detail

render

public void render(StiRectangle rect)

GetDefaultStringFormat

public StiStringFormatGeom GetDefaultStringFormat()

GetGenericStringFormat

public StiStringFormatGeom GetGenericStringFormat()

DrawString

public StiTextGeom DrawString(java.lang.String text,
                              StiFontGeom font,
                              java.lang.Object brush,
                              StiRectangle rect,
                              StiStringFormatGeom sf)

DrawString

public StiTextGeom DrawString(java.lang.String text,
                              StiFontGeom font,
                              java.lang.Object brush,
                              StiRectangle rect,
                              StiStringFormatGeom sf,
                              int elementIndex)

DrawRotatedString

public StiTextGeom DrawRotatedString(java.lang.String text,
                                     StiFontGeom font,
                                     java.lang.Object brush,
                                     StiRectangle rect,
                                     StiStringFormatGeom sf,
                                     float angle,
                                     boolean antialiasing)

DrawRotatedString

public StiTextGeom DrawRotatedString(java.lang.String text,
                                     StiFontGeom font,
                                     java.lang.Object brush,
                                     StiPoint pos,
                                     StiStringFormatGeom sf,
                                     StiRotationMode mode,
                                     float angle,
                                     boolean antialiasing)

DrawRotatedString

public StiTextGeom DrawRotatedString(java.lang.String text,
                                     StiFontGeom font,
                                     java.lang.Object brush,
                                     StiRectangle rect,
                                     StiStringFormatGeom sf,
                                     StiRotationMode mode,
                                     float angle,
                                     boolean antialiasing,
                                     int maximalWidth)

DrawRotatedString

public StiTextGeom DrawRotatedString(java.lang.String text,
                                     StiFontGeom font,
                                     java.lang.Object brush,
                                     StiRectangle rect,
                                     StiStringFormatGeom sf,
                                     StiRotationMode mode,
                                     float angle,
                                     boolean antialiasing)

DrawRotatedString

public StiTextGeom DrawRotatedString(java.lang.String text,
                                     StiFontGeom font,
                                     java.lang.Object brush,
                                     StiPoint pos,
                                     StiStringFormatGeom sf,
                                     StiRotationMode mode,
                                     float angle,
                                     boolean antialiasing,
                                     int maximalWidth)

MeasureString

public StiSize MeasureString(java.lang.String text,
                             StiFontGeom font)

MeasureString

public StiSize MeasureString(java.lang.String text,
                             StiFontGeom font,
                             int width,
                             StiStringFormatGeom sf)

MeasureRotatedString

public StiRectangle MeasureRotatedString(java.lang.String text,
                                         StiFontGeom font,
                                         StiRectangle rect,
                                         StiStringFormatGeom sf,
                                         float angle)

MeasureRotatedString

public StiRectangle MeasureRotatedString(java.lang.String text,
                                         StiFontGeom font,
                                         StiRectangle rect,
                                         StiStringFormatGeom sf,
                                         StiRotationMode mode,
                                         double angle)

MeasureRotatedString

public StiRectangle MeasureRotatedString(java.lang.String text,
                                         StiFontGeom font,
                                         StiPoint point,
                                         StiStringFormatGeom sf,
                                         StiRotationMode mode,
                                         float angle,
                                         int maximalWidth,
                                         boolean wordWrap)

MeasureRotatedString

public StiRectangle MeasureRotatedString(java.lang.String text,
                                         StiFontGeom font,
                                         StiPoint point,
                                         StiStringFormatGeom sf,
                                         StiRotationMode mode,
                                         float angle,
                                         float maximalWidth)

MeasureRotatedString

public StiRectangle MeasureRotatedString(java.lang.String text,
                                         StiFontGeom font,
                                         StiPoint point,
                                         StiStringFormatGeom sf,
                                         StiRotationMode mode,
                                         float angle)

DrawShadow

public void DrawShadow(StiContext sg,
                       StiRectangle rect,
                       double radius)

drawCachedShadow

public void drawCachedShadow(StiRectangle rect,
                             StiEnumSet<StiShadowSides> sides,
                             boolean isPrinting)

CreateShadowGraphics

public StiContext CreateShadowGraphics()

PushTranslateTransform

public void PushTranslateTransform(double x,
                                   double y)

PushRotateTransform

public void PushRotateTransform(float angle)

PopTransform

public void PopTransform()

PushClip

public void PushClip(StiRectangle clipRect)

PopClip

public void PopClip()

DrawAnimationColumn

public void DrawAnimationColumn(java.lang.Object brush,
                                StiPenGeom borderPen,
                                java.lang.Object rect,
                                java.lang.Double value,
                                java.lang.String toolTip,
                                java.lang.Object tag,
                                StiAnimation animation,
                                StiInteractionDataGeom interaction)

DrawAnimationBar

public void DrawAnimationBar(java.lang.Object brush,
                             StiPenGeom borderPen,
                             java.lang.Object columnRect,
                             java.lang.Double value,
                             java.lang.String toolTip,
                             java.lang.Object tag,
                             StiAnimation animation,
                             StiInteractionDataGeom interaction)

DrawAnimationRectangle

public void DrawAnimationRectangle(java.lang.Object brush,
                                   StiPenGeom pen,
                                   StiRectangle rect,
                                   StiAnimation animation,
                                   StiInteractionDataGeom interaction,
                                   java.lang.String tooltip)

DrawAnimationPathElement

public void DrawAnimationPathElement(java.lang.Object brush,
                                     StiPenGeom borderPen,
                                     java.util.List<StiSegmentGeom> path,
                                     java.lang.Object rect,
                                     java.lang.String toolTip,
                                     java.lang.Object tag,
                                     StiAnimation animation,
                                     StiInteractionDataGeom interaction)

DrawAnimationLabel

public void DrawAnimationLabel(java.lang.String text,
                               StiFontGeom font,
                               java.lang.Object textBrush,
                               java.lang.Object labelBrush,
                               StiPenGeom penBorder,
                               StiRectangle rect,
                               StiStringFormatGeom sf,
                               StiRotationMode mode,
                               float angle,
                               java.lang.Boolean drawBorder,
                               StiAnimation animation)

DrawAnimationLines

public void DrawAnimationLines(StiPenGeom pen,
                               StiPoint[] points,
                               StiAnimation animation)

DrawAnimationCurve

public void DrawAnimationCurve(StiPenGeom pen,
                               StiPoint[] points,
                               float tension,
                               StiAnimation animation)

FillDrawAnimationPath

public void FillDrawAnimationPath(java.lang.Object brush,
                                  StiPenGeom pen,
                                  java.util.List<StiSegmentGeom> path,
                                  java.lang.Object rect,
                                  java.lang.Object tag,
                                  StiAnimation animation,
                                  StiInteractionDataGeom interaction)

FillDrawAnimationEllipse

public void FillDrawAnimationEllipse(java.lang.Object brush,
                                     StiPenGeom pen,
                                     double x,
                                     double y,
                                     double width,
                                     double height,
                                     java.lang.String toolTip,
                                     java.lang.Object tag,
                                     StiAnimation animation,
                                     StiInteractionDataGeom interaction)

DrawLine

public void DrawLine(StiPenGeom pen,
                     double x1,
                     double y1,
                     double x2,
                     double y2)

DrawLines

public void DrawLines(StiPenGeom pen,
                      StiPoint[] points,
                      boolean useZoom)

DrawLines

public void DrawLines(StiPenGeom pen,
                      StiPoint[] points)

DrawRectangle

public void DrawRectangle(StiPenGeom pen,
                          StiRectangle rect)

DrawRectangle

public void DrawRectangle(StiPenGeom pen,
                          double x,
                          double y,
                          double width,
                          double height)

DrawEllipse

public void DrawEllipse(StiPenGeom pen,
                        double x,
                        double y,
                        double width,
                        double height)

DrawEllipse

public void DrawEllipse(StiPenGeom pen,
                        StiRectangle rect)

FillEllipse

public void FillEllipse(java.lang.Object brush,
                        double x,
                        double y,
                        double width,
                        double height,
                        StiInteractionDataGeom interaction)

FillEllipse

public void FillEllipse(java.lang.Object brush,
                        StiRectangle rect,
                        StiInteractionDataGeom interaction)

DrawPath

public void DrawPath(StiPenGeom pen,
                     java.util.List<StiSegmentGeom> path,
                     java.lang.Object rect)

DrawPath

public void DrawPath(StiPenGeom pen,
                     java.util.List<StiSegmentGeom> path,
                     java.lang.Object rect,
                     boolean useZoom)

FillPath

public void FillPath(java.lang.Object brush,
                     java.util.List<StiSegmentGeom> path,
                     java.lang.Object rect,
                     StiInteractionDataGeom interaction)

FillPath

public void FillPath(java.lang.Object brush,
                     java.util.List<StiSegmentGeom> path,
                     java.lang.Object rect,
                     StiInteractionDataGeom interaction,
                     int elementIndex)

DrawCurve

public void DrawCurve(StiPenGeom pen,
                      StiPoint[] points,
                      float tension,
                      boolean useZoom)

FillRectangle

public void FillRectangle(java.lang.Object brush,
                          StiRectangle rect,
                          StiInteractionDataGeom interaction)

FillRectangle

public void FillRectangle(java.lang.Object brush,
                          StiRectangle rect,
                          StiInteractionDataGeom interaction,
                          int elementIndex)

FillRectangle

public void FillRectangle(java.lang.Object brush,
                          double x,
                          double y,
                          double width,
                          double height,
                          StiInteractionDataGeom interaction)

FillRectangle

public void FillRectangle(java.lang.Object brush,
                          double x,
                          double y,
                          double width,
                          double height,
                          StiInteractionDataGeom interaction,
                          int elementIndex)

PushSmoothingModeToAntiAlias

public void PushSmoothingModeToAntiAlias()

PopSmoothingMode

public void PopSmoothingMode()

PushTextRenderingHintToAntiAlias

public void PushTextRenderingHintToAntiAlias()

PopTextRenderingHint

public void PopTextRenderingHint()

GetPathBounds

public StiRectangle GetPathBounds(java.util.List<StiSegmentGeom> geoms)

getContextPainter

public IStiContextPainter getContextPainter()
Returns:
the contextPainter

getGeoms

public java.util.List<StiGeom> getGeoms()
Returns:
the geoms

DrawShadowRect

public void DrawShadowRect(StiRectangle rect,
                           int shadowWidth,
                           StiAnimation animation)

DrawShadowRect

public void DrawShadowRect(StiRectangle rect,
                           double radiusX,
                           double radiusY,
                           int shadowWidth,
                           StiAnimation animation)