public class Swimlanes extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Swimlanes.CoordScaler
Provides convenient rescaling of raw values to be plotted to
actual pixels for plotting on image
|
static class |
Swimlanes.SwimlanesStateAction
Prefuse action for plotting a line for each state
|
static class |
Swimlanes.SwimlanesStatePalette
Provide constant mapping between state names and colours
so that even if particular states are missing, the colours are fixed
for each state
|
Constructor and Description |
---|
Swimlanes() |
Swimlanes(javax.servlet.http.HttpServletRequest request) |
Swimlanes(String timezone,
String cluster,
String event_type,
HashMap<String,String> valmap)
Constructor for Swimlanes visualization object
|
Swimlanes(String timezone,
String cluster,
String event_type,
HashMap<String,String> valmap,
int width,
int height) |
Swimlanes(String timezone,
String cluster,
String event_type,
HashMap<String,String> valmap,
int width,
int height,
String legend_opt) |
Modifier and Type | Method and Description |
---|---|
prefuse.data.Table |
getData() |
boolean |
getImage(OutputStream output,
String img_fmt,
double scale)
Generates image in specified format, and writes image as binary
output to supplied output stream
|
void |
run() |
void |
setDimensions(int width,
int height)
Set dimensions of image to be generated
Call before calling @see #run
|
void |
setJobName(String s)
Set job ID to filter results on
Call before calling @see #run
|
void |
setLegend(boolean legendopt)
Specify whether to print legend of states
Advisable to not print legend for excessively small images since
legend has fixed point size
Call before calling @see #run
|
public Swimlanes()
public Swimlanes(String timezone, String cluster, String event_type, HashMap<String,String> valmap)
timezone
- Timezone string from environmentcluster
- Cluster name from environmentevent_type
- Whether to display shuffles or notvalmap
- HashMap of key/value pairs simulating parameters from a HttpRequestpublic Swimlanes(String timezone, String cluster, String event_type, HashMap<String,String> valmap, int width, int height)
public Swimlanes(String timezone, String cluster, String event_type, HashMap<String,String> valmap, int width, int height, String legend_opt)
public Swimlanes(javax.servlet.http.HttpServletRequest request)
public void setJobName(String s)
s
- job namepublic void setDimensions(int width, int height)
width
- image width in pixelsheight
- image height in pixelspublic void setLegend(boolean legendopt)
legendopt
- parameter to turn on legendspublic boolean getImage(OutputStream output, String img_fmt, double scale)
output
- output stream of imageimg_fmt
- image formatscale
- image scaling factorpublic void run()
public prefuse.data.Table getData()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.