Interface RMPainter
- All Superinterfaces:
Cloneable
- All Known Subinterfaces:
RMShapePainter
- All Known Implementing Classes:
RMEditorShapePainter,RMShapePainterJ2D
A base class for painting RMShapes.
-
Method Summary
Modifier 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
-
getGraphics
Graphics2D getGraphics()Returns the graphics. -
getColor
Color getColor() -
setColor
-
getFont
Font getFont() -
setFont
-
getPaint
Paint getPaint() -
setPaint
-
getStroke
Stroke getStroke() -
setStroke
-
getOpacity
double getOpacity()Returns the opacity. -
setOpacity
void setOpacity(double aValue) Sets the opacity. -
draw
-
fill
-
drawLine
void drawLine(double x1, double y1, double x2, double y2) -
fillRect
void fillRect(double x, double y, double w, double h) -
drawRect
void drawRect(double x, double y, double w, double h) -
fill3DRect
void fill3DRect(double x, double y, double w, double h, boolean raised) -
drawButton
Draws a button for the given rect with an option for pressed. -
drawButton
void 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
-
translate
void translate(double tx, double ty) -
rotate
void rotate(double theta) -
scale
void scale(double sx, double sy) -
transform
-
getStringBounds
Returns the string bounds for current font. -
getFontAscent
double getFontAscent()Returns the ascender for the current font. -
getClipBounds
Rectangle getClipBounds() -
getClip
Shape getClip() -
setClip
-
clip
-
setAntialiasing
boolean setAntialiasing(boolean aValue) Sets whether antialiasing. -
isPrinting
boolean isPrinting()Returns whether shape painting is really printing. -
clone
RMPainter clone()Standard clone implementation. -
dispose
void dispose()
-