|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJet.Tipster.AnnotationColor
provides a mechanism for associating particular highlighting colors with particular annotation types in Document displays. The color information is retained in a color file.
Field Summary | |
static java.util.ArrayList |
colors
|
Constructor Summary | |
AnnotationColor(java.lang.String dataPath)
initializes the colorFrame -- the menu which is used to choose colors for each annotation type. |
|
AnnotationColor(java.lang.String dataPath,
java.lang.String colorFileName)
initializes the colorFrame -- the menu which is used to choose colors for each annotation type. |
Method Summary | |
static void |
addType(java.lang.String type)
add a color entry for annotation type 'type'. |
static java.awt.Color |
getColor(Annotation ann)
returns the Color associated with Annotation ann, or null if there is no Color association for this Annotation. |
static void |
readColors()
read a table of Annotation type/color pairs, one per line, from 'colorFile'. |
static void |
showColors()
|
static void |
writeColors()
write a table of type/color pairs, one per line, to 'colorFile'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.ArrayList colors
Constructor Detail |
public AnnotationColor(java.lang.String dataPath)
public AnnotationColor(java.lang.String dataPath, java.lang.String colorFileName)
Method Detail |
public static void readColors()
public static void writeColors()
public static void addType(java.lang.String type)
public static void showColors()
public static java.awt.Color getColor(Annotation ann)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |