Class AbstractTGraphics<Color,Font>
- java.lang.Object
-
- com.macrofocus.treemap.crossplatform.AbstractTGraphics<Color,Font>
-
- All Implemented Interfaces:
TGraphics<Color,Font>
- Direct Known Subclasses:
SwingTGraphics
public abstract class AbstractTGraphics<Color,Font> extends java.lang.Object implements TGraphics<Color,Font>
-
-
Field Summary
Fields Modifier and Type Field Description static float
MINIMUM_FONT_SIZE_TO_DISPLAY
-
Constructor Summary
Constructors Constructor Description AbstractTGraphics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
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, java.awt.Rectangle bounds, double scaleFactor, boolean expand)
boolean
hitClip(java.awt.Rectangle bounds)
void
softClip(java.awt.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.macrofocus.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, getRenderingHint, getStringWidth, getTransform, isPaintingForPrint, paintLabel, restore, rotate, rotate, save, scale, setBackground, setColor, setFill, setFont, setGlobalAlpha, setLineDash, setLineWidth, setPaint, setPaintingForPrint, setRadialGradient, setRenderingHint, setStroke, setTransform, shear, sizeLabel, stroke, strokeLine, strokeRect, strokeRoundRect, transform, translate, translate
-
-
-
-
Field Detail
-
MINIMUM_FONT_SIZE_TO_DISPLAY
public static final float MINIMUM_FONT_SIZE_TO_DISPLAY
- See Also:
- Constant Field Values
-
-
Method Detail
-
fitTextInsideRectangle
public 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)
- 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, java.awt.Rectangle bounds, java.awt.Shape shape)
- Specified by:
drawClippedImage
in interfaceTGraphics<Color,Font>
-
softClip
public void softClip(java.awt.Shape shape)
-
-