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 TypeMethodDescriptionvoid
clone()
Standard clone implementation.void
dispose()
void
void
drawButton
(double x, double y, double w, double h, boolean isPressed) Draws a button for the given rect with an option for pressed.void
drawButton
(RMRect aRect, boolean isPressed) Draws a button for the given rect with an option for pressed.void
drawGlyphVector
(GlyphVector g, float x, float y) boolean
boolean
drawImage
(Image img, AffineTransform xform) void
drawLine
(double x1, double y1, double x2, double y2) void
drawRect
(double x, double y, double w, double h) void
drawString
(String str, double x, double y) void
void
fill3DRect
(double x, double y, double w, double h, boolean raised) void
fillRect
(double x, double y, double w, double h) getClip()
getColor()
getFont()
double
Returns the ascender for the current font.Returns the graphics.double
Returns the opacity.getPaint()
getStringBounds
(String aString) Returns the string bounds for current font.boolean
Returns whether shape painting is really printing.void
rotate
(double theta) void
scale
(double sx, double sy) boolean
setAntialiasing
(boolean aValue) Sets whether antialiasing.void
void
void
void
setOpacity
(double aValue) Sets the opacity.void
void
void
void
translate
(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()
-