Interface RMPainter

All Superinterfaces:
Cloneable
All Known Subinterfaces:
RMShapePainter
All Known Implementing Classes:
RMEditorShapePainter, RMShapePainterJ2D

public interface RMPainter extends Cloneable
A base class for painting RMShapes.
  • Method Details

    • getGraphics

      Graphics2D getGraphics()
      Returns the graphics.
    • getColor

      Color getColor()
    • setColor

      void setColor(Color c)
    • getFont

      Font getFont()
    • setFont

      void setFont(Font font)
    • getPaint

      Paint getPaint()
    • setPaint

      void setPaint(Paint paint)
    • getStroke

      Stroke getStroke()
    • setStroke

      void setStroke(Stroke s)
    • getOpacity

      double getOpacity()
      Returns the opacity.
    • setOpacity

      void setOpacity(double aValue)
      Sets the opacity.
    • draw

      void draw(Shape s)
    • fill

      void fill(Shape s)
    • 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

      void drawButton(RMRect aRect, boolean isPressed)
      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

      boolean drawImage(Image img, AffineTransform xform)
    • drawImage

      boolean drawImage(Image img, int x, int y, int width, int height)
    • drawString

      void drawString(String str, double x, double y)
    • drawGlyphVector

      void drawGlyphVector(GlyphVector g, float x, float y)
    • translate

      void translate(double tx, double ty)
    • rotate

      void rotate(double theta)
    • scale

      void scale(double sx, double sy)
    • transform

      void transform(AffineTransform Tx)
    • getStringBounds

      Rectangle2D getStringBounds(String aString)
      Returns the string bounds for current font.
    • getFontAscent

      double getFontAscent()
      Returns the ascender for the current font.
    • getClipBounds

      Rectangle getClipBounds()
    • getClip

      Shape getClip()
    • setClip

      void setClip(Shape clip)
    • clip

      void clip(Shape s)
    • 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()