public class BasicAnnotationRenderer extends java.lang.Object implements AnnotationRenderer
AbstractAnnotation
,
AnnotationAttributes
,
AnnotationLayer
Modifier and Type | Class and Description |
---|---|
protected class |
BasicAnnotationRenderer.OrderedAnnotation |
Modifier and Type | Field and Description |
---|---|
protected java.util.HashSet<Annotation> |
currentDrawAnnotations |
protected long |
currentFrameTime |
protected java.util.HashSet<Annotation> |
currentPickAnnotations |
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,
java.lang.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,
java.awt.Point pickPoint,
Layer layer) |
void |
pick(DrawContext dc,
java.lang.Iterable<Annotation> annotations,
java.awt.Point pickPoint,
Layer layer) |
void |
render(DrawContext dc,
Annotation annotation,
Vec4 annotationPoint,
Layer layer) |
void |
render(DrawContext dc,
java.lang.Iterable<Annotation> annotations,
Layer layer) |
protected java.util.HashSet<Annotation> currentDrawAnnotations
protected long currentFrameTime
protected java.util.HashSet<Annotation> currentPickAnnotations
protected PickSupport pickSupport
protected void beginDrawAnnotations(DrawContext dc, OGLStackHandler stackHandler)
protected void drawMany(DrawContext dc, java.lang.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, java.awt.Point pickPoint, Layer layer)
pick
in interface AnnotationRenderer
public void pick(DrawContext dc, java.lang.Iterable<Annotation> annotations, java.awt.Point pickPoint, Layer layer)
pick
in interface AnnotationRenderer
public void render(DrawContext dc, Annotation annotation, Vec4 annotationPoint, Layer layer)
render
in interface AnnotationRenderer
public void render(DrawContext dc, java.lang.Iterable<Annotation> annotations, Layer layer)
render
in interface AnnotationRenderer