Package com.inductiveautomation.rm.rm2d
Class AbstractGraphics2D
java.lang.Object
java.awt.Graphics
java.awt.Graphics2D
com.inductiveautomation.rm.rm2d.AbstractGraphics2D
- Direct Known Subclasses:
RMGraphics2D
Class contains properties and methods not particular to ReportMill. In theory, the properties and methods in this
class could be use as a base to create a different implementation of Graphics2D.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRenderingHints
(Map hints) void
drawLine
(int x1, int y1, int x2, int y2) void
drawString
(String str, int x, int y) getColor()
getFont()
getPaint()
getRenderingHint
(RenderingHints.Key hintKey) void
rotate
(double theta) void
rotate
(double theta, double x, double y) void
scale
(double scaleX, double scaleY) void
setBackground
(Color color) void
void
setComposite
(Composite composite) void
void
void
setRenderingHint
(RenderingHints.Key hintKey, Object hintValue) void
setRenderingHints
(Map<?, ?> hints) void
void
setTransform
(AffineTransform transform) void
shear
(double shearX, double shearY) protected void
throwException
(String text) void
transform
(AffineTransform transform) void
translate
(double tx, double ty) void
translate
(int x, int y) Methods inherited from class java.awt.Graphics2D
clip, draw, draw3DRect, drawGlyphVector, drawImage, drawImage, drawRenderableImage, drawRenderedImage, drawString, drawString, drawString, fill, fill3DRect, hit
Methods inherited from class java.awt.Graphics
clearRect, clipRect, copyArea, create, create, dispose, drawArc, drawBytes, drawChars, drawImage, drawImage, drawImage, drawImage, drawImage, drawImage, drawOval, drawPolygon, drawPolygon, drawPolyline, drawRect, drawRoundRect, fillArc, fillOval, fillPolygon, fillPolygon, fillRect, fillRoundRect, finalize, getClip, getClipBounds, getClipBounds, getClipRect, getFontMetrics, hitClip, setClip, setClip, setPaintMode, setXORMode, toString
-
Field Details
-
log
-
composite
-
font
-
fmg
-
-
Method Details
-
drawString
- Specified by:
drawString
in classGraphics2D
-
getDeviceConfiguration
- Specified by:
getDeviceConfiguration
in classGraphics2D
-
setComposite
- Specified by:
setComposite
in classGraphics2D
-
getComposite
- Specified by:
getComposite
in classGraphics2D
-
setPaint
- Specified by:
setPaint
in classGraphics2D
-
getPaint
- Specified by:
getPaint
in classGraphics2D
-
setColor
-
getColor
-
setStroke
- Specified by:
setStroke
in classGraphics2D
-
getStroke
- Specified by:
getStroke
in classGraphics2D
-
setRenderingHint
- Specified by:
setRenderingHint
in classGraphics2D
-
getRenderingHint
- Specified by:
getRenderingHint
in classGraphics2D
-
setRenderingHints
- Specified by:
setRenderingHints
in classGraphics2D
-
addRenderingHints
- Specified by:
addRenderingHints
in classGraphics2D
-
getRenderingHints
- Specified by:
getRenderingHints
in classGraphics2D
-
translate
public void translate(int x, int y) - Specified by:
translate
in classGraphics2D
-
translate
public void translate(double tx, double ty) - Specified by:
translate
in classGraphics2D
-
rotate
public void rotate(double theta) - Specified by:
rotate
in classGraphics2D
-
rotate
public void rotate(double theta, double x, double y) - Specified by:
rotate
in classGraphics2D
-
scale
public void scale(double scaleX, double scaleY) - Specified by:
scale
in classGraphics2D
-
shear
public void shear(double shearX, double shearY) - Specified by:
shear
in classGraphics2D
-
transform
- Specified by:
transform
in classGraphics2D
-
setTransform
- Specified by:
setTransform
in classGraphics2D
-
getTransform
- Specified by:
getTransform
in classGraphics2D
-
setBackground
- Specified by:
setBackground
in classGraphics2D
-
getBackground
- Specified by:
getBackground
in classGraphics2D
-
getFontRenderContext
- Specified by:
getFontRenderContext
in classGraphics2D
-
getFont
-
setFont
-
getFontMetrics
- Specified by:
getFontMetrics
in classGraphics
-
drawLine
public void drawLine(int x1, int y1, int x2, int y2) -
throwException
-