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 TypeMethodDescriptionvoidclearRect(int x, int y, int width, int height) voidclip(com.macrofocus.geom.Shape s) createImage(int width, int height) voiddraw3DRect(int x, int y, int width, int height, boolean raised) 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, com.macrofocus.geom.Rectangle bounds, com.macrofocus.geom.Shape shape) booleandrawImage(com.macrofocus.igraphics.CPImage img, int x, int y) booleandrawImage(com.macrofocus.igraphics.CPImage img, int x, int y, int width, int height) booleandrawNativeImage(Image img, int x, int y) voiddrawOval(int x, int y, int width, int height) voiddrawPolygon(int[] xPoints, int[] yPoints, int nPoints) voiddrawPolygon(com.macrofocus.geom.Polygon p) voiddrawPolyline(int[] xPoints, int[] yPoints, int nPoints) voiddrawRect(int x, int y, int width, int height) voidfill(com.macrofocus.geom.Shape s) voidfill3DRect(int x, int y, int width, int height, boolean raised) 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) voidfillPolygon(com.macrofocus.geom.Polygon p) 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) voidvoidvoidfinalize()com.macrofocus.geom.RectanglegetClipBounds(com.macrofocus.geom.Rectangle r) com.macrofocus.geom.RectangleDeprecated.com.macrofocus.igraphics.CPColorFactory<Color> getFont()doublegetStringWidth(String text) com.macrofocus.geom.AffineTransformbooleanhitClip(int x, int y, int width, int height) booleanhitClip(com.macrofocus.geom.Rectangle bounds) booleanbooleanbooleanbooleanvoidpaintLabel(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) voidsetAntialias(boolean antialias) voidsetBackground(com.macrofocus.igraphics.CPColor<Color> color) voidvoidvoidvoidsetGlobalAlpha(double alpha) voidsetInterpolationBilinear(boolean bilinear) voidsetLineDash(double[] dashPattern) voidsetLineWidth(double lw) voidvoidsetPaintingForPrint(boolean paintingForPrint) voidvoidvoidsetTextAntialias(boolean antialias) voidsetTransform(com.macrofocus.geom.AffineTransform Tx) voidshear(double shx, double shy) voidsoftClip(com.macrofocus.geom.Shape shape) voidstroke(com.macrofocus.geom.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) toString()voidtransform(com.macrofocus.geom.AffineTransform Tx) voidtranslate(double tx, double ty) voidtranslate(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:
drawClippedImagein interfaceTGraphics<Color,Font> - Overrides:
drawClippedImagein classAbstractTGraphics<Color,Font>
-
softClip
public void softClip(com.macrofocus.geom.Shape shape) -
hitClip
public boolean hitClip(com.macrofocus.geom.Rectangle bounds)
-