public class ToolTipRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ToolTipRenderer.ToolTipAttributes |
Constructor and Description |
---|
ToolTipRenderer() |
ToolTipRenderer(boolean useSystemLookAndFeel) |
ToolTipRenderer(java.awt.Font font) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Point |
adjustDrawPointToViewport(int x,
int y,
java.awt.geom.Rectangle2D bounds,
java.awt.Rectangle viewport) |
protected void |
applyColor(DrawContext dc,
java.awt.Color color,
double opacity) |
protected void |
beginRendering(DrawContext dc,
OGLStackHandler stackHandler) |
protected java.awt.geom.Rectangle2D |
computeBackgroundBounds(DrawContext dc,
double width,
double height,
java.awt.Insets insets) |
protected java.awt.geom.Rectangle2D |
computeTextBounds(DrawContext dc,
java.lang.String text,
java.awt.Font font) |
protected java.awt.geom.Point2D |
computeTextTranslation(DrawContext dc,
java.awt.geom.Rectangle2D textBounds,
java.awt.Insets insets) |
protected void |
doRender(DrawContext dc,
java.lang.String text,
int x,
int y) |
protected void |
draw(DrawContext dc,
java.awt.Rectangle viewport,
java.lang.String text,
int x,
int y) |
protected void |
drawToolTip(DrawContext dc,
java.awt.Rectangle viewport,
java.lang.String text,
int x,
int y,
ToolTipRenderer.ToolTipAttributes attributes) |
protected void |
drawToolTipInterior(DrawContext dc,
double width,
double height,
ToolTipRenderer.ToolTipAttributes attributes) |
protected void |
drawToolTipOutline(DrawContext dc,
double width,
double height,
ToolTipRenderer.ToolTipAttributes attributes) |
protected void |
drawToolTipText(DrawContext dc,
java.lang.String text,
int x,
int y,
ToolTipRenderer.ToolTipAttributes attributes) |
protected void |
endRendering(DrawContext dc,
OGLStackHandler stackHandler) |
protected ToolTipRenderer.ToolTipAttributes |
getAttributes() |
static java.awt.Color |
getContrastingColor(java.awt.Color color) |
java.awt.Font |
getFont() |
java.awt.Insets |
getInsets() |
java.awt.Color |
getInteriorColor() |
double |
getOpacity() |
java.awt.Color |
getOutlineColor() |
double |
getOutlineWidth() |
protected ToolTipRenderer.ToolTipAttributes |
getSystemLookAndFeelAttributes() |
java.awt.Color |
getTextColor() |
protected TextRenderer |
getTextRenderer(DrawContext dc,
java.awt.Font font) |
boolean |
isUseSystemLookAndFeel() |
protected java.awt.Color |
modulateColorOpacity(java.awt.Color color,
double opacity) |
void |
render(DrawContext dc,
java.lang.String text,
int x,
int y) |
void |
setFont(java.awt.Font font) |
void |
setInsets(java.awt.Insets insets) |
void |
setInteriorColor(java.awt.Color color) |
void |
setOpacity(double opacity) |
void |
setOutlineColor(java.awt.Color color) |
void |
setOutlineWidth(double width) |
void |
setTextColor(java.awt.Color color) |
void |
setUseSystemLookAndFeel(boolean useSystemLookAndFeel) |
public ToolTipRenderer()
public ToolTipRenderer(boolean useSystemLookAndFeel)
public ToolTipRenderer(java.awt.Font font)
protected java.awt.Point adjustDrawPointToViewport(int x, int y, java.awt.geom.Rectangle2D bounds, java.awt.Rectangle viewport)
protected void applyColor(DrawContext dc, java.awt.Color color, double opacity)
protected void beginRendering(DrawContext dc, OGLStackHandler stackHandler)
protected java.awt.geom.Rectangle2D computeBackgroundBounds(DrawContext dc, double width, double height, java.awt.Insets insets)
protected java.awt.geom.Rectangle2D computeTextBounds(DrawContext dc, java.lang.String text, java.awt.Font font)
protected java.awt.geom.Point2D computeTextTranslation(DrawContext dc, java.awt.geom.Rectangle2D textBounds, java.awt.Insets insets)
protected void doRender(DrawContext dc, java.lang.String text, int x, int y)
protected void draw(DrawContext dc, java.awt.Rectangle viewport, java.lang.String text, int x, int y)
protected void drawToolTip(DrawContext dc, java.awt.Rectangle viewport, java.lang.String text, int x, int y, ToolTipRenderer.ToolTipAttributes attributes)
protected void drawToolTipInterior(DrawContext dc, double width, double height, ToolTipRenderer.ToolTipAttributes attributes)
protected void drawToolTipOutline(DrawContext dc, double width, double height, ToolTipRenderer.ToolTipAttributes attributes)
protected void drawToolTipText(DrawContext dc, java.lang.String text, int x, int y, ToolTipRenderer.ToolTipAttributes attributes)
protected void endRendering(DrawContext dc, OGLStackHandler stackHandler)
protected ToolTipRenderer.ToolTipAttributes getAttributes()
public static java.awt.Color getContrastingColor(java.awt.Color color)
public java.awt.Font getFont()
public java.awt.Insets getInsets()
public java.awt.Color getInteriorColor()
public double getOpacity()
public java.awt.Color getOutlineColor()
public double getOutlineWidth()
protected ToolTipRenderer.ToolTipAttributes getSystemLookAndFeelAttributes()
public java.awt.Color getTextColor()
protected TextRenderer getTextRenderer(DrawContext dc, java.awt.Font font)
public boolean isUseSystemLookAndFeel()
protected java.awt.Color modulateColorOpacity(java.awt.Color color, double opacity)
public void render(DrawContext dc, java.lang.String text, int x, int y)
public void setFont(java.awt.Font font)
public void setInsets(java.awt.Insets insets)
public void setInteriorColor(java.awt.Color color)
public void setOpacity(double opacity)
public void setOutlineColor(java.awt.Color color)
public void setOutlineWidth(double width)
public void setTextColor(java.awt.Color color)
public void setUseSystemLookAndFeel(boolean useSystemLookAndFeel)