Package com.treemap.swing.crossplatform
Class SwingTGraphics
java.lang.Object
com.treemap.crossplatform.AbstractTGraphics<Color,Font>
com.treemap.swing.crossplatform.SwingTGraphics
ToDo: <Color,Font,Shape,Image>
-
Field Summary
FieldsFields inherited from class com.treemap.crossplatform.AbstractTGraphics
MINIMUM_FONT_SIZE_TO_DISPLAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearRect
(int x, int y, int width, int height) void
clip
(com.macrofocus.geom.Shape s) createImage
(int width, int height) void
draw3DRect
(int x, int y, int width, int height, boolean raised) void
drawArc
(int x, int y, int width, int height, int startAngle, int arcAngle) boolean
drawClippedImage
(com.macrofocus.igraphics.CPImage img, int x, int y, int w, int h, int width, int height, com.macrofocus.geom.Rectangle bounds, com.macrofocus.geom.Shape shape) boolean
drawImage
(com.macrofocus.igraphics.CPImage img, int x, int y) boolean
drawImage
(com.macrofocus.igraphics.CPImage img, int x, int y, int width, int height) boolean
drawNativeImage
(Image img, int x, int y) void
drawOval
(int x, int y, int width, int height) void
drawPolygon
(int[] xPoints, int[] yPoints, int nPoints) void
drawPolygon
(com.macrofocus.geom.Polygon p) void
drawPolyline
(int[] xPoints, int[] yPoints, int nPoints) void
drawRect
(int x, int y, int width, int height) void
fill
(com.macrofocus.geom.Shape s) void
fill3DRect
(int x, int y, int width, int height, boolean raised) void
fillArc
(int x, int y, int width, int height, int startAngle, int arcAngle) void
fillOval
(int x, int y, int width, int height) void
fillPolygon
(int[] xPoints, int[] yPoints, int nPoints) void
fillPolygon
(com.macrofocus.geom.Polygon p) void
fillRect
(double x, double y, double width, double height) void
fillRect
(int x, int y, int width, int height) void
fillRoundRect
(double x, double y, double width, double height, double arcWidth, double arcHeight) void
void
void
finalize()
com.macrofocus.geom.Rectangle
getClipBounds
(com.macrofocus.geom.Rectangle r) com.macrofocus.geom.Rectangle
Deprecated.com.macrofocus.igraphics.CPColorFactory<Color>
getFont()
double
getStringWidth
(String text) com.macrofocus.geom.AffineTransform
boolean
hitClip
(int x, int y, int width, int height) boolean
hitClip
(com.macrofocus.geom.Rectangle bounds) boolean
boolean
boolean
boolean
void
paintLabel
(com.macrofocus.labeling.EnhancedLabel<Color, Font> l, int x, int y, int w, int h) void
restore()
void
rotate
(double theta) void
rotate
(double theta, double x, double y) void
save()
void
scale
(double sx, double sy) void
setAntialias
(boolean antialias) void
setBackground
(com.macrofocus.igraphics.CPColor<Color> color) void
void
void
void
setGlobalAlpha
(double alpha) void
setInterpolationBilinear
(boolean bilinear) void
setLineDash
(double[] dashPattern) void
setLineWidth
(double lw) void
void
setPaintingForPrint
(boolean paintingForPrint) void
void
void
setTextAntialias
(boolean antialias) void
setTransform
(com.macrofocus.geom.AffineTransform Tx) void
shear
(double shx, double shy) void
softClip
(com.macrofocus.geom.Shape shape) void
stroke
(com.macrofocus.geom.Shape s) void
strokeLine
(int x1, int y1, int x2, int y2) void
strokeRect
(double x, double y, double width, double height) void
strokeRoundRect
(double x, double y, double width, double height, double arcWidth, double arcHeight) toString()
void
transform
(com.macrofocus.geom.AffineTransform Tx) void
translate
(double tx, double ty) void
translate
(int x, int y) Methods inherited from class com.treemap.crossplatform.AbstractTGraphics
findMaxFontSize, fitTextInsideRectangle
-
Field Details
-
gc
-
-
Constructor Details
-
SwingTGraphics
-
-
Method Details
-
getColorFactory
-
paintLabel
-
sizeLabel
-
save
public void save() -
restore
public void restore() -
draw3DRect
public void draw3DRect(int x, int y, int width, int height, boolean raised) -
fill3DRect
public void fill3DRect(int x, int y, int width, int height, boolean raised) -
stroke
public void stroke(com.macrofocus.geom.Shape s) -
fillText
-
fillText
-
fill
public void fill(com.macrofocus.geom.Shape s) -
setPaint
-
setLineWidth
public void setLineWidth(double lw) -
setLineDash
public void setLineDash(double[] dashPattern) -
isInterpolationBilinear
public boolean isInterpolationBilinear() -
setInterpolationBilinear
public void setInterpolationBilinear(boolean bilinear) -
isAntialias
public boolean isAntialias() -
setAntialias
public void setAntialias(boolean antialias) -
isTextAntialias
public boolean isTextAntialias() -
setTextAntialias
public void setTextAntialias(boolean antialias) -
translate
public void translate(int x, int y) -
translate
public void translate(double tx, double ty) -
rotate
public void rotate(double theta) -
rotate
public void rotate(double theta, double x, double y) -
scale
public void scale(double sx, double sy) -
shear
public void shear(double shx, double shy) -
transform
public void transform(com.macrofocus.geom.AffineTransform Tx) -
setTransform
public void setTransform(com.macrofocus.geom.AffineTransform Tx) -
getTransform
public com.macrofocus.geom.AffineTransform getTransform() -
setGlobalAlpha
public void setGlobalAlpha(double alpha) -
setBackground
-
getBackground
-
clip
public void clip(com.macrofocus.geom.Shape s) -
setFill
-
setStroke
-
setColor
-
setRadialGradient
public void setRadialGradient() -
isPaintingForPrint
public boolean isPaintingForPrint() -
setPaintingForPrint
public void setPaintingForPrint(boolean paintingForPrint) -
getNativeGraphics
-
getIGraphics
-
getFont
-
setFont
-
getStringWidth
-
strokeLine
public void strokeLine(int x1, int y1, int x2, int y2) -
fillRect
public void fillRect(int x, int y, int width, int height) -
drawRect
public void drawRect(int x, int y, int width, int height) -
clearRect
public void clearRect(int x, int y, int width, int height) -
strokeRect
public void strokeRect(double x, double y, double width, double height) -
fillRect
public void fillRect(double x, double y, double width, double height) -
strokeRoundRect
public void strokeRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight) -
fillRoundRect
public void fillRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight) -
drawOval
public void drawOval(int x, int y, int width, int height) -
fillOval
public void fillOval(int x, int y, int width, int height) -
drawArc
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
fillArc
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) -
drawPolyline
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) -
drawPolygon
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints) -
drawPolygon
public void drawPolygon(com.macrofocus.geom.Polygon p) -
fillPolygon
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) -
fillPolygon
public void fillPolygon(com.macrofocus.geom.Polygon p) -
createImage
-
drawNativeImage
-
drawImage
public boolean drawImage(com.macrofocus.igraphics.CPImage img, int x, int y) -
drawImage
public boolean drawImage(com.macrofocus.igraphics.CPImage img, int x, int y, int width, int height) -
finalize
public void finalize() -
toString
-
getClipRect
Deprecated. -
hitClip
public boolean hitClip(int x, int y, int width, int height) -
getClipBounds
public com.macrofocus.geom.Rectangle getClipBounds(com.macrofocus.geom.Rectangle r) -
drawClippedImage
public boolean drawClippedImage(com.macrofocus.igraphics.CPImage img, int x, int y, int w, int h, int width, int height, com.macrofocus.geom.Rectangle bounds, com.macrofocus.geom.Shape shape) - Specified by:
drawClippedImage
in interfaceTGraphics<Color,
Font> - Overrides:
drawClippedImage
in classAbstractTGraphics<Color,
Font>
-
softClip
public void softClip(com.macrofocus.geom.Shape shape) -
hitClip
public boolean hitClip(com.macrofocus.geom.Rectangle bounds)
-