C# Class ikvm.awt.NetGraphics

Inheritance: java.awt.Graphics2D
Exibir arquivo Open project: samskivert/ikvm-monotouch Class Usage Examples

Private Properties

Property Type Description
RadiansToDegrees double
SetLineDash void
SetLineJoin void
getClipRect java.awt.Rectangle

Public Methods

Method Description
addRenderingHints ( java hints ) : void
clearRect ( int x, int y, int width, int height ) : void
clip ( java shape ) : void
clipRect ( int x, int y, int w, int h ) : void
dispose ( ) : void
draw ( java shape ) : void
drawArc ( int x, int y, int width, int height, int startAngle, int arcAngle ) : void
drawBytes ( byte data, int offset, int length, int x, int y ) : void
drawChars ( char data, int offset, int length, int x, int y ) : void
drawGlyphVector ( java gv, float x, float y ) : void
drawImage ( java img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java observer ) : bool
drawImage ( java img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java color, java observer ) : bool
drawImage ( java img, int x, int y, int width, int height, java observer ) : bool
drawImage ( java img, int x, int y, int width, int height, java bgcolor, java observer ) : bool
drawImage ( java img, int x, int y, java observer ) : bool
drawImage ( java img, int x, int y, java bgcolor, java observer ) : bool
drawImage ( java img, java xform, ImageObserver observer ) : bool
drawImage ( java image, BufferedImageOp op, int x, int y ) : void
drawLine ( int x1, int y1, int x2, int y2 ) : void
drawOval ( int x, int y, int w, int h ) : void
drawPolygon ( int aX, int aY, int aLength ) : void
drawPolygon ( java polygon ) : void
drawPolyline ( int aX, int aY, int aLength ) : void

Draw a sequence of connected lines

drawRect ( int x, int y, int width, int height ) : void
drawRenderableImage ( java image, java xform ) : void
drawRenderedImage ( java img, java xform ) : void
drawRoundRect ( int x, int y, int w, int h, int arcWidth, int arcHeight ) : void

Apparently there is no rounded rec function in .Net. Draw the rounded rectangle by using lines and arcs.

drawString ( java iterator, float x, float y ) : void
drawString ( java iterator, int x, int y ) : void
drawString ( string text, float x, float y ) : void
drawString ( string str, int x, int y ) : void
fill ( java shape ) : void
fill3DRect ( int x, int y, int width, int height, bool raised ) : void
fillArc ( int x, int y, int width, int height, int startAngle, int arcAngle ) : void
fillOval ( int x, int y, int w, int h ) : void
fillPolygon ( int aX, int aY, int aLength ) : void
fillPolygon ( java polygon ) : void
fillRect ( int x, int y, int width, int height ) : void
fillRoundRect ( int x, int y, int w, int h, int arcWidth, int arcHeight ) : void
getBackground ( ) : java.awt.Color
getClip ( ) : java.awt.Shape
getClipBounds ( ) : java.awt.Rectangle
getClipBounds ( java r ) : java.awt.Rectangle
getColor ( ) : java.awt.Color
getComposite ( ) : java.awt.Composite
getDeviceConfiguration ( ) : java.awt.GraphicsConfiguration
getFont ( ) : java.awt.Font
getFontMetrics ( ) : java.awt.FontMetrics
getFontMetrics ( java f ) : java.awt.FontMetrics
getFontRenderContext ( ) : java.awt.font.FontRenderContext
getPaint ( ) : java.awt.Paint
getRenderingHint ( java hintKey ) : object
getRenderingHints ( ) : java.awt.RenderingHints
getStroke ( ) : java.awt.Stroke
getTransform ( ) : java.awt.geom.AffineTransform
hit ( java rect, java s, bool onStroke ) : bool
rotate ( double theta ) : void
rotate ( double theta, double x, double y ) : void
scale ( double scaleX, double scaleY ) : void
setBackground ( java backcolor ) : void
setClip ( int x, int y, int width, int height ) : void
setClip ( java shape ) : void
setColor ( java color ) : void
setComposite ( java comp ) : void
setFont ( java f ) : void
setPaint ( java paint ) : void
setPaintMode ( ) : void
setRenderingHint ( java hintKey, Object hintValue ) : void
setRenderingHints ( java hints ) : void
setStroke ( java stroke ) : void
setTransform ( java tx ) : void
setXORMode ( java param ) : void
shear ( double shearX, double shearY ) : void
transform ( java tx ) : void
translate ( double x, double y ) : void
translate ( int x, int y ) : void

Protected Methods

Method Description
GetSize ( ) : SizeF

Get the size of the graphics. This is used as a hind for some hacks.

NetGraphics ( Graphics g, java font, Color fgcolor, Color bgcolor ) : System
init ( Graphics graphics ) : void

Private Methods

Method Description
RadiansToDegrees ( double radians ) : double
SetLineDash ( java s ) : void
SetLineJoin ( java s ) : void
getClipRect ( ) : java.awt.Rectangle

Method Details

GetSize() protected method

Get the size of the graphics. This is used as a hind for some hacks.
protected GetSize ( ) : SizeF
return System.Drawing.SizeF

NetGraphics() protected method

protected NetGraphics ( Graphics g, java font, Color fgcolor, Color bgcolor ) : System
g System.Drawing.Graphics
font java
fgcolor Color
bgcolor Color
return System

addRenderingHints() public method

public addRenderingHints ( java hints ) : void
hints java
return void

clearRect() public method

public clearRect ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
return void

clip() public method

public clip ( java shape ) : void
shape java
return void

clipRect() public method

public clipRect ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
return void

dispose() public method

public dispose ( ) : void
return void

draw() public method

public draw ( java shape ) : void
shape java
return void

drawArc() public method

public drawArc ( int x, int y, int width, int height, int startAngle, int arcAngle ) : void
x int
y int
width int
height int
startAngle int
arcAngle int
return void

drawBytes() public method

public drawBytes ( byte data, int offset, int length, int x, int y ) : void
data byte
offset int
length int
x int
y int
return void

drawChars() public method

public drawChars ( char data, int offset, int length, int x, int y ) : void
data char
offset int
length int
x int
y int
return void

drawGlyphVector() public method

public drawGlyphVector ( java gv, float x, float y ) : void
gv java
x float
y float
return void

drawImage() public method

public drawImage ( java img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java observer ) : bool
img java
dx1 int
dy1 int
dx2 int
dy2 int
sx1 int
sy1 int
sx2 int
sy2 int
observer java
return bool

drawImage() public method

public drawImage ( java img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, java color, java observer ) : bool
img java
dx1 int
dy1 int
dx2 int
dy2 int
sx1 int
sy1 int
sx2 int
sy2 int
color java
observer java
return bool

drawImage() public method

public drawImage ( java img, int x, int y, int width, int height, java observer ) : bool
img java
x int
y int
width int
height int
observer java
return bool

drawImage() public method

public drawImage ( java img, int x, int y, int width, int height, java bgcolor, java observer ) : bool
img java
x int
y int
width int
height int
bgcolor java
observer java
return bool

drawImage() public method

public drawImage ( java img, int x, int y, java observer ) : bool
img java
x int
y int
observer java
return bool

drawImage() public method

public drawImage ( java img, int x, int y, java bgcolor, java observer ) : bool
img java
x int
y int
bgcolor java
observer java
return bool

drawImage() public method

public drawImage ( java img, java xform, ImageObserver observer ) : bool
img java
xform java
observer ImageObserver
return bool

drawImage() public method

public drawImage ( java image, BufferedImageOp op, int x, int y ) : void
image java
op BufferedImageOp
x int
y int
return void

drawLine() public method

public drawLine ( int x1, int y1, int x2, int y2 ) : void
x1 int
y1 int
x2 int
y2 int
return void

drawOval() public method

public drawOval ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
return void

drawPolygon() public method

public drawPolygon ( int aX, int aY, int aLength ) : void
aX int
aY int
aLength int
return void

drawPolygon() public method

public drawPolygon ( java polygon ) : void
polygon java
return void

drawPolyline() public method

Draw a sequence of connected lines
public drawPolyline ( int aX, int aY, int aLength ) : void
aX int Array of x coordinates
aY int Array of y coordinates
aLength int Length of coordinate arrays
return void

drawRect() public method

public drawRect ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
return void

drawRenderableImage() public method

public drawRenderableImage ( java image, java xform ) : void
image java
xform java
return void

drawRenderedImage() public method

public drawRenderedImage ( java img, java xform ) : void
img java
xform java
return void

drawRoundRect() public method

Apparently there is no rounded rec function in .Net. Draw the rounded rectangle by using lines and arcs.
public drawRoundRect ( int x, int y, int w, int h, int arcWidth, int arcHeight ) : void
x int
y int
w int
h int
arcWidth int
arcHeight int
return void

drawString() public method

public drawString ( java iterator, float x, float y ) : void
iterator java
x float
y float
return void

drawString() public method

public drawString ( java iterator, int x, int y ) : void
iterator java
x int
y int
return void

drawString() public method

public drawString ( string text, float x, float y ) : void
text string
x float
y float
return void

drawString() public method

public drawString ( string str, int x, int y ) : void
str string
x int
y int
return void

fill() public method

public fill ( java shape ) : void
shape java
return void

fill3DRect() public method

public fill3DRect ( int x, int y, int width, int height, bool raised ) : void
x int
y int
width int
height int
raised bool
return void

fillArc() public method

public fillArc ( int x, int y, int width, int height, int startAngle, int arcAngle ) : void
x int
y int
width int
height int
startAngle int
arcAngle int
return void

fillOval() public method

public fillOval ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
return void

fillPolygon() public method

public fillPolygon ( int aX, int aY, int aLength ) : void
aX int
aY int
aLength int
return void

fillPolygon() public method

public fillPolygon ( java polygon ) : void
polygon java
return void

fillRect() public method

public fillRect ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
return void

fillRoundRect() public method

public fillRoundRect ( int x, int y, int w, int h, int arcWidth, int arcHeight ) : void
x int
y int
w int
h int
arcWidth int
arcHeight int
return void

getBackground() public method

public getBackground ( ) : java.awt.Color
return java.awt.Color

getClip() public method

public getClip ( ) : java.awt.Shape
return java.awt.Shape

getClipBounds() public method

public getClipBounds ( ) : java.awt.Rectangle
return java.awt.Rectangle

getClipBounds() public method

public getClipBounds ( java r ) : java.awt.Rectangle
r java
return java.awt.Rectangle

getColor() public method

public getColor ( ) : java.awt.Color
return java.awt.Color

getComposite() public method

public getComposite ( ) : java.awt.Composite
return java.awt.Composite

getDeviceConfiguration() public method

public getDeviceConfiguration ( ) : java.awt.GraphicsConfiguration
return java.awt.GraphicsConfiguration

getFont() public method

public getFont ( ) : java.awt.Font
return java.awt.Font

getFontMetrics() public method

public getFontMetrics ( ) : java.awt.FontMetrics
return java.awt.FontMetrics

getFontMetrics() public method

public getFontMetrics ( java f ) : java.awt.FontMetrics
f java
return java.awt.FontMetrics

getFontRenderContext() public method

public getFontRenderContext ( ) : java.awt.font.FontRenderContext
return java.awt.font.FontRenderContext

getPaint() public method

public getPaint ( ) : java.awt.Paint
return java.awt.Paint

getRenderingHint() public method

public getRenderingHint ( java hintKey ) : object
hintKey java
return object

getRenderingHints() public method

public getRenderingHints ( ) : java.awt.RenderingHints
return java.awt.RenderingHints

getStroke() public method

public getStroke ( ) : java.awt.Stroke
return java.awt.Stroke

getTransform() public method

public getTransform ( ) : java.awt.geom.AffineTransform
return java.awt.geom.AffineTransform

hit() public method

public hit ( java rect, java s, bool onStroke ) : bool
rect java
s java
onStroke bool
return bool

init() protected method

protected init ( Graphics graphics ) : void
graphics System.Drawing.Graphics
return void

rotate() public method

public rotate ( double theta ) : void
theta double
return void

rotate() public method

public rotate ( double theta, double x, double y ) : void
theta double
x double
y double
return void

scale() public method

public scale ( double scaleX, double scaleY ) : void
scaleX double
scaleY double
return void

setBackground() public method

public setBackground ( java backcolor ) : void
backcolor java
return void

setClip() public method

public setClip ( int x, int y, int width, int height ) : void
x int
y int
width int
height int
return void

setClip() public method

public setClip ( java shape ) : void
shape java
return void

setColor() public method

public setColor ( java color ) : void
color java
return void

setComposite() public method

public setComposite ( java comp ) : void
comp java
return void

setFont() public method

public setFont ( java f ) : void
f java
return void

setPaint() public method

public setPaint ( java paint ) : void
paint java
return void

setPaintMode() public method

public setPaintMode ( ) : void
return void

setRenderingHint() public method

public setRenderingHint ( java hintKey, Object hintValue ) : void
hintKey java
hintValue Object
return void

setRenderingHints() public method

public setRenderingHints ( java hints ) : void
hints java
return void

setStroke() public method

public setStroke ( java stroke ) : void
stroke java
return void

setTransform() public method

public setTransform ( java tx ) : void
tx java
return void

setXORMode() public method

public setXORMode ( java param ) : void
param java
return void

shear() public method

public shear ( double shearX, double shearY ) : void
shearX double
shearY double
return void

transform() public method

public transform ( java tx ) : void
tx java
return void

translate() public method

public translate ( double x, double y ) : void
x double
y double
return void

translate() public method

public translate ( int x, int y ) : void
x int
y int
return void