org.das2.graph.EventsRenderer
Draw colored horizontal bars for the dataset, marking events datasets or modes of the data. This expects
a QDataSet with the canonical scheme:
{@code
Events[:,BUNDLE_1=4] where the columns are:
BUNDLE_1=startTime,stopTime,Color,Message
startTime,stopTime are in some time location unit. stopTime may also be an offset from startTime (e.g. seconds)
Color is an int, that is either 0xRRGGBB or 0xAARRGGBB.
Message is any datum, so typically an enumeration unit is used.
}
Note this also contains systems for coloring data in old schemes, such as the colorSpecifier interface and textSpecifier.
These should not be used when a dataset will be sufficient.
EventsRenderer( )
PROP_COLOR
DEFAULT_TEXT_SPECIFIER
PROP_LINESTYLE
PROP_LINETHICK
PROP_OPAQUE
PROP_SHOWLABELS
PROP_MODE
PROP_ORBITMODE
PROP_GANTTMODE
PROP_ROTATELABEL
rotate the label counter clockwise to make more room in orbitMode.
PROP_FONTSIZE
PROP_COLOR_SPECIFIER
acceptContext
acceptContext( int x, int y ) → boolean
Parameters
x - an int
y - an int
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
doAutorange
doAutorange( QDataSet ds ) → QDataSet
return bounding cube
Parameters
ds - a QDataSet
Returns:
a QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getColor
getColor( ) → Color
Returns:
java.awt.Color
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getColorSpecifier
getColorSpecifier( ) → ColorSpecifier
Returns:
org.das2.graph.EventsRenderer.ColorSpecifier
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getControl
getControl( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getFontSize
getFontSize( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getLineStyle
getLineStyle( ) → PsymConnector
Returns:
org.das2.graph.PsymConnector
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getLineThick
getLineThick( ) → String
the line thickness, examples include "5pt" and "0.1em"
Returns:
a String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getListIcon
getListIcon( ) → Icon
Returns:
javax.swing.Icon
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getMode
getMode( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getRenderTimeLimitMs
getRenderTimeLimitMs( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getRotateLabel
getRotateLabel( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getTextSpecifier
getTextSpecifier( ) → TextSpecifier
Getter for property textSpecifier.
Returns:
Value of property textSpecifier.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
isGanttMode
isGanttMode( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
isOpaque
isOpaque( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
isOrbitMode
isOrbitMode( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
isShowLabels
isShowLabels( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
render
render( java.awt.Graphics2D g1, org.das2.graph.DasAxis xAxis, org.das2.graph.DasAxis yAxis ) → void
Parameters
g1 - a Graphics2D
xAxis - a DasAxis
yAxis - a DasAxis
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setColor
setColor( java.awt.Color color ) → void
set the color to use when the data doesn't specify a color. If an alpha channel is specified, then
this alpha value is used, otherwise 80% is used.
Parameters
color - a Color
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setColorSpecifier
setColorSpecifier( org.das2.graph.EventsRenderer.ColorSpecifier spec ) → void
set this to be an object implementing ColorSpecifier interface, if more than
one color is to be used when drawing the bars. Setting this to null will
restore the initial behavior of drawing all bars in one color (or with rank 2 bundle containing color).
Parameters
spec - the color specifier.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setControl
setControl( String s ) → void
Parameters
s - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setDataSet
setDataSet( QDataSet ds ) → void
Parameters
ds - a QDataSet
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setFontSize
setFontSize( String fontSize ) → void
Parameters
fontSize - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setGanttMode
setGanttMode( boolean ganttMode ) → void
Parameters
ganttMode - a boolean
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setLineStyle
setLineStyle( org.das2.graph.PsymConnector lineStyle ) → void
Parameters
lineStyle - a PsymConnector
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setLineThick
setLineThick( String lineThick ) → void
Parameters
lineThick - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setMode
setMode( String mode ) → void
if non-empty, then use this named mode
Parameters
mode - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setOpaque
setOpaque( boolean opaque ) → void
Parameters
opaque - a boolean
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setOrbitMode
setOrbitMode( boolean orbitMode ) → void
Parameters
orbitMode - a boolean
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setRenderTimeLimitMs
setRenderTimeLimitMs( int renderTimeLimitMs ) → void
Parameters
renderTimeLimitMs - an int
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setRotateLabel
setRotateLabel( int rotateLabel ) → void
Parameters
rotateLabel - an int
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setShowLabels
setShowLabels( boolean showLabels ) → void
Parameters
showLabels - a boolean
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setTextSpecifier
setTextSpecifier( org.das2.graph.EventsRenderer.TextSpecifier textSpecifier ) → void
Setter for property textSpecifier.
Parameters
textSpecifier - New value of property textSpecifier.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]