public class DefaultAnnotationRenderer extends java.lang.Object implements AnnotationRenderer
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
backgroundColor |
protected boolean |
paintAnnotation |
protected boolean |
paintBackground |
| Constructor and Description |
|---|
DefaultAnnotationRenderer() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getAnnotationBackgroundColor() |
java.awt.Font |
getAnnotationFont() |
java.awt.Color |
getAnnotationTextColor() |
boolean |
getPaintAnnotation() |
boolean |
getPaintBackground() |
void |
paintAnnotation(java.awt.Graphics graphics,
SLAnnotation annot) |
void |
paintAnnotationDirect(java.awt.Graphics graphics,
SLAnnotation annot) |
void |
setAnnotationBackgroundColor(java.awt.Color c) |
void |
setAnnotationFont(java.awt.Font f) |
void |
setAnnotationTextColor(java.awt.Color c) |
void |
setPaintAnnotation(boolean s) |
void |
setPaintBackground(boolean s)
Sets the vector (specifies direction) relative to the
set-point where the annotation should be placed.
|
java.lang.Double |
setScalar() |
void |
setScalar(java.lang.Double c)
Sets the scalar dilation of the unit vector for placement.
|
protected boolean paintBackground
protected boolean paintAnnotation
protected java.awt.Color backgroundColor
public void setScalar(java.lang.Double c)
AnnotationRenderersetScalar in interface AnnotationRendererpublic java.lang.Double setScalar()
public java.awt.Font getAnnotationFont()
getAnnotationFont in interface AnnotationRendererpublic void setAnnotationFont(java.awt.Font f)
setAnnotationFont in interface AnnotationRendererpublic java.awt.Color getAnnotationTextColor()
getAnnotationTextColor in interface AnnotationRendererpublic void setAnnotationTextColor(java.awt.Color c)
setAnnotationTextColor in interface AnnotationRendererpublic java.awt.Color getAnnotationBackgroundColor()
public void setAnnotationBackgroundColor(java.awt.Color c)
public void setPaintBackground(boolean s)
AnnotationRenderersetPaintBackground in interface AnnotationRendererpublic boolean getPaintBackground()
getPaintBackground in interface AnnotationRendererpublic void setPaintAnnotation(boolean s)
setPaintAnnotation in interface AnnotationRendererpublic boolean getPaintAnnotation()
getPaintAnnotation in interface AnnotationRendererpublic void paintAnnotationDirect(java.awt.Graphics graphics,
SLAnnotation annot)
paintAnnotationDirect in interface AnnotationRendererpublic void paintAnnotation(java.awt.Graphics graphics,
SLAnnotation annot)
paintAnnotation in interface AnnotationRendererCopyright © 2011, 2013. Daniel P. Dougherty