protected static class ScreenSelector.SelectionRectangle extends Object implements OrderedRenderable
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
SelectionRectangle() |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected OGLStackHandler BEogsh
protected Color borderColor
protected static final Color DEFAULT_BORDER_COLOR
protected static final Color DEFAULT_INTERIOR_COLOR
protected Point endPoint
protected Color interiorColor
protected Rectangle rect
protected Point startPoint
public void clearSelection()
protected void drawOrderedRenderable(DrawContext dc)
public void endSelection(Point point)
public Color getBorderColor()
public double getDistanceFromEye()
OrderedRenderablegetDistanceFromEye in interface OrderedRenderablepublic Color getInteriorColor()
public Rectangle getSelection()
public boolean hasSelection()
protected void makeOrderedRenderable(DrawContext dc)
public void pick(DrawContext dc, Point pickPoint)
OrderedRenderablepick in interface OrderedRenderabledc - the current draw context.pickPoint - the pick point.public void render(DrawContext dc)
RenderableRenderable to render itself using the provided draw context.render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void setBorderColor(Color color)
public void setInteriorColor(Color color)
public void startSelection(Point point)