Package lu.kbra.pclib.awt
Class ImageDrawer
java.lang.Object
lu.kbra.pclib.awt.ImageDrawer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearRect(int x, int y, int width, int height) voidvoidclose()voidvoidvoiddrawArc(int x, int y, int width, int height, int startAngle, int arcAngle) voiddrawLine(int x1, int y1, int x2, int y2) voiddrawOval(int x, int y, int width, int height) voiddrawPolygon(int[] xPoints, int[] yPoints, int nPoints) voidvoiddrawPolyline(int[] xPoints, int[] yPoints, int nPoints) voiddrawRect(int x, int y, int width, int height) voiddrawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) voidvoidfillArc(int x, int y, int width, int height, int startAngle, int arcAngle) voidfillOval(int x, int y, int width, int height) voidfillPolygon(int[] xPoints, int[] yPoints, int nPoints) voidvoidfillRect(int x, int y, int width, int height) voidfillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) getClip()getColor()getFont()getImage()getPaint()getRenderingHint(RenderingHints.Key hintKey) booleanbooleanhitClip(int x, int y, int width, int height) voidrotate(double theta) voidrotate(double theta, double x, double y) voidscale(double sx, double sy) voidsetBackground(Color color) voidsetClip(int x, int y, int width, int height) voidvoidvoidsetComposite(Composite comp) voidsetCyclic(boolean isCyclic) voidvoidvoidvoidsetRenderingHint(RenderingHints.Key hintKey, Object hintValue) voidsetRenderingHints(Map<?, ?> hints) voidvoidvoidsetXORMode(Color c1) voidshear(double shx, double shy) voidvoidtranslate(double tx, double ty) voidtranslate(int x, int y)
-
Constructor Details
-
ImageDrawer
public ImageDrawer(int type, int resX, int resY)
-
-
Method Details
-
clearRect
public void clearRect(int x, int y, int width, int height) -
clip
-
close
public void close() -
close
- Throws:
IOException
-
draw
-
drawArc
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
drawLine
public void drawLine(int x1, int y1, int x2, int y2) -
drawOval
public void drawOval(int x, int y, int width, int height) -
drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) -
drawPolygon
-
drawPolyline
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) -
drawRect
public void drawRect(int x, int y, int width, int height) -
drawRoundRect
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) -
fill
-
fillArc
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
fillOval
public void fillOval(int x, int y, int width, int height) -
fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) -
fillPolygon
-
fillRect
public void fillRect(int x, int y, int width, int height) -
fillRoundRect
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) -
getBackground
-
getClip
-
getClipBounds
-
getClipBounds
-
getColor
-
getComposite
-
getDeviceConfiguration
-
getFont
-
getFontMetrics
-
getFontMetrics
-
getFontRenderContext
-
getImage
-
getPaint
-
getRenderingHint
-
getRenderingHints
-
getStroke
-
getTransform
-
hit
-
hitClip
public boolean hitClip(int x, int y, int width, int height) -
rotate
public void rotate(double theta) -
rotate
public void rotate(double theta, double x, double y) -
scale
public void scale(double sx, double sy) -
setBackground
-
setClip
public void setClip(int x, int y, int width, int height) -
setClip
-
setColor
-
setComposite
-
setCyclic
public void setCyclic(boolean isCyclic) -
setFont
-
setPaint
-
setPaintMode
public void setPaintMode() -
setRenderingHint
-
setRenderingHints
-
setStroke
-
setTransform
-
setXORMode
-
shear
public void shear(double shx, double shy) -
transform
-
translate
public void translate(double tx, double ty) -
translate
public void translate(int x, int y)
-