org.hackystat.projectbrowser.page.telemetry.datapanel
Class SelectableTelemetryStream

java.lang.Object
  extended by org.hackystat.projectbrowser.page.telemetry.datapanel.SelectableTelemetryStream
All Implemented Interfaces:
java.io.Serializable

public class SelectableTelemetryStream
extends java.lang.Object
implements java.io.Serializable

Group a selected flag with a TelemetryStream, so that this instance can be flagged as selected or not.

Author:
Shaoxuan
See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Support serialization.
 
Constructor Summary
SelectableTelemetryStream(org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryStream telemetryStream)
           
 
Method Summary
 java.lang.String getBackgroundColorValue()
          Returns a background-color attribute with the value of color.
 double getBlankLength()
           
 double getLineLength()
           
 java.lang.String getMarker()
           
 java.lang.String getMarkerColor()
           
 java.lang.String getMarkerImageUrl()
          Return a image url that shows only one marker.
 double getMaximum()
           
 double getMinimum()
           
 java.lang.String getStreamColor()
           
 java.util.List<java.lang.Double> getStreamData()
           
 java.lang.String getStreamName()
          Return the name of this stream.
 org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryStream getTelemetryStream()
           
 double getThickness()
           
 java.lang.String getUnitName()
          Return the Unit of this stream.
 boolean isEmpty()
           
 boolean isSelected()
           
 void setBlankLength(double blankLength)
           
 void setColor(java.lang.String color)
          Set the color to both stream and marker color.
 void setLineLength(double lineLength)
           
 void setMarker(java.lang.String marker)
           
 void setMarkerColor(java.lang.String markerColor)
           
 void setSelected(boolean selected)
           
 void setStreamColor(java.lang.String streamColor)
           
 void setThickness(double thickness)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Support serialization.

See Also:
Constant Field Values
Constructor Detail

SelectableTelemetryStream

public SelectableTelemetryStream(org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryStream telemetryStream)
Parameters:
telemetryStream - the TelemetryStream of this instance.
Method Detail

setSelected

public void setSelected(boolean selected)
Parameters:
selected - the selected to set

isSelected

public boolean isSelected()
Returns:
the selected

getTelemetryStream

public org.hackystat.telemetry.service.resource.chart.jaxb.TelemetryStream getTelemetryStream()
Returns:
the telemetryStream

setColor

public void setColor(java.lang.String color)
Set the color to both stream and marker color.

Parameters:
color - the color to set.

getStreamColor

public java.lang.String getStreamColor()
Returns:
color of stream.

setStreamColor

public void setStreamColor(java.lang.String streamColor)
Parameters:
streamColor - the stream color to set.

getMarkerColor

public java.lang.String getMarkerColor()
Returns:
color of marker.

setMarkerColor

public void setMarkerColor(java.lang.String markerColor)
Parameters:
markerColor - the marker color to set.

getBackgroundColorValue

public java.lang.String getBackgroundColorValue()
Returns a background-color attribute with the value of color.

Returns:
The background-color key-value pair.

setMarker

public void setMarker(java.lang.String marker)
Parameters:
marker - the marker to set

getMarker

public java.lang.String getMarker()
Returns:
the marker

isEmpty

public final boolean isEmpty()
Returns:
the isEmpty

getMaximum

public double getMaximum()
Returns:
the maximum

getMinimum

public double getMinimum()
Returns:
the minimum

setThickness

public void setThickness(double thickness)
Parameters:
thickness - the thickness to set

getThickness

public double getThickness()
Returns:
the thickness

setLineLength

public void setLineLength(double lineLength)
Parameters:
lineLength - the lineLength to set

getLineLength

public double getLineLength()
Returns:
the lineLength

setBlankLength

public void setBlankLength(double blankLength)
Parameters:
blankLength - the blankLength to set

getBlankLength

public double getBlankLength()
Returns:
the blankLength

getStreamData

public final java.util.List<java.lang.Double> getStreamData()
Returns:
the list of data of this stream

getMarkerImageUrl

public java.lang.String getMarkerImageUrl()
Return a image url that shows only one marker. Using google chart to generate this image. there is an example output: http://chart.apis.google.com/chart? chs=20x20&cht=ls&chd=t:-1,1.0,-1&chds=0.9,1.1&chm=c,FF0000,0,-1,20.0

Returns:
the image url

getUnitName

public java.lang.String getUnitName()
Return the Unit of this stream.

Returns:
String of the unit.

getStreamName

public java.lang.String getStreamName()
Return the name of this stream.

Returns:
String of the name.