public class BasicAnnotationRenderer extends Object implements AnnotationRenderer
| Modifier and Type | Class and Description |
|---|---|
protected class |
BasicAnnotationRenderer.OrderedAnnotation |
| Modifier and Type | Field and Description |
|---|---|
protected PickSupport |
pickSupport |
| Constructor and Description |
|---|
BasicAnnotationRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginDrawAnnotations(DrawContext dc,
OGLStackHandler stackHandler) |
protected void |
drawMany(DrawContext dc,
Iterable<Annotation> annotations,
Layer layer) |
protected void |
drawOne(DrawContext dc,
Annotation annotation,
Vec4 annotationPoint,
Layer layer) |
protected void |
endDrawAnnotations(DrawContext dc,
OGLStackHandler stackHandler) |
protected Vec4 |
getAnnotationDrawPoint(DrawContext dc,
Annotation annotation)
Get the final Vec4 point at which an annotation will be drawn.
|
protected static boolean |
isAnnotationValid(Annotation annotation,
boolean checkPosition) |
protected boolean |
isAtPickRange(DrawContext dc,
Annotation annotation) |
void |
pick(DrawContext dc,
Annotation annotation,
Vec4 annotationPoint,
Point pickPoint,
Layer layer) |
void |
pick(DrawContext dc,
Iterable<Annotation> annotations,
Point pickPoint,
Layer layer) |
void |
render(DrawContext dc,
Annotation annotation,
Vec4 annotationPoint,
Layer layer) |
void |
render(DrawContext dc,
Iterable<Annotation> annotations,
Layer layer) |
protected PickSupport pickSupport
protected void beginDrawAnnotations(DrawContext dc, OGLStackHandler stackHandler)
protected void drawMany(DrawContext dc, Iterable<Annotation> annotations, Layer layer)
protected void drawOne(DrawContext dc, Annotation annotation, Vec4 annotationPoint, Layer layer)
protected void endDrawAnnotations(DrawContext dc, OGLStackHandler stackHandler)
protected Vec4 getAnnotationDrawPoint(DrawContext dc, Annotation annotation)
dc - the current DrawContext.annotation - the annotationprotected static boolean isAnnotationValid(Annotation annotation, boolean checkPosition)
protected boolean isAtPickRange(DrawContext dc, Annotation annotation)
public void pick(DrawContext dc, Annotation annotation, Vec4 annotationPoint, Point pickPoint, Layer layer)
pick in interface AnnotationRendererpublic void pick(DrawContext dc, Iterable<Annotation> annotations, Point pickPoint, Layer layer)
pick in interface AnnotationRendererpublic void render(DrawContext dc, Annotation annotation, Vec4 annotationPoint, Layer layer)
render in interface AnnotationRendererpublic void render(DrawContext dc, Iterable<Annotation> annotations, Layer layer)
render in interface AnnotationRenderer