protected static class ScreenSelector.SelectionRectangle extends java.lang.Object implements OrderedRenderable
Modifier and Type | Field and Description |
---|---|
protected OGLStackHandler |
BEogsh |
protected java.awt.Color |
borderColor |
protected static java.awt.Color |
DEFAULT_BORDER_COLOR |
protected static java.awt.Color |
DEFAULT_INTERIOR_COLOR |
protected java.awt.Point |
endPoint |
protected java.awt.Color |
interiorColor |
protected java.awt.Rectangle |
rect |
protected java.awt.Point |
startPoint |
Constructor and Description |
---|
SelectionRectangle() |
Modifier and Type | Method and Description |
---|---|
void |
clearSelection() |
protected void |
drawOrderedRenderable(DrawContext dc) |
void |
endSelection(java.awt.Point point) |
java.awt.Color |
getBorderColor() |
double |
getDistanceFromEye()
Returns the ordered renderable's distance from the current view's eye point.
|
java.awt.Color |
getInteriorColor() |
java.awt.Rectangle |
getSelection() |
boolean |
hasSelection() |
protected void |
makeOrderedRenderable(DrawContext dc) |
void |
pick(DrawContext dc,
java.awt.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(java.awt.Color color) |
void |
setInteriorColor(java.awt.Color color) |
void |
startSelection(java.awt.Point point) |
protected OGLStackHandler BEogsh
protected java.awt.Color borderColor
protected static final java.awt.Color DEFAULT_BORDER_COLOR
protected static final java.awt.Color DEFAULT_INTERIOR_COLOR
protected java.awt.Point endPoint
protected java.awt.Color interiorColor
protected java.awt.Rectangle rect
protected java.awt.Point startPoint
public void clearSelection()
protected void drawOrderedRenderable(DrawContext dc)
public void endSelection(java.awt.Point point)
public java.awt.Color getBorderColor()
public double getDistanceFromEye()
OrderedRenderable
getDistanceFromEye
in interface OrderedRenderable
public java.awt.Color getInteriorColor()
public java.awt.Rectangle getSelection()
public boolean hasSelection()
protected void makeOrderedRenderable(DrawContext dc)
public void pick(DrawContext dc, java.awt.Point pickPoint)
OrderedRenderable
pick
in interface OrderedRenderable
dc
- the current draw context.pickPoint
- the pick point.public void render(DrawContext dc)
Renderable
Renderable
to render itself using the provided draw context.render
in interface Renderable
dc
- the DrawContext
to be usedDrawContext
public void setBorderColor(java.awt.Color color)
public void setInteriorColor(java.awt.Color color)
public void startSelection(java.awt.Point point)