org.das2.graph.AttachedLabel

A canvas component for labeling things that is positioned just outside of a row,column box.

AttachedLabel( String label, int orientation, double emOffset )

constructs an AttachedLabel.


TOP

This value indicates that the axis should be located at the top of its cell


BOTTOM

This value indicates that the axis should be located at the bottom of its cell


LEFT

This value indicates that the axis should be located to the left of its cell


RIGHT

This value indicateds that the axis should be located to the right of its cell


HORIZONTAL

This value indicates that the axis should be oriented horizontally


VERTICAL

This value indicates that the axis should be oriented vertically


clone

clone( ) → Object

clones the component

Returns:

clone of this.

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


getActiveRegion

getActiveRegion( ) → Shape

Returns:

the bounds of the label

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


getDLength

getDLength( ) → int

Returns:

returns the length in pixels of the axis.

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


getDevicePosition

Deprecated: It's not clear how this should be used, and it does not appear to be used within dasCore and dasApps.

getEmOffset

getEmOffset( ) → double

Getter for property emOffset.

Returns:

Value of property emOffset.

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


getLabel

getLabel( ) → String

Accessor method for the title property of this axis.

Returns:

A String instance that contains the title displayed for this axis, or null if the axis has no title.

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


getLabelFont

getLabelFont( ) → Font

get the current font of the compoennt.

Returns:

Font of the component.

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


getOrientation

getOrientation( ) → int

return orientation int

Returns:

AttachedLabel.TOP, etc.

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


isHorizontal

isHorizontal( ) → boolean

true if the label is horizontal

Returns:

true if the label is horizontal

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


resize

resize( ) → void

revalidate component after resize.

Returns:

void (returns nothing)

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


setEmOffset

setEmOffset( double emOffset ) → void

Setter for property emOffset.

Parameters

emOffset - New value of property emOffset.

Returns:

void (returns nothing)

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


setLabel

setLabel( String t ) → void

Mutator method for the title property of this axis. The title for this axis is displayed below the ticks for horizontal axes or to left of the ticks for vertical axes.

Parameters

t - The new title for this axis

Returns:

void (returns nothing)

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


setLabelFont

setLabelFont( java.awt.Font labelFont ) → void

set the font of the label.

Parameters

labelFont - Font for the component. Currently this is ignored.

Returns:

void (returns nothing)

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


setOrientation

setOrientation( int orientation ) → void

Sets the side of the row,column box to locate the label.

Parameters

orientation - should be one of AttachedLabel.TOP, AttachedLabel.BOTTOM, AttachedLabel.LEFT, AttachedLabel.RIGHT

Returns:

void (returns nothing)

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