NASA World Wind

gov.nasa.worldwind.render
Class ToolTipRenderer

java.lang.Object
  extended by gov.nasa.worldwind.render.ToolTipRenderer

public class ToolTipRenderer
extends Object


Nested Class Summary
protected static class ToolTipRenderer.ToolTipAttributes
           
 
Constructor Summary
ToolTipRenderer()
           
ToolTipRenderer(boolean useSystemLookAndFeel)
           
ToolTipRenderer(Font font)
           
 
Method Summary
protected  Point adjustDrawPointToViewport(int x, int y, Rectangle2D bounds, Rectangle viewport)
           
protected  void beginRendering(DrawContext dc, OGLStackHandler stackHandler, OGLOrtho2DSupport ortho2DSupport)
           
protected  Rectangle2D computeBackgroundBounds(DrawContext dc, double width, double height, Insets insets)
           
protected  Rectangle2D computeTextBounds(DrawContext dc, String text, Font font)
           
protected  Point2D computeTextTranslation(DrawContext dc, Rectangle2D textBounds, Insets insets)
           
protected  void doRender(DrawContext dc, String text, int x, int y)
           
protected  void draw(DrawContext dc, Rectangle viewport, String text, int x, int y)
           
protected  void drawToolTip(DrawContext dc, Rectangle viewport, 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, String text, int x, int y, ToolTipRenderer.ToolTipAttributes attributes)
           
protected  void endRendering(DrawContext dc, OGLStackHandler stackHandler, OGLOrtho2DSupport ortho2DSupport)
           
protected  ToolTipRenderer.ToolTipAttributes getAttributes()
           
static Color getContrastingColor(Color color)
           
 Font getFont()
           
 Insets getInsets()
           
 Color getInteriorColor()
           
 double getOpacity()
           
 Color getOutlineColor()
           
 double getOutlineWidth()
           
protected  ToolTipRenderer.ToolTipAttributes getSystemLookAndFeelAttributes()
           
 Color getTextColor()
           
protected  com.sun.opengl.util.j2d.TextRenderer getTextRenderer(DrawContext dc, Font font)
           
 boolean isUseSystemLookAndFeel()
           
protected  Color modulateColorOpacity(Color color, double opacity)
           
 void render(DrawContext dc, String text, int x, int y)
           
protected  void setDrawColor(DrawContext dc, Color color, double opacity)
           
 void setFont(Font font)
           
 void setInsets(Insets insets)
           
 void setInteriorColor(Color color)
           
 void setOpacity(double opacity)
           
 void setOutlineColor(Color color)
           
 void setOutlineWidth(double width)
           
 void setTextColor(Color color)
           
 void setUseSystemLookAndFeel(boolean useSystemLookAndFeel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolTipRenderer

public ToolTipRenderer()

ToolTipRenderer

public ToolTipRenderer(boolean useSystemLookAndFeel)

ToolTipRenderer

public ToolTipRenderer(Font font)
Method Detail

adjustDrawPointToViewport

protected Point adjustDrawPointToViewport(int x,
                                          int y,
                                          Rectangle2D bounds,
                                          Rectangle viewport)

beginRendering

protected void beginRendering(DrawContext dc,
                              OGLStackHandler stackHandler,
                              OGLOrtho2DSupport ortho2DSupport)

computeBackgroundBounds

protected Rectangle2D computeBackgroundBounds(DrawContext dc,
                                              double width,
                                              double height,
                                              Insets insets)

computeTextBounds

protected Rectangle2D computeTextBounds(DrawContext dc,
                                        String text,
                                        Font font)

computeTextTranslation

protected Point2D computeTextTranslation(DrawContext dc,
                                         Rectangle2D textBounds,
                                         Insets insets)

doRender

protected void doRender(DrawContext dc,
                        String text,
                        int x,
                        int y)

draw

protected void draw(DrawContext dc,
                    Rectangle viewport,
                    String text,
                    int x,
                    int y)

drawToolTip

protected void drawToolTip(DrawContext dc,
                           Rectangle viewport,
                           String text,
                           int x,
                           int y,
                           ToolTipRenderer.ToolTipAttributes attributes)

drawToolTipInterior

protected void drawToolTipInterior(DrawContext dc,
                                   double width,
                                   double height,
                                   ToolTipRenderer.ToolTipAttributes attributes)

drawToolTipOutline

protected void drawToolTipOutline(DrawContext dc,
                                  double width,
                                  double height,
                                  ToolTipRenderer.ToolTipAttributes attributes)

drawToolTipText

protected void drawToolTipText(DrawContext dc,
                               String text,
                               int x,
                               int y,
                               ToolTipRenderer.ToolTipAttributes attributes)

endRendering

protected void endRendering(DrawContext dc,
                            OGLStackHandler stackHandler,
                            OGLOrtho2DSupport ortho2DSupport)

getAttributes

protected ToolTipRenderer.ToolTipAttributes getAttributes()

getContrastingColor

public static Color getContrastingColor(Color color)

getFont

public Font getFont()

getInsets

public Insets getInsets()

getInteriorColor

public Color getInteriorColor()

getOpacity

public double getOpacity()

getOutlineColor

public Color getOutlineColor()

getOutlineWidth

public double getOutlineWidth()

getSystemLookAndFeelAttributes

protected ToolTipRenderer.ToolTipAttributes getSystemLookAndFeelAttributes()

getTextColor

public Color getTextColor()

getTextRenderer

protected com.sun.opengl.util.j2d.TextRenderer getTextRenderer(DrawContext dc,
                                                               Font font)

isUseSystemLookAndFeel

public boolean isUseSystemLookAndFeel()

modulateColorOpacity

protected Color modulateColorOpacity(Color color,
                                     double opacity)

render

public void render(DrawContext dc,
                   String text,
                   int x,
                   int y)

setDrawColor

protected void setDrawColor(DrawContext dc,
                            Color color,
                            double opacity)

setFont

public void setFont(Font font)

setInsets

public void setInsets(Insets insets)

setInteriorColor

public void setInteriorColor(Color color)

setOpacity

public void setOpacity(double opacity)

setOutlineColor

public void setOutlineColor(Color color)

setOutlineWidth

public void setOutlineWidth(double width)

setTextColor

public void setTextColor(Color color)

setUseSystemLookAndFeel

public void setUseSystemLookAndFeel(boolean useSystemLookAndFeel)

NASA World Wind

Hosted by docs.bugaco.com