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:
JavaFXTGraphics
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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) double
findMaxFontSize
(com.macrofocus.labeling.EnhancedLabel<Color, Font> elabel, com.macrofocus.igraphics.CPFont<Font> font, double maxWidth) 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) boolean
hitClip
(com.macrofocus.geom.Rectangle bounds) void
softClip
(com.macrofocus.geom.Shape shape) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
fitTextInsideRectangle
in interfaceTGraphics<Color,
Font>
-
findMaxFontSize
public double findMaxFontSize(com.macrofocus.labeling.EnhancedLabel<Color, Font> elabel, com.macrofocus.igraphics.CPFont<Font> font, double maxWidth) - Specified by:
findMaxFontSize
in 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:
drawClippedImage
in interfaceTGraphics<Color,
Font>
-
softClip
public void softClip(com.macrofocus.geom.Shape shape) -
hitClip
public boolean hitClip(com.macrofocus.geom.Rectangle bounds)
-