Interface RMPainter
- All Superinterfaces:
- Cloneable
- All Known Subinterfaces:
- RMShapePainter
- All Known Implementing Classes:
- RMEditorShapePainter,- RMShapePainterJ2D
A base class for painting RMShapes.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclone()Standard clone implementation.voiddispose()voidvoiddrawButton(double x, double y, double w, double h, boolean isPressed) Draws a button for the given rect with an option for pressed.voiddrawButton(RMRect aRect, boolean isPressed) Draws a button for the given rect with an option for pressed.voiddrawGlyphVector(GlyphVector g, float x, float y) booleanbooleandrawImage(Image img, AffineTransform xform) voiddrawLine(double x1, double y1, double x2, double y2) voiddrawRect(double x, double y, double w, double h) voiddrawString(String str, double x, double y) voidvoidfill3DRect(double x, double y, double w, double h, boolean raised) voidfillRect(double x, double y, double w, double h) getClip()getColor()getFont()doubleReturns the ascender for the current font.Returns the graphics.doubleReturns the opacity.getPaint()getStringBounds(String aString) Returns the string bounds for current font.booleanReturns whether shape painting is really printing.voidrotate(double theta) voidscale(double sx, double sy) booleansetAntialiasing(boolean aValue) Sets whether antialiasing.voidvoidvoidvoidsetOpacity(double aValue) Sets the opacity.voidvoidvoidvoidtranslate(double tx, double ty) 
- 
Method Details- 
getGraphicsGraphics2D getGraphics()Returns the graphics.
- 
getColorColor getColor()
- 
setColor
- 
getFontFont getFont()
- 
setFont
- 
getPaintPaint getPaint()
- 
setPaint
- 
getStrokeStroke getStroke()
- 
setStroke
- 
getOpacitydouble getOpacity()Returns the opacity.
- 
setOpacityvoid setOpacity(double aValue) Sets the opacity.
- 
draw
- 
fill
- 
drawLinevoid drawLine(double x1, double y1, double x2, double y2) 
- 
fillRectvoid fillRect(double x, double y, double w, double h) 
- 
drawRectvoid drawRect(double x, double y, double w, double h) 
- 
fill3DRectvoid fill3DRect(double x, double y, double w, double h, boolean raised) 
- 
drawButtonDraws a button for the given rect with an option for pressed.
- 
drawButtonvoid drawButton(double x, double y, double w, double h, boolean isPressed) Draws a button for the given rect with an option for pressed.
- 
drawImage
- 
drawImage
- 
drawString
- 
drawGlyphVector
- 
translatevoid translate(double tx, double ty) 
- 
rotatevoid rotate(double theta) 
- 
scalevoid scale(double sx, double sy) 
- 
transform
- 
getStringBoundsReturns the string bounds for current font.
- 
getFontAscentdouble getFontAscent()Returns the ascender for the current font.
- 
getClipBoundsRectangle getClipBounds()
- 
getClipShape getClip()
- 
setClip
- 
clip
- 
setAntialiasingboolean setAntialiasing(boolean aValue) Sets whether antialiasing.
- 
isPrintingboolean isPrinting()Returns whether shape painting is really printing.
- 
cloneRMPainter clone()Standard clone implementation.
- 
disposevoid dispose()
 
-