org.das2.graph.DasAnnotation

This makes a DasCanvasComponent for GrannyTextRenderer, and optionally adds an arrow to point at things. TODO: See http://autoplot.org//developer.annotations


PROP_TEXT


PROP_URL


PROP_FONT_SIZE

the font size in pixels.


PROP_BORDERTYPE


PROP_ANCHORPOSITION


PROP_XRANGE


PROP_YRANGE


PROP_POINTATX


PROP_POINTATY


PROP_POINTATOFFSET


PROP_SHOWARROW


PROP_ANCHORBORDERTYPE


PROP_ANCHORTYPE


PROP_ARROWSTYLE


PROP_OVERRIDECOLORS


PROP_TEXTCOLOR


PROP_ANCHOROFFSET


getAnchorBorderType

getAnchorBorderType( ) → BorderType

Returns:

org.das2.graph.BorderType

search for examples view on GitHub view source


getAnchorOffset

getAnchorOffset( ) → String

Returns:

java.lang.String

search for examples view on GitHub view source


getAnchorPosition

getAnchorPosition( ) → AnchorPosition

get the location within the box where the annotation will be drawn.

Returns:

anchorPosition

search for examples view on GitHub view source


getAnchorType

getAnchorType( ) → AnchorType

Returns:

org.das2.graph.AnchorType

search for examples view on GitHub view source


getArrowStyle

getArrowStyle( ) → HeadStyle

get the arrow style

Returns:

the arrow style

search for examples view on GitHub view source


getBorderType

getBorderType( ) → BorderType

the border type

Returns:

the border type

search for examples view on GitHub view source


getPointAt

getPointAt( ) → PointDescriptor

return the thing we are pointing at.

Returns:

the thing we are pointing at.

search for examples view on GitHub view source


getPointAtOffset

getPointAtOffset( ) → String

Returns:

java.lang.String

search for examples view on GitHub view source


getPointAtX

getPointAtX( ) → Datum

Returns:

org.das2.datum.Datum

search for examples view on GitHub view source


getPointAtY

getPointAtY( ) → Datum

Returns:

org.das2.datum.Datum

search for examples view on GitHub view source


getTextColor

getTextColor( ) → Color

Returns:

java.awt.Color

search for examples view on GitHub view source


getUrl

getUrl( ) → String

Returns:

java.lang.String

search for examples view on GitHub view source


getXrange

getXrange( ) → DatumRange

Returns:

org.das2.datum.DatumRange

search for examples view on GitHub view source


getYrange

getYrange( ) → DatumRange

Returns:

org.das2.datum.DatumRange

search for examples view on GitHub view source


isOverrideColors

isOverrideColors( ) → boolean

Returns:

boolean

search for examples view on GitHub view source


isShowArrow

isShowArrow( ) → boolean

Returns:

boolean

search for examples view on GitHub view source


setAnchorBorderType

setAnchorBorderType( org.das2.graph.BorderType anchorBorderType ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setAnchorOffset

setAnchorOffset( String anchorOffset ) → void

the offset in x and y for the text bubble from the anchor. For example, "4em,4em" will place a OutsideNE label 4ems up and 4ems over from the default.

Parameters

anchorOffset -

Returns:

void (returns nothing)

search for examples view on GitHub view source


setAnchorPosition

setAnchorPosition( org.das2.graph.AnchorPosition anchorPosition ) → void

set the location within the box where the annotation will be drawn.

Parameters

anchorPosition -

Returns:

void (returns nothing)

search for examples view on GitHub view source


setAnchorType

setAnchorType( org.das2.graph.AnchorType anchorType ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setArrowStyle

setArrowStyle( org.das2.graph.Arrow.HeadStyle newarrowStyle ) → void

set the arrow style to BIG,SMALL,DRAFTING.

Parameters

newarrowStyle - the arrow style

Returns:

void (returns nothing)

search for examples view on GitHub view source


setBorderType

setBorderType( org.das2.graph.BorderType newborderType ) → void

set the border type to NONE, rounded rectangle, etc.

Parameters

newborderType - the border type

Returns:

void (returns nothing)

search for examples view on GitHub view source


setOverrideColors

setOverrideColors( boolean overrideColors ) → void

true will use the colors specified, otherwise the canvas colors are used.

Parameters

overrideColors -

Returns:

void (returns nothing)

search for examples view on GitHub view source


setPlot

setPlot( org.das2.graph.DasPlot p ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setPointAt

setPointAt( org.das2.graph.DasAnnotation.PointDescriptor p ) → void

set the thing to point at. If %p will be replaced by p.getLabel()

Parameters

p - the thing.

Returns:

void (returns nothing)

search for examples view on GitHub view source


setPointAtOffset

setPointAtOffset( String pointAtOffset ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setPointAtX

setPointAtX( Datum pointAtX ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setPointAtY

setPointAtY( Datum pointAtY ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setShowArrow

setShowArrow( boolean showArrow ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setText

setText( String string ) → void

Set the text, which can be Granny Text, or image URL. (Image URL is deprecated, use url property instead.) If the url property has length>0, then this is ignored. URLs must start with http:, https:, or file:.

Parameters

string - the text

Returns:

void (returns nothing)

See Also:

GrannyTextRenderer


search for examples view on GitHub view source


setTextColor

setTextColor( java.awt.Color textColor ) → void

the color of the text, or if transparent then the border color should be used.

Parameters

textColor -

Returns:

void (returns nothing)

search for examples view on GitHub view source


setUrl

setUrl( String url ) → void

set the URL to the location of a png or jpg file. If this is set, then the text property is ignored.

Parameters

url -

Returns:

void (returns nothing)

search for examples view on GitHub view source


setXrange

setXrange( DatumRange xrange ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


setYrange

setYrange( DatumRange yrange ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source