Classes | |
class | ColorImagePair |
Public Member Functions | |
ColorTable () | |
Creates a new ColorTable with Display _display. | |
void | dispose () |
Dispose the allocated resources. | |
Color | getColor (String name) |
Returns the color in the colorMatcher that corresponds to the name's class. | |
Image | getImage (String name) |
returns the image that corresponds to the name's class | |
void | setColor (String name, RGB rgb) |
void | setColorTable () |
void | addProcedure (String name) |
Static Public Member Functions | |
static Image | createImage (Display display, RGB color) |
Static Public Attributes | |
static final int | COLOR_ICON_SIZE = 8 |
Package Attributes | |
HashMap< String, ColorImagePair > | colorMatcher |
ArrayList< String > | procNames |
All of the function names stored in this colorTable. | |
Display | display |
The display this ColorTable uses to generate the random colors. | |
Private Member Functions | |
RGB | getProcedureColor (String name, int colorMin, int colorMax, Random r) |
Private Attributes | |
ProcedureClassMap | classMap |
Static Private Attributes | |
static ColorImagePair | IMAGE_WHITE |
Definition at line 24 of file ColorTable.java.
edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.ColorTable | ( | ) |
Creates a new ColorTable with Display _display.
Definition at line 40 of file ColorTable.java.
References edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.display, edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.IMAGE_WHITE, and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.procNames.
void edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.addProcedure | ( | String | name | ) |
Implements edu.rice.cs.hpc.data.util.IProcedureTable.
Definition at line 152 of file ColorTable.java.
References edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.procNames.
static Image edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.createImage | ( | Display | display, | |
RGB | color | |||
) | [static] |
Definition at line 167 of file ColorTable.java.
References edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.COLOR_ICON_SIZE.
void edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.dispose | ( | ) |
Dispose the allocated resources.
Definition at line 58 of file ColorTable.java.
References edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.colorMatcher, edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.ColorImagePair.dispose(), and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.IMAGE_WHITE.
Referenced by edu.rice.cs.hpc.traceviewer.actions.ProcedureClassMapAction.broadcastChanges(), edu.rice.cs.hpc.traceviewer.spaceTimeData.SpaceTimeDataController.dispose(), and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColorTable().
Color edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.getColor | ( | String | name | ) |
Returns the color in the colorMatcher that corresponds to the name's class.
name |
Definition at line 70 of file ColorTable.java.
References edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.colorMatcher.
Referenced by edu.rice.cs.hpc.traceviewer.data.db.DataPreparation.collect().
Image edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.getImage | ( | String | name | ) |
returns the image that corresponds to the name's class
name |
Definition at line 80 of file ColorTable.java.
References edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.colorMatcher, and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.ColorImagePair.getImage().
Referenced by edu.rice.cs.hpc.traceviewer.ui.DataViewer.DataViewer().
RGB edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.getProcedureColor | ( | String | name, | |
int | colorMin, | |||
int | colorMax, | |||
Random | r | |||
) | [private] |
Definition at line 185 of file ColorTable.java.
References edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.classMap, edu.rice.cs.hpc.traceviewer.data.util.ProcedureClassMap.get(), and edu.rice.cs.hpc.common.util.ProcedureClassData.getRGB().
Referenced by edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColorTable().
void edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColor | ( | String | name, | |
RGB | rgb | |||
) |
void edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColorTable | ( | ) |
Definition at line 111 of file ColorTable.java.
References edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.classMap, edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.colorMatcher, edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.display, edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.dispose(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.getProcedureColor(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.IMAGE_WHITE, and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.procNames.
Referenced by edu.rice.cs.hpc.traceviewer.actions.ProcedureClassMapAction.broadcastChanges(), and edu.rice.cs.hpc.traceviewer.spaceTimeData.SpaceTimeDataController.init().
Definition at line 37 of file ColorTable.java.
Referenced by edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.getProcedureColor(), and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColorTable().
final int edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.COLOR_ICON_SIZE = 8 [static] |
Definition at line 26 of file ColorTable.java.
Referenced by edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.createImage().
HashMap<String, ColorImagePair> edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.colorMatcher [package] |
Definition at line 29 of file ColorTable.java.
Referenced by edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.dispose(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.getColor(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.getImage(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColor(), and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColorTable().
Display edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.display [package] |
The display this ColorTable uses to generate the random colors.
Definition at line 35 of file ColorTable.java.
Referenced by edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.ColorImagePair.ColorImagePair(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.ColorTable(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColor(), and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColorTable().
ColorImagePair edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.IMAGE_WHITE [static, private] |
Definition at line 27 of file ColorTable.java.
Referenced by edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.ColorTable(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.dispose(), and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColorTable().
ArrayList<String> edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.procNames [package] |
All of the function names stored in this colorTable.
Definition at line 32 of file ColorTable.java.
Referenced by edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.addProcedure(), edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.ColorTable(), and edu.rice.cs.hpc.traceviewer.data.graph.ColorTable.setColorTable().