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)
AnnotationRenderer
setScalar
in interface AnnotationRenderer
public java.lang.Double setScalar()
public java.awt.Font getAnnotationFont()
getAnnotationFont
in interface AnnotationRenderer
public void setAnnotationFont(java.awt.Font f)
setAnnotationFont
in interface AnnotationRenderer
public java.awt.Color getAnnotationTextColor()
getAnnotationTextColor
in interface AnnotationRenderer
public void setAnnotationTextColor(java.awt.Color c)
setAnnotationTextColor
in interface AnnotationRenderer
public java.awt.Color getAnnotationBackgroundColor()
public void setAnnotationBackgroundColor(java.awt.Color c)
public void setPaintBackground(boolean s)
AnnotationRenderer
setPaintBackground
in interface AnnotationRenderer
public boolean getPaintBackground()
getPaintBackground
in interface AnnotationRenderer
public void setPaintAnnotation(boolean s)
setPaintAnnotation
in interface AnnotationRenderer
public boolean getPaintAnnotation()
getPaintAnnotation
in interface AnnotationRenderer
public void paintAnnotationDirect(java.awt.Graphics graphics, SLAnnotation annot)
paintAnnotationDirect
in interface AnnotationRenderer
public void paintAnnotation(java.awt.Graphics graphics, SLAnnotation annot)
paintAnnotation
in interface AnnotationRenderer
Copyright © 2011, 2013. Daniel P. Dougherty