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
 StiOptions 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)
           
 void drawCachedShadow(StiRectangle rect, StiEnumSet<StiShadowSides> sides, boolean isPrinting)
           
 void DrawCurve(StiPenGeom pen, StiPoint[] points, float tension)
           
 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)
           
 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)
           
 void FillEllipse(java.lang.Object brush, StiRectangle rect)
           
 void FillPath(java.lang.Object brush, java.util.List<StiSegmentGeom> path, java.lang.Object rect)
           
 void FillRectangle(java.lang.Object brush, double x, double y, double width, double height)
           
 void FillRectangle(java.lang.Object brush, StiRectangle rect)
           
 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, int maximalWidth)
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Options

public StiOptions 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)

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)

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)

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)

FillEllipse

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

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)

DrawCurve

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

FillRectangle

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

FillRectangle

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

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)


Copyright © 2018 Stimulsoft. All Rights Reserved.