## org.das2.graph.DigitalRenderer

## DigitalRenderer( )

## PROP_COLOR

## PROP_ALIGN

## PROP_PLOTSYMBOL

## PROP_FORMAT

format, empty string means use either dataset's format, or %.2f

## PROP_SIZE

font size, 0 indicates the plot font should be used. TODO: this should be relativeSize. Add a property for this as well.

## PROP_FONTSIZE

font size, expressed as relative string like "1em" or "6pt"

## PROP_FILLLABEL

## PROP_DATASETSIZELIMIT

## 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

autorange on the data, returning a rank 2 bounds for the dataset.

### Parameters

ds - the dataset

### Returns:

a bounding box or null if the dataset is empty.

### See Also:

org.das2.qds.examples.Schemes#boundingBox()
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## formatDatum

formatDatum( String form, Datum d, char type ) → String

format the datum into a string, using the format and the pre-calculated type.

### Parameters

form - the format, such as %.2f or "x=%d cc"
d - a Datum
type - 'x' 'X' 'd' 'o' 'c' 'C' or 'f'

### Returns:

the string
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getAlign

getAlign( ) → org.das2.graph.DigitalRenderer.Align

### Returns:

org.das2.graph.DigitalRenderer.Align
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getColor

getColor( ) → java.awt.Color

### Returns:

java.awt.Color
[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]

## getDataSetSizeLimit

getDataSetSizeLimit( ) → int

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getFillLabel

getFillLabel( ) → 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]

## getFormat

getFormat( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getPlotSymbol

getPlotSymbol( ) → org.das2.graph.PlotSymbol

### Returns:

org.das2.graph.PlotSymbol
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getSize

getSize( ) → double

### Returns:

double
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## render

render( java.awt.Graphics2D g, org.das2.graph.DasAxis xAxis, org.das2.graph.DasAxis yAxis ) → void

### Parameters

g - a Graphics2D
xAxis - a DasAxis
yAxis - a DasAxis

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## selectionArea

selectionArea( ) → java.awt.Shape

like accept context, but provides a shape to indicate selection. This should be roughly the same as the locus of points where acceptContext is true.

### Returns:

a java.awt.Shape
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setAlign

setAlign( org.das2.graph.DigitalRenderer.Align align ) → void

For the box containing the digital number, which corner is anchored to the data. Note this is consistent with the anchorPosition property of annotations.

### Parameters

align - a DigitalRenderer.Align

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setColor

setColor( java.awt.Color color ) → void

### Parameters

color - a Color

### 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]

## setDataSetSizeLimit

setDataSetSizeLimit( int dataSetSizeLimit ) → void

### Parameters

dataSetSizeLimit - an int

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setFillLabel

setFillLabel( String fillLabel ) → void

the label printed where fill data (invalid data placeholder) is found.

### Parameters

fillLabel - the label such as "fill" or "" for nothing.

### 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]

## setFormat

setFormat( String value ) → void

note the dataset's format will be used if this is "", and "%.2f" if no format is found there.

### Parameters

value - a String

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setPlotSymbol

setPlotSymbol( org.das2.graph.PlotSymbol plotSymbol ) → void

### Parameters

plotSymbol - a PlotSymbol

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setSize

setSize( double size ) → void

### Parameters

size - a double

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## typeForFormat

typeForFormat( String form ) → char

return the data type needed for the format. For example, %d needs integers, %f needs floats.

### Parameters

form - a String

### Returns:

'x' 'X' 'd' 'o' 'c' 'C' or 'f'
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## updatePlotImage

updatePlotImage( org.das2.graph.DasAxis xAxis, org.das2.graph.DasAxis yAxis, ProgressMonitor monitor ) → void

### Parameters

xAxis - a DasAxis
yAxis - a DasAxis
monitor - a ProgressMonitor

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]