public class AnnotationColor extends Object
| Modifier and Type | Field and Description |
|---|---|
static ArrayList<edu.nyu.jet.tipster.AnnotationColorEntry> |
colors |
| Constructor and Description |
|---|
AnnotationColor(String dataPath)
initializes the colorFrame -- the menu which is used to choose
colors for each annotation type.
|
AnnotationColor(String dataPath,
String colorFileName)
initializes the colorFrame -- the menu which is used to choose
colors for each annotation type.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addType(String type)
add a color entry for annotation type 'type'.
|
static 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'.
|
public static ArrayList<edu.nyu.jet.tipster.AnnotationColorEntry> colors
public AnnotationColor(String dataPath)
public AnnotationColor(String dataPath, String colorFileName)
public static void readColors()
public static void writeColors()
public static void addType(String type)
public static void showColors()
public static Color getColor(Annotation ann)
Copyright © 2016 New York University. All rights reserved.