Package com.treemap.crossplatform
Class AbstractTGraphics<Color,Font>
java.lang.Object
com.treemap.crossplatform.AbstractTGraphics<Color,Font>
- All Implemented Interfaces:
TGraphics<Color,Font>
- Direct Known Subclasses:
SwingTGraphics
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandrawClippedImage(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) 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, com.macrofocus.geom.Rectangle2D bounds, double scaleFactor, boolean expand) booleanhitClip(com.macrofocus.geom.Rectangle bounds) voidsoftClip(com.macrofocus.geom.Shape shape) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.treemap.crossplatform.TGraphics
clearRect, clip, createImage, drawArc, drawImage, drawImage, drawNativeImage, drawOval, drawPolygon, drawPolyline, fill, fillArc, fillOval, fillPolygon, fillRect, fillRect, fillRoundRect, fillText, fillText, getBackground, getColorFactory, getFont, getIGraphics, getNativeGraphics, getStringWidth, getTransform, isAntialias, isInterpolationBilinear, isPaintingForPrint, isTextAntialias, paintLabel, restore, rotate, rotate, save, scale, setAntialias, setBackground, setColor, setFill, setFont, setGlobalAlpha, setInterpolationBilinear, setLineDash, setLineWidth, setPaint, setPaintingForPrint, setRadialGradient, setStroke, setTextAntialias, setTransform, shear, sizeLabel, stroke, strokeLine, strokeRect, strokeRoundRect, transform, translate, translate
-
Field Details
-
MINIMUM_FONT_SIZE_TO_DISPLAY
public static final float MINIMUM_FONT_SIZE_TO_DISPLAY- See Also:
-
-
Constructor Details
-
AbstractTGraphics
public AbstractTGraphics()
-
-
Method Details
-
fitTextInsideRectangle
public double fitTextInsideRectangle(com.macrofocus.labeling.EnhancedLabel<Color, Font> elabel, PreferredSize pf, com.macrofocus.igraphics.CPFont<Font> font, com.macrofocus.geom.Rectangle2D bounds, double scaleFactor, boolean expand) - Specified by:
fitTextInsideRectanglein interfaceTGraphics<Color,Font>
-
findMaxFontSize
public double findMaxFontSize(com.macrofocus.labeling.EnhancedLabel<Color, Font> elabel, com.macrofocus.igraphics.CPFont<Font> font, double maxWidth) - Specified by:
findMaxFontSizein interfaceTGraphics<Color,Font>
-
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>
-
softClip
public void softClip(com.macrofocus.geom.Shape shape) -
hitClip
public boolean hitClip(com.macrofocus.geom.Rectangle bounds)
-