public class StiGraphics
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
StiGraphics.Cubic
This class represents a cubic polynomial
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Float |
HTML_SCALE
HTML
JTextPane scale |
| Constructor and Description |
|---|
StiGraphics(java.awt.Graphics g)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Stroke |
beginFill(StiBrush brush,
StiPen pen,
StiRectangle rect,
java.lang.Double zoom)
Set fill format
|
void |
clearOffset()
Clear coordinates offset
|
void |
clearRotate()
Pop rotation from stack
|
StiRectangle |
drawAttributedString(java.lang.String allText,
java.awt.Font awtFont,
StiRectangle rect,
java.lang.Boolean underline,
java.lang.Boolean wordWrap,
StiTextHorAlignment horAlignment,
java.lang.Boolean draw,
java.util.List<StiLineInfo> lines,
java.lang.Boolean useRightToLeft)
Draw attribute string
|
void |
drawCurve(StiPoint[] points,
StiPen pen,
java.lang.Double zoom,
java.lang.Boolean transformRect)
Draw curve
|
void |
drawEllise(StiRectangle rect,
StiPen pen,
StiBrush brush,
java.lang.Double zoom,
java.lang.Double pageZoom)
Draw ellipse
|
void |
drawElliseBegin(StiRectangle rect,
StiPen pen,
StiBrush brush,
java.lang.Double zoom)
Begin draw ellipse
|
void |
drawElliseEnd(StiRectangle rect)
End draw ellipse
|
void |
drawHTMLText(java.lang.String text,
StiRectangle rect,
StiFont font,
StiColor color,
StiTextHorAlignment horAlignment,
StiVertAlignment vertAlignment,
java.lang.Boolean wordWrap,
StiPenStyle linesOfUnderline,
StiBorder border,
StiTextOptions textOptions,
double lineSpacing,
java.lang.Double zoom)
Draw HTML text
|
void |
drawImage(java.awt.image.BufferedImage image,
StiRectangle rect,
java.lang.Boolean stretch,
java.lang.Boolean smooth,
java.lang.Boolean scaleBitmap,
java.lang.Double zoom)
Draw
BufferedImage with alpha value 1 |
void |
drawImage(java.awt.image.BufferedImage image,
StiRectangle rect,
java.lang.Boolean stretch,
java.lang.Boolean smooth,
java.lang.Boolean scaleBitmap,
float alpha,
java.lang.Double zoom)
Draw
BufferedImage |
void |
drawImage(java.awt.image.BufferedImage image,
StiRectangle rect,
java.lang.Boolean stretch,
java.lang.Boolean smooth,
double zoom)
Draw
BufferedImage with scaling alpha value 1 |
void |
drawLine(StiPoint start,
StiPoint end,
StiPen pen,
java.lang.Double zoom)
Draw line by start & end
StiPoint with transofmation coordinates with stored offsets |
void |
drawLine(StiPoint start,
StiPoint end,
StiPen pen,
java.lang.Double zoom,
java.lang.Boolean transformRect)
Draw line by start & end
StiPoint |
void |
drawLineXY(java.lang.Double x1,
java.lang.Double y1,
java.lang.Double x2,
java.lang.Double y2,
StiPen pen,
java.lang.Double zoom)
Draw line by coordinates
|
void |
drawLineXY(java.lang.Double x1,
java.lang.Double y1,
java.lang.Double x2,
java.lang.Double y2,
StiPen pen,
java.lang.Double zoom,
java.lang.Boolean transformRect)
Draw line by coordinates
|
StiRectangle |
drawPath(java.util.List<StiPathCommand> path,
StiPen pen,
StiBrush brush,
java.lang.Boolean transformCoord,
double zoom,
double pageZoom)
Draw path sotred in List
StiPathCommand |
StiRectangle |
drawPath(java.util.List<StiPathCommand> path,
StiPen pen,
StiBrush brush,
java.lang.Boolean transformCoord,
double zoom,
double pageZoom,
boolean draw)
Draw path sotred in List
StiPathCommand |
void |
drawPath(java.util.List<StiPathCommand> path,
StiPen pen,
StiBrush brush,
double zoom,
double pageZoom)
Draw path sotred in List
StiPathCommand |
void |
drawRectangle(StiRectangle rect,
StiPen pen,
StiBrush brush,
java.lang.Double zoom,
java.lang.Double pageZoom)
Draw rectangle
|
void |
drawRectangle(StiRectangle rect,
StiPen pen,
StiBrush brush,
java.lang.Double cornerRadius,
java.lang.Double zoom,
java.lang.Double pageZoom)
Draw rounded rectangle
|
void |
drawRTFText(java.lang.String text,
StiRectangle rect,
java.lang.Double zoom)
Draw RFT text
|
void |
drawText(java.lang.String text,
StiRectangle rect,
StiFont font,
StiBrush brush,
StiTextHorAlignment horAlignment,
StiVertAlignment vertAlignment,
java.lang.Boolean wordWrap,
java.lang.Double zoom,
StiPenStyle linesOfUnderline,
StiBorder border,
StiTextOptions textOptions)
Draw text
|
static StiGraphics |
fromImage(java.awt.image.BufferedImage image) |
java.awt.Graphics2D |
getG() |
java.lang.Boolean |
getIntegerCoords()
Round coorditates before painting
|
java.lang.Double |
getOffsetX()
Return X offset
|
java.lang.Double |
getOffsetY()
Return Y offset
|
java.awt.Rectangle |
restoreClip()
Restore clip from clip stack
|
void |
setClip(StiRectangle rect)
Set clip & fit it in old(stored in stack) clip
|
void |
setFixedClip(StiRectangle rect)
Set clip without fiting to old(stored in stack) clip
|
void |
setG(java.awt.Graphics2D g) |
void |
setIntegerCoords(java.lang.Boolean value)
Round coordinates
|
java.awt.Stroke |
setLineStyle(StiPen pen,
StiRectangle rect,
double zoom)
Set line style
|
void |
setOffset(double x,
double y)
Set coordinates offset
|
void |
setRotate(double angle,
double centerX,
double centerY)
Set rotation params & store it in stack
|
void |
setTransformedClip(StiRectangle rect)
Set clip (push it to stack) with trasnform it with offsets & fit clip in older(stored) clip
|
StiPoint |
transformCoords(java.lang.Double x,
java.lang.Double y,
java.lang.Double ox,
java.lang.Double oy)
Tramsform coordinates
|
StiPoint |
transformPoint(StiPoint point,
java.lang.Double ox,
java.lang.Double oy)
Transform
StiPoint with offsets |
StiPoint |
transformPointRound(StiPoint point,
java.lang.Double ox,
java.lang.Double oy)
Transform
StiPoint with offsets & round coordinates with stored digits after point |
StiRectangle |
transformRect(StiRectangle rect)
Transform
StiRectangle |
StiRectangle |
transformRect(StiRectangle rect,
java.lang.Double ox,
java.lang.Double oy)
Transform
StiRectangle with offsets |
StiRectangle |
transformRectRound(StiRectangle rect)
Transform
StiRectangle with stored offsets & round with stored digits after point |
StiRectangle |
transformRectRound(StiRectangle rect,
java.lang.Double ox,
java.lang.Double oy,
java.lang.Integer digits)
Transform
StiRectangle & round it with digits after point |
public static StiGraphics fromImage(java.awt.image.BufferedImage image)
public java.lang.Boolean getIntegerCoords()
public void setIntegerCoords(java.lang.Boolean value)
value - public void setOffset(double x,
double y)
x - y - public void clearOffset()
public void setTransformedClip(StiRectangle rect)
rect - public java.awt.Rectangle restoreClip()
public void setFixedClip(StiRectangle rect)
rect - public void setClip(StiRectangle rect)
rect - public void setRotate(double angle,
double centerX,
double centerY)
angle - centerX - x coordinate to rotatecenterY - y coordinate to rotatepublic void clearRotate()
public StiPoint transformCoords(java.lang.Double x, java.lang.Double y, java.lang.Double ox, java.lang.Double oy)
x - y - ox - oy - public StiPoint transformPointRound(StiPoint point, java.lang.Double ox, java.lang.Double oy)
StiPoint with offsets & round coordinates with stored digits after pointpoint - StiPointox - X offsetoy - Y offsetpublic StiPoint transformPoint(StiPoint point, java.lang.Double ox, java.lang.Double oy)
StiPoint with offsetspoint - StiPointox - oy - public StiRectangle transformRectRound(StiRectangle rect, java.lang.Double ox, java.lang.Double oy, java.lang.Integer digits)
StiRectangle & round it with digits after pointrect - StiRectangleox - X offsetoy - Y offsetdigits - Round to digits after pointpublic StiRectangle transformRectRound(StiRectangle rect)
StiRectangle with stored offsets & round with stored digits after pointrect - StiRectanglepublic StiRectangle transformRect(StiRectangle rect)
StiRectanglerect - StiRectanglepublic StiRectangle transformRect(StiRectangle rect, java.lang.Double ox, java.lang.Double oy)
StiRectangle with offsetsrect - StiRectangleox - X offsetoy - Y offsetpublic java.awt.Stroke setLineStyle(StiPen pen, StiRectangle rect, double zoom)
pen - StiPointrect - StiRectanglezoom - public java.awt.Stroke beginFill(StiBrush brush, StiPen pen, StiRectangle rect, java.lang.Double zoom)
brush - StiBrushpen - StiPenrect - StiRectangle to paint inzoom - public void drawPath(java.util.List<StiPathCommand> path, StiPen pen, StiBrush brush, double zoom, double pageZoom)
StiPathCommandpath - List StiPathCommandpen - StiPenbrush - StiBrushzoom - pageZoom - public StiRectangle drawPath(java.util.List<StiPathCommand> path, StiPen pen, StiBrush brush, java.lang.Boolean transformCoord, double zoom, double pageZoom)
StiPathCommandpath - List StiPathCommandpen - StiPenbrush - StiBrushtransformCoord - is need to transform coordinates with stored offsetszoom - pageZoom - draw - public StiRectangle drawPath(java.util.List<StiPathCommand> path, StiPen pen, StiBrush brush, java.lang.Boolean transformCoord, double zoom, double pageZoom, boolean draw)
StiPathCommandpath - List StiPathCommandpen - StiPenbrush - StiBrushtransformCoord - is need to transform coordinates with stored offsetszoom - pageZoom - draw - public void drawRectangle(StiRectangle rect, StiPen pen, StiBrush brush, java.lang.Double zoom, java.lang.Double pageZoom)
rect - StiRectanglepen - StiPenbrush - StiBrushzoom - pageZoom - public void drawRectangle(StiRectangle rect, StiPen pen, StiBrush brush, java.lang.Double cornerRadius, java.lang.Double zoom, java.lang.Double pageZoom)
rect - StiRectanglepen - StiPenbrush - StiBrushcornerRadius - zoom - pageZoom - public void drawEllise(StiRectangle rect, StiPen pen, StiBrush brush, java.lang.Double zoom, java.lang.Double pageZoom)
rect - StiRectanglepen - StiPenbrush - StiBrushzoom - pageZoom - public void drawElliseBegin(StiRectangle rect, StiPen pen, StiBrush brush, java.lang.Double zoom)
rect - StiRectanglepen - StiPenbrush - StiBrushzoom - public void drawElliseEnd(StiRectangle rect)
rect - StiRectanglepublic void drawLineXY(java.lang.Double x1,
java.lang.Double y1,
java.lang.Double x2,
java.lang.Double y2,
StiPen pen,
java.lang.Double zoom,
java.lang.Boolean transformRect)
x1 - y1 - x2 - y2 - pen - StiPenzoom - transformRect - is need to transform coordinates with stored offsetspublic void drawLineXY(java.lang.Double x1,
java.lang.Double y1,
java.lang.Double x2,
java.lang.Double y2,
StiPen pen,
java.lang.Double zoom)
x1 - y1 - x2 - y2 - pen - StiPenzoom - public void drawLine(StiPoint start, StiPoint end, StiPen pen, java.lang.Double zoom)
StiPoint with transofmation coordinates with stored offsetspublic void drawLine(StiPoint start, StiPoint end, StiPen pen, java.lang.Double zoom, java.lang.Boolean transformRect)
StiPointpublic void drawCurve(StiPoint[] points, StiPen pen, java.lang.Double zoom, java.lang.Boolean transformRect)
polygon - pen - zoom - transformRect - public void drawImage(java.awt.image.BufferedImage image,
StiRectangle rect,
java.lang.Boolean stretch,
java.lang.Boolean smooth,
double zoom)
BufferedImage with scaling alpha value 1image - BufferedImagerect - StiRectanglestretch - is need to stretch imagesmooth - is need to smooth imagezoom - public void drawImage(java.awt.image.BufferedImage image,
StiRectangle rect,
java.lang.Boolean stretch,
java.lang.Boolean smooth,
java.lang.Boolean scaleBitmap,
java.lang.Double zoom)
BufferedImage with alpha value 1image - BufferedImagerect - StiRectanglestretch - is need to stretch imagesmooth - is need to smooth imagescaleBitmap - is need to scale imagezoom - public void drawImage(java.awt.image.BufferedImage image,
StiRectangle rect,
java.lang.Boolean stretch,
java.lang.Boolean smooth,
java.lang.Boolean scaleBitmap,
float alpha,
java.lang.Double zoom)
BufferedImageimage - BufferedImagerect - StiRectanglestretch - is need to stretch imagesmooth - is need to smooth imagescaleBitmap - is need to scale imagealpha - alphe valuezoom - public void drawRTFText(java.lang.String text,
StiRectangle rect,
java.lang.Double zoom)
text - rect - StiRectangle with RTF textzoom - public void drawHTMLText(java.lang.String text,
StiRectangle rect,
StiFont font,
StiColor color,
StiTextHorAlignment horAlignment,
StiVertAlignment vertAlignment,
java.lang.Boolean wordWrap,
StiPenStyle linesOfUnderline,
StiBorder border,
StiTextOptions textOptions,
double lineSpacing,
java.lang.Double zoom)
text - rect - StiRectanglefont - StiFontcolor - StiColorhorAlignment - StiTextHorAlignmentvertAlignment - StiVertAlignmentwordWrap - is need wo wrap wordslinesOfUnderline - is need do draw lines of underlineborder - StiBordertextOptions - StiTextOptionszoom - public void drawText(java.lang.String text,
StiRectangle rect,
StiFont font,
StiBrush brush,
StiTextHorAlignment horAlignment,
StiVertAlignment vertAlignment,
java.lang.Boolean wordWrap,
java.lang.Double zoom,
StiPenStyle linesOfUnderline,
StiBorder border,
StiTextOptions textOptions)
text - rect - StiRectangle text rectanglefont - StiFontbrush - StiBrushhorAlignment - StiTextHorAlignmentvertAlignment - StiVertAlignmentwordWrap - is need to wrap wordszoom - linesOfUnderline - is need to draw liens of underlineborder - StiBordertextOptions - StiTextOptionspublic StiRectangle drawAttributedString(java.lang.String allText, java.awt.Font awtFont, StiRectangle rect, java.lang.Boolean underline, java.lang.Boolean wordWrap, StiTextHorAlignment horAlignment, java.lang.Boolean draw, java.util.List<StiLineInfo> lines, java.lang.Boolean useRightToLeft)
allText - awtFont - Fontrect - StiRectangleunderline - in underline fornwordWrap - is need to wrap wordshorAlignment - StiTextHorAlignmentdraw - is need to draw or only calculate text rectlines - - returns string fit linesuseRightToLeft - - Right to left textpublic java.awt.Graphics2D getG()
Graphics2Dpublic java.lang.Double getOffsetX()
public java.lang.Double getOffsetY()
public void setG(java.awt.Graphics2D g)
g - the g to setCopyright © 2020 Stimulsoft. All Rights Reserved.