kcl.waterloo.annotation
Interface GJAnnotationInterface<T,U,V,W,X>
-
- Type Parameters:
T-U-V-W-X-
- All Known Implementing Classes:
- GJAnnotation, GJAnnotation.ArrowAnnotation, GJAnnotation.LineAnnotation, GJAnnotation.ShapeAnnotation, GJAnnotation.TextAnnotation
public interface GJAnnotationInterface<T,U,V,W,X>Defines the methods for use by annotations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description GJMarkergetExtra()Gets the extra data.WgetFill()XgetFont()WgetLineColor()VgetLineStroke()GJMarkergetMarker()java.lang.StringgetName()UgetParentGraph()TgetPath()java.lang.StringgetText()WgetTextColor()doublegetXData()doublegetYData()voidpaintAnnotation(java.awt.Graphics2D g2, java.awt.geom.AffineTransform af)Paints the annotation to the specified Graphics2D object.voidremove()Removes the annotationvoidremove(java.lang.String s)Removes annotation(s) named by the stringvoidsetExtra(GJMarker o)Sets an extra data object used internally by some annotations.voidsetFill(W Fill)voidsetFont(X Font)voidsetLineColor(W LineColor)voidsetLineStroke(V LineStroke)voidsetMarker(GJMarker Marker)voidsetName(java.lang.String Name)voidsetParentGraph(U plot)voidsetPath(T annotation)voidsetText(java.lang.String Text)voidsetTextColor(W TextColor)voidsetXData(double X)voidsetYData(double Y)
-
-
-
Method Detail
-
getPath
T getPath()
- Returns:
- the Annotation
-
setPath
void setPath(T annotation)
- Parameters:
annotation-
-
getMarker
GJMarker getMarker()
- Returns:
- the Marker
-
setMarker
void setMarker(GJMarker Marker)
- Parameters:
Marker- the Marker to set
-
getParentGraph
U getParentGraph()
- Returns:
- the plot
-
setParentGraph
void setParentGraph(U plot)
- Parameters:
plot- the plot to set
-
getLineStroke
V getLineStroke()
- Returns:
- the LineStroke
-
setLineStroke
void setLineStroke(V LineStroke)
- Parameters:
LineStroke- the LineStroke to set
-
getLineColor
W getLineColor()
- Returns:
- the LineColor
-
setLineColor
void setLineColor(W LineColor)
- Parameters:
LineColor- the LineColor to set
-
getFill
W getFill()
- Returns:
- the Fill
-
setFill
void setFill(W Fill)
- Parameters:
Fill- the Fill to set
-
getFont
X getFont()
- Returns:
- the Font
-
setFont
void setFont(X Font)
- Parameters:
Font- the Font to set
-
getXData
double getXData()
- Returns:
- the X
-
setXData
void setXData(double X)
- Parameters:
X- the X to set
-
getYData
double getYData()
- Returns:
- the Y
-
setYData
void setYData(double Y)
- Parameters:
Y- the Y to set
-
getText
java.lang.String getText()
- Returns:
- the Text
-
setText
void setText(java.lang.String Text)
- Parameters:
Text- the Text to set
-
getTextColor
W getTextColor()
- Returns:
- the TextColor
-
setTextColor
void setTextColor(W TextColor)
- Parameters:
TextColor- the TextColor to set
-
getName
java.lang.String getName()
- Returns:
- the Name
-
setName
void setName(java.lang.String Name)
- Parameters:
Name- the Name to set
-
setExtra
void setExtra(GJMarker o)
Sets an extra data object used internally by some annotations.- Parameters:
o-
-
getExtra
GJMarker getExtra()
Gets the extra data.- Returns:
- the GJMarker
-
remove
void remove()
Removes the annotation
-
remove
void remove(java.lang.String s)
Removes annotation(s) named by the string- Parameters:
s- the name of the annotation(s) to remove
-
paintAnnotation
void paintAnnotation(java.awt.Graphics2D g2, java.awt.geom.AffineTransform af)Paints the annotation to the specified Graphics2D object. The AffineTransform should be set up to scale and translate the graphics from the GJGraphInterface space specified in the GJAnnotation instance.- Parameters:
g2- Graphics2D instanceaf- AffineTransform
-
-
DMelt 3.0 © DataMelt by jWork.ORG