Interface TGraphics<Color,Font>
-
- All Known Implementing Classes:
AbstractTGraphics,SwingTGraphics
public interface TGraphics<Color,Font>ToDo: <Color,Font,Shape,Image>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearRect(int x, int y, int width, int height)voidclip(java.awt.Shape s)java.awt.image.BufferedImagecreateImage(int width, int height)voiddrawArc(int x, int y, int width, int height, int startAngle, int arcAngle)booleandrawClippedImage(com.macrofocus.igraphics.CPImage img, int x, int y, int w, int h, int width, int height, java.awt.Rectangle bounds, java.awt.Shape shape)booleandrawImage(com.macrofocus.igraphics.CPImage img, int x, int y)booleandrawImage(com.macrofocus.igraphics.CPImage img, int x, int y, int w, int h)booleandrawNativeImage(java.awt.Image img, int x, int y)voiddrawOval(int x, int y, int width, int height)voiddrawPolygon(int[] xPoints, int[] yPoints, int nPoints)voiddrawPolyline(int[] xPoints, int[] yPoints, int nPoints)voidfill(java.awt.Shape s)voidfillArc(int x, int y, int width, int height, int startAngle, int arcAngle)voidfillOval(int x, int y, int width, int height)voidfillPolygon(int[] xPoints, int[] yPoints, int nPoints)voidfillRect(double x, double y, double width, double height)voidfillRect(int x, int y, int width, int height)voidfillRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight)voidfillText(java.lang.String str, float x, float y)voidfillText(java.lang.String str, int x, int y)doublefindMaxFontSize(com.macrofocus.labeling.EnhancedLabel<Color,Font> elabel, com.macrofocus.igraphics.CPFont<Font> font, double maxWidth)doublefitTextInsideRectangle(com.macrofocus.labeling.EnhancedLabel<Color,Font> elabel, PreferredSize pf, com.macrofocus.igraphics.CPFont<Font> font, java.awt.Rectangle bounds, double scaleFactor, boolean expand)ColorgetBackground()com.macrofocus.igraphics.CPColorFactory<Color>getColorFactory()FontgetFont()com.macrofocus.igraphics.IGraphics<Color,Font>getIGraphics()java.lang.ObjectgetNativeGraphics()java.lang.ObjectgetRenderingHint(java.awt.RenderingHints.Key hintKey)doublegetStringWidth(java.lang.String text)java.awt.geom.AffineTransformgetTransform()booleanhitClip(java.awt.Rectangle bounds)booleanisPaintingForPrint()voidpaintLabel(com.macrofocus.labeling.EnhancedLabel<Color,Font> l, int x, int y, int w, int h)voidrestore()voidrotate(double theta)voidrotate(double theta, double x, double y)voidsave()voidscale(double sx, double sy)voidsetBackground(com.macrofocus.igraphics.CPColor<Color> color)voidsetColor(com.macrofocus.igraphics.CPColor<Color> c)voidsetFill(com.macrofocus.igraphics.CPColor<Color> c)voidsetFont(Font font)voidsetGlobalAlpha(double alpha)voidsetLineDash(double[] dashPattern)voidsetLineWidth(double lw)voidsetPaint(java.awt.Paint paint)voidsetPaintingForPrint(boolean paintingForPrint)voidsetRadialGradient()voidsetRenderingHint(java.awt.RenderingHints.Key hintKey, java.lang.Object hintValue)voidsetStroke(com.macrofocus.igraphics.CPColor<Color> c)voidsetTransform(java.awt.geom.AffineTransform t)voidshear(double shx, double shy)PreferredSizesizeLabel(com.macrofocus.labeling.EnhancedLabel<Color,Font> l, int w, int h)voidsoftClip(java.awt.Shape screenBounds)voidstroke(java.awt.Shape s)voidstrokeLine(int x1, int y1, int x2, int y2)voidstrokeRect(double x, double y, double width, double height)voidstrokeRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight)voidtransform(java.awt.geom.AffineTransform t)voidtranslate(double tx, double ty)voidtranslate(int tx, int ty)
-
-
-
Method Detail
-
getColorFactory
com.macrofocus.igraphics.CPColorFactory<Color> getColorFactory()
-
paintLabel
void paintLabel(com.macrofocus.labeling.EnhancedLabel<Color,Font> l, int x, int y, int w, int h)
-
sizeLabel
PreferredSize sizeLabel(com.macrofocus.labeling.EnhancedLabel<Color,Font> l, int w, int h)
-
save
void save()
-
restore
void restore()
-
setPaint
void setPaint(java.awt.Paint paint)
-
setFill
void setFill(com.macrofocus.igraphics.CPColor<Color> c)
-
setStroke
void setStroke(com.macrofocus.igraphics.CPColor<Color> c)
-
setColor
void setColor(com.macrofocus.igraphics.CPColor<Color> c)
-
setRadialGradient
void setRadialGradient()
-
isPaintingForPrint
boolean isPaintingForPrint()
-
setPaintingForPrint
void setPaintingForPrint(boolean paintingForPrint)
-
getNativeGraphics
java.lang.Object getNativeGraphics()
-
getBackground
Color getBackground()
-
setBackground
void setBackground(com.macrofocus.igraphics.CPColor<Color> color)
-
setGlobalAlpha
void setGlobalAlpha(double alpha)
-
setLineWidth
void setLineWidth(double lw)
-
setLineDash
void setLineDash(double[] dashPattern)
-
getRenderingHint
java.lang.Object getRenderingHint(java.awt.RenderingHints.Key hintKey)
-
setRenderingHint
void setRenderingHint(java.awt.RenderingHints.Key hintKey, java.lang.Object hintValue)
-
stroke
void stroke(java.awt.Shape s)
-
fill
void fill(java.awt.Shape s)
-
getFont
Font getFont()
-
setFont
void setFont(Font font)
-
getStringWidth
double getStringWidth(java.lang.String text)
-
fillText
void fillText(java.lang.String str, int x, int y)
-
fillText
void fillText(java.lang.String str, float x, float y)
-
translate
void translate(int tx, int ty)
-
translate
void translate(double tx, double ty)
-
rotate
void rotate(double theta)
-
rotate
void rotate(double theta, double x, double y)
-
scale
void scale(double sx, double sy)
-
shear
void shear(double shx, double shy)
-
transform
void transform(java.awt.geom.AffineTransform t)
-
getTransform
java.awt.geom.AffineTransform getTransform()
-
setTransform
void setTransform(java.awt.geom.AffineTransform t)
-
clip
void clip(java.awt.Shape s)
-
strokeLine
void strokeLine(int x1, int y1, int x2, int y2)
-
fillRect
void fillRect(int x, int y, int width, int height)
-
clearRect
void clearRect(int x, int y, int width, int height)
-
strokeRect
void strokeRect(double x, double y, double width, double height)
-
fillRect
void fillRect(double x, double y, double width, double height)
-
strokeRoundRect
void strokeRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight)
-
fillRoundRect
void fillRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight)
-
drawOval
void drawOval(int x, int y, int width, int height)
-
fillOval
void fillOval(int x, int y, int width, int height)
-
drawArc
void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle)
-
fillArc
void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle)
-
drawPolyline
void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
-
drawPolygon
void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
-
fillPolygon
void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
-
createImage
java.awt.image.BufferedImage createImage(int width, int height)
-
drawNativeImage
boolean drawNativeImage(java.awt.Image img, int x, int y)
-
drawImage
boolean drawImage(com.macrofocus.igraphics.CPImage img, int x, int y)
-
drawImage
boolean drawImage(com.macrofocus.igraphics.CPImage img, int x, int y, int w, int h)
-
fitTextInsideRectangle
double fitTextInsideRectangle(com.macrofocus.labeling.EnhancedLabel<Color,Font> elabel, PreferredSize pf, com.macrofocus.igraphics.CPFont<Font> font, java.awt.Rectangle bounds, double scaleFactor, boolean expand)
-
findMaxFontSize
double findMaxFontSize(com.macrofocus.labeling.EnhancedLabel<Color,Font> elabel, com.macrofocus.igraphics.CPFont<Font> font, double maxWidth)
-
drawClippedImage
boolean drawClippedImage(com.macrofocus.igraphics.CPImage img, int x, int y, int w, int h, int width, int height, java.awt.Rectangle bounds, java.awt.Shape shape)
-
hitClip
boolean hitClip(java.awt.Rectangle bounds)
-
softClip
void softClip(java.awt.Shape screenBounds)
-
-