NASA World Wind

gov.nasa.worldwindx.examples.util
Class ScreenSelector.SelectionRectangle

java.lang.Object
  extended by gov.nasa.worldwindx.examples.util.ScreenSelector.SelectionRectangle
All Implemented Interfaces:
OrderedRenderable, Renderable
Enclosing class:
ScreenSelector

protected static class ScreenSelector.SelectionRectangle
extends Object
implements OrderedRenderable


Field Summary
protected  OGLStackHandler BEogsh
           
protected  Color borderColor
           
protected static Color DEFAULT_BORDER_COLOR
           
protected static Color DEFAULT_INTERIOR_COLOR
           
protected  Point endPoint
           
protected  Color interiorColor
           
protected  Rectangle rect
           
protected  Point startPoint
           
 
Constructor Summary
ScreenSelector.SelectionRectangle()
           
 
Method Summary
 void clearSelection()
           
protected  void drawOrderedRenderable(DrawContext dc)
           
 void endSelection(Point point)
           
 Color getBorderColor()
           
 double getDistanceFromEye()
          Returns the ordered renderable's distance from the current view's eye point.
 Color getInteriorColor()
           
 Rectangle getSelection()
           
 boolean hasSelection()
           
protected  void makeOrderedRenderable(DrawContext dc)
           
 void pick(DrawContext dc, Point pickPoint)
          Executes a pick of the ordered renderable.
 void render(DrawContext dc)
          Causes this Renderable to render itself using the provided draw context.
 void setBorderColor(Color color)
           
 void setInteriorColor(Color color)
           
 void startSelection(Point point)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEogsh

protected OGLStackHandler BEogsh

borderColor

protected Color borderColor

DEFAULT_BORDER_COLOR

protected static final Color DEFAULT_BORDER_COLOR

DEFAULT_INTERIOR_COLOR

protected static final Color DEFAULT_INTERIOR_COLOR

endPoint

protected Point endPoint

interiorColor

protected Color interiorColor

rect

protected Rectangle rect

startPoint

protected Point startPoint
Constructor Detail

ScreenSelector.SelectionRectangle

public ScreenSelector.SelectionRectangle()
Method Detail

clearSelection

public void clearSelection()

drawOrderedRenderable

protected void drawOrderedRenderable(DrawContext dc)

endSelection

public void endSelection(Point point)

getBorderColor

public Color getBorderColor()

getDistanceFromEye

public double getDistanceFromEye()
Description copied from interface: OrderedRenderable
Returns the ordered renderable's distance from the current view's eye point. Intended to be used only to sort a list of ordered renderables according to eye distance, and only during frame generation when a view is active.

Specified by:
getDistanceFromEye in interface OrderedRenderable
Returns:
the distance of the ordered renderable from the current view's eye point.

getInteriorColor

public Color getInteriorColor()

getSelection

public Rectangle getSelection()

hasSelection

public boolean hasSelection()

makeOrderedRenderable

protected void makeOrderedRenderable(DrawContext dc)

pick

public void pick(DrawContext dc,
                 Point pickPoint)
Description copied from interface: OrderedRenderable
Executes a pick of the ordered renderable.

Specified by:
pick in interface OrderedRenderable
Parameters:
dc - the current draw context.
pickPoint - the pick point.

render

public void render(DrawContext dc)
Description copied from interface: Renderable
Causes this Renderable to render itself using the provided draw context.

Specified by:
render in interface Renderable
Parameters:
dc - the DrawContext to be used
See Also:
DrawContext

setBorderColor

public void setBorderColor(Color color)

setInteriorColor

public void setInteriorColor(Color color)

startSelection

public void startSelection(Point point)

NASA World Wind