Package org.robovm.apple.coregraphics
Class CGContext
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.coregraphics.CGContext
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
CGBitmapContext,CGPDFContext
public class CGContext extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCGContext.CGContextPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedCGContext() -
Method Summary
Modifier and Type Method Description voidaddArc(double x, double y, double radius, double startAngle, double endAngle, int clockwise)voidaddArcToPoint(double x1, double y1, double x2, double y2, double radius)voidaddCurveToPoint(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)voidaddEllipseInRect(CGRect rect)voidaddLines(CGPoint[] points)voidaddLineToPoint(double x, double y)voidaddPath(CGPath path)voidaddQuadCurveToPoint(double cpx, double cpy, double x, double y)voidaddRect(CGRect rect)voidaddRects(CGRect[] rects)voidbeginPage(CGRect mediaBox)voidbeginPath()voidbeginTransparencyLayer(CGRect rect, NSDictionary auxInfo)voidbeginTransparencyLayer(NSDictionary auxiliaryInfo)voidclearRect(CGRect rect)voidclip()voidclipToMask(CGRect rect, CGImage mask)voidclipToRect(CGRect rect)voidclipToRects(CGRect[] rects)voidclosePath()voidconcatCTM(CGAffineTransform transform)CGPointconvertPointToDeviceSpace(CGPoint point)CGPointconvertPointToUserSpace(CGPoint point)CGRectconvertRectToDeviceSpace(CGRect rect)CGRectconvertRectToUserSpace(CGRect rect)CGSizeconvertSizeToDeviceSpace(CGSize size)CGSizeconvertSizeToUserSpace(CGSize size)voiddrawImage(CGRect rect, CGImage image)voiddrawLayerAtPoint(CGPoint point, CGLayer layer)voiddrawLayerInRect(CGRect rect, CGLayer layer)voiddrawLinearGradient(CGGradient gradient, CGPoint startPoint, CGPoint endPoint, CGGradientDrawingOptions options)voiddrawPath(CGPathDrawingMode mode)voiddrawPDFPage(CGPDFPage page)voiddrawRadialGradient(CGGradient gradient, CGPoint startCenter, double startRadius, CGPoint endCenter, double endRadius, CGGradientDrawingOptions options)voiddrawShading(CGShading shading)voiddrawTiledImage(CGRect rect, CGImage image)voidendPage()voidendTransparencyLayer()voidevenOddClip()voidevenOddFillPath()voidfillEllipseInRect(CGRect rect)voidfillPath()voidfillRect(CGRect rect)voidfillRects(CGRect[] rects)voidflush()static longgetClassTypeID()CGRectgetClipBoundingBox()CGAffineTransformgetCTM()CGInterpolationQualitygetInterpolationQuality()CGPathgetPath()CGRectgetPathBoundingBox()CGPointgetPathCurrentPoint()CGAffineTransformgetTextMatrix()CGPointgetTextPosition()CGAffineTransformgetUserSpaceToDeviceSpaceTransform()booleanisPathEmpty()voidmoveToPoint(double x, double y)booleanpathContainsPoint(CGPoint point, CGPathDrawingMode mode)voidreplacePathWithStrokedPath()voidresetClip()voidrestoreGState()voidrotateCTM(double angle)voidsaveGState()voidscaleCTM(double sx, double sy)voidselectFont(String name, double size, CGTextEncoding textEncoding)Deprecated.Deprecated in iOS 7.0.voidsetAllowsAntialiasing(boolean allowsAntialiasing)voidsetAllowsFontSmoothing(boolean allowsFontSmoothing)voidsetAllowsFontSubpixelPositioning(boolean allowsFontSubpixelPositioning)voidsetAllowsFontSubpixelQuantization(boolean allowsFontSubpixelQuantization)voidsetAlpha(double alpha)voidsetBlendMode(CGBlendMode mode)voidsetCharacterSpacing(double spacing)voidsetCMYKFillColor(double cyan, double magenta, double yellow, double black, double alpha)voidsetCMYKStrokeColor(double cyan, double magenta, double yellow, double black, double alpha)voidsetFillColor(double[] components)voidsetFillColor(float[] components)voidsetFillColor(CGColor color)voidsetFillColorSpace(CGColorSpace space)voidsetFillPattern(CGPattern pattern, double[] components)voidsetFillPattern(CGPattern pattern, float[] components)voidsetFlatness(double flatness)voidsetFont(CGFont font)voidsetFontSize(double size)voidsetGrayFillColor(double gray, double alpha)voidsetGrayStrokeColor(double gray, double alpha)voidsetInterpolationQuality(CGInterpolationQuality quality)voidsetLineCap(CGLineCap cap)voidsetLineDash(double phase, double[] lengths)voidsetLineDash(double phase, float[] lengths, long count)voidsetLineJoin(CGLineJoin join)voidsetLineWidth(double width)voidsetMiterLimit(double limit)voidsetPatternPhase(CGSize phase)voidsetRenderingIntent(CGColorRenderingIntent intent)voidsetRGBFillColor(double red, double green, double blue, double alpha)voidsetRGBStrokeColor(double red, double green, double blue, double alpha)voidsetShadow(CGSize offset, double blur)voidsetShadow(CGSize offset, double blur, CGColor color)voidsetShouldAntialias(boolean shouldAntialias)voidsetShouldSmoothFonts(boolean shouldSmoothFonts)voidsetShouldSubpixelPositionFonts(boolean shouldSubpixelPositionFonts)voidsetShouldSubpixelQuantizeFonts(boolean shouldSubpixelQuantizeFonts)voidsetStrokeColor(double[] components)voidsetStrokeColor(float[] components)voidsetStrokeColor(CGColor color)voidsetStrokeColorSpace(CGColorSpace space)voidsetStrokePattern(CGPattern pattern, double[] components)voidsetStrokePattern(CGPattern pattern, float[] components)voidsetTextDrawingMode(CGTextDrawingMode mode)voidsetTextMatrix(CGAffineTransform t)voidsetTextPosition(double x, double y)voidshowGlyphs(char[] glyphs)Deprecated.Deprecated in iOS 7.0.voidshowGlyphsAtPoint(double x, double y, char[] glyphs)Deprecated.Deprecated in iOS 7.0.voidshowGlyphsAtPositions(char[] glyphs, CGPoint[] positions, long count)voidshowGlyphsWithAdvances(char[] glyphs, CGSize[] advances)Deprecated.Deprecated in iOS 7.0.voidshowText(String string)Deprecated.Deprecated in iOS 7.0.voidshowTextAtPoint(double x, double y, String string)Deprecated.Deprecated in iOS 7.0.voidstrokeEllipseInRect(CGRect rect)voidstrokeLineSegments(CGPoint[] points)voidstrokePath()voidstrokeRect(CGRect rect)voidstrokeRect(CGRect rect, double width)voidsynchronize()voidtranslateCTM(double tx, double ty)Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
Constructor Details
-
CGContext
protected CGContext()
-
-
Method Details
-
addRects
-
addLines
-
clipToRects
-
fillRects
-
setFillColor
public void setFillColor(double[] components) -
setFillColor
public void setFillColor(float[] components) -
setStrokeColor
public void setStrokeColor(double[] components) -
setStrokeColor
public void setStrokeColor(float[] components) -
setFillPattern
-
setFillPattern
-
setStrokePattern
-
setStrokePattern
-
setLineDash
public void setLineDash(double phase, double[] lengths) -
setLineDash
public void setLineDash(double phase, float[] lengths, long count) -
strokeLineSegments
-
selectFont
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
showText
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
showTextAtPoint
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
showGlyphs
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
showGlyphsAtPoint
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
showGlyphsAtPositions
-
showGlyphsWithAdvances
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getClassTypeID
public static long getClassTypeID() -
saveGState
public void saveGState() -
restoreGState
public void restoreGState() -
scaleCTM
public void scaleCTM(double sx, double sy) -
translateCTM
public void translateCTM(double tx, double ty) -
rotateCTM
public void rotateCTM(double angle) -
concatCTM
-
getCTM
-
setLineWidth
public void setLineWidth(double width) -
setLineCap
-
setLineJoin
-
setMiterLimit
public void setMiterLimit(double limit) -
setFlatness
public void setFlatness(double flatness) -
setAlpha
public void setAlpha(double alpha) -
setBlendMode
-
beginPath
public void beginPath() -
moveToPoint
public void moveToPoint(double x, double y) -
addLineToPoint
public void addLineToPoint(double x, double y) -
addCurveToPoint
public void addCurveToPoint(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y) -
addQuadCurveToPoint
public void addQuadCurveToPoint(double cpx, double cpy, double x, double y) -
closePath
public void closePath() -
addRect
-
addEllipseInRect
-
addArc
public void addArc(double x, double y, double radius, double startAngle, double endAngle, int clockwise) -
addArcToPoint
public void addArcToPoint(double x1, double y1, double x2, double y2, double radius) -
addPath
-
replacePathWithStrokedPath
public void replacePathWithStrokedPath() -
isPathEmpty
public boolean isPathEmpty() -
getPathCurrentPoint
-
getPathBoundingBox
-
getPath
-
pathContainsPoint
-
drawPath
-
fillPath
public void fillPath() -
evenOddFillPath
public void evenOddFillPath() -
strokePath
public void strokePath() -
fillRect
-
strokeRect
-
strokeRect
-
clearRect
-
fillEllipseInRect
-
strokeEllipseInRect
-
clip
public void clip() -
evenOddClip
public void evenOddClip() -
resetClip
public void resetClip() -
clipToMask
-
getClipBoundingBox
-
clipToRect
-
setFillColor
-
setStrokeColor
-
setFillColorSpace
-
setStrokeColorSpace
-
setPatternPhase
-
setGrayFillColor
public void setGrayFillColor(double gray, double alpha) -
setGrayStrokeColor
public void setGrayStrokeColor(double gray, double alpha) -
setRGBFillColor
public void setRGBFillColor(double red, double green, double blue, double alpha) -
setRGBStrokeColor
public void setRGBStrokeColor(double red, double green, double blue, double alpha) -
setCMYKFillColor
public void setCMYKFillColor(double cyan, double magenta, double yellow, double black, double alpha) -
setCMYKStrokeColor
public void setCMYKStrokeColor(double cyan, double magenta, double yellow, double black, double alpha) -
setRenderingIntent
-
drawImage
-
drawTiledImage
-
getInterpolationQuality
-
setInterpolationQuality
-
setShadow
-
setShadow
-
drawLinearGradient
public void drawLinearGradient(CGGradient gradient, CGPoint startPoint, CGPoint endPoint, CGGradientDrawingOptions options) -
drawRadialGradient
public void drawRadialGradient(CGGradient gradient, CGPoint startCenter, double startRadius, CGPoint endCenter, double endRadius, CGGradientDrawingOptions options) -
drawShading
-
setCharacterSpacing
public void setCharacterSpacing(double spacing) -
setTextPosition
public void setTextPosition(double x, double y) -
getTextPosition
-
setTextMatrix
-
getTextMatrix
-
setTextDrawingMode
-
setFont
-
setFontSize
public void setFontSize(double size) -
drawPDFPage
-
beginPage
-
endPage
public void endPage() -
flush
public void flush() -
synchronize
public void synchronize() -
setShouldAntialias
public void setShouldAntialias(boolean shouldAntialias) -
setAllowsAntialiasing
public void setAllowsAntialiasing(boolean allowsAntialiasing) -
setShouldSmoothFonts
public void setShouldSmoothFonts(boolean shouldSmoothFonts) -
setAllowsFontSmoothing
public void setAllowsFontSmoothing(boolean allowsFontSmoothing) -
setShouldSubpixelPositionFonts
public void setShouldSubpixelPositionFonts(boolean shouldSubpixelPositionFonts) -
setAllowsFontSubpixelPositioning
public void setAllowsFontSubpixelPositioning(boolean allowsFontSubpixelPositioning) -
setShouldSubpixelQuantizeFonts
public void setShouldSubpixelQuantizeFonts(boolean shouldSubpixelQuantizeFonts) -
setAllowsFontSubpixelQuantization
public void setAllowsFontSubpixelQuantization(boolean allowsFontSubpixelQuantization) -
beginTransparencyLayer
-
beginTransparencyLayer
-
endTransparencyLayer
public void endTransparencyLayer() -
getUserSpaceToDeviceSpaceTransform
-
convertPointToDeviceSpace
-
convertPointToUserSpace
-
convertSizeToDeviceSpace
-
convertSizeToUserSpace
-
convertRectToDeviceSpace
-
convertRectToUserSpace
-
drawLayerInRect
-
drawLayerAtPoint
-