casa
5.7.0-16
|
PlotAnnotation is an abstraction of text written directly on the canvas. More...
#include <PlotAnnotation.h>
Public Member Functions | |
PlotAnnotation () | |
Constructor. More... | |
virtual | ~PlotAnnotation () |
Destructor. More... | |
virtual unsigned int | drawCount () const |
Implements PlotItem::drawCount(). More... | |
virtual casacore::String | text () const =0 |
ABSTRACT METHODS //. More... | |
virtual void | setText (const casacore::String &newText)=0 |
Sets the text of the annotation. More... | |
virtual PlotFontPtr | font () const =0 |
Returns a copy of the font used in the annotation. More... | |
virtual void | setFont (const PlotFont &font)=0 |
Sets the annotation font to the given. More... | |
virtual int | orientation () const =0 |
Returns orientation in counterclockwise degrees (between 0 and 360). More... | |
virtual void | setOrientation (int orientation)=0 |
Sets the orientation in counterclockwise degrees (between 0 and 360). More... | |
virtual PlotCoordinate | coordinate () const =0 |
Returns the coordinate where the annotation is located on the canvas it is attached to. More... | |
virtual void | setCoordinate (const PlotCoordinate &coord)=0 |
Sets the location of the annotation to the given. More... | |
virtual bool | outlineShown () const =0 |
Returns true if an outline is shown around the annotation, false otherwise. More... | |
virtual void | setOutlineShown (bool show=true)=0 |
Sets whether an outline is shown around the annotation. More... | |
virtual PlotLinePtr | outline () const =0 |
Returns a copy of the line used to draw the outline for this annotation. More... | |
virtual void | setOutline (const PlotLine &line)=0 |
Sets the outline to the given line. More... | |
virtual PlotAreaFillPtr | background () const =0 |
Returns a copy of the area fill used for the annotation's background. More... | |
virtual void | setBackground (const PlotAreaFill &area)=0 |
Sets the annotation's background to the given. More... | |
virtual void | setFont (const PlotFontPtr font) |
IMPLEMENTED METHODS //. More... | |
virtual void | setFontColor (const casacore::String &color) |
virtual void | setOutline (const PlotLinePtr line) |
Convenience methods for setting the outline. More... | |
virtual void | setOutline (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0) |
virtual void | setBackground (const PlotAreaFillPtr area) |
Convenience methods for setting the background. More... | |
virtual void | setBackground (const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL) |
Public Member Functions inherited from casa::PlotItem | |
PlotItem () | |
Constructor. More... | |
virtual | ~PlotItem () |
Destructor. More... | |
virtual PlotCanvas * | canvas () const =0 |
Returns the canvas this item is currently attached to, or NULL for none. More... | |
virtual casacore::String | title () const =0 |
Returns a human-readable title for identification. More... | |
virtual void | setTitle (const casacore::String &newTitle)=0 |
Sets this items's title to the given. More... | |
virtual bool | isValid () const =0 |
Returns true if this item is valid, false otherwise. More... | |
virtual bool | isQWidget () const =0 |
Returns whether this item can be directly casted to a QWidget or not. More... | |
virtual PlotAxis | xAxis () const =0 |
Returns the item's axes. More... | |
virtual PlotAxis | yAxis () const =0 |
virtual void | setXAxis (PlotAxis x)=0 |
Sets the item's axes. More... | |
virtual void | setYAxis (PlotAxis y)=0 |
virtual void | setAxes (PlotAxis x, PlotAxis y) |
Sets both the item's axes at once. More... | |
virtual unsigned int | drawSegments (unsigned int segmentThreshold) const |
Returns the number of draw segments for this item, using the given segment threshold. More... | |
PlotAnnotation is an abstraction of text written directly on the canvas.
An annotation has text, font, orientation, outline, and background properties.
Definition at line 38 of file PlotAnnotation.h.
|
inline |
Constructor.
Definition at line 41 of file PlotAnnotation.h.
|
inlinevirtual |
Destructor.
Definition at line 44 of file PlotAnnotation.h.
|
pure virtual |
Returns a copy of the area fill used for the annotation's background.
Referenced by setBackground().
|
pure virtual |
Returns the coordinate where the annotation is located on the canvas it is attached to.
|
inlinevirtual |
Implements PlotItem::drawCount().
Provides default implementation that returns 1.
Implements casa::PlotItem.
Definition at line 49 of file PlotAnnotation.h.
|
pure virtual |
Returns a copy of the font used in the annotation.
Referenced by setFontColor().
|
pure virtual |
Returns orientation in counterclockwise degrees (between 0 and 360).
|
pure virtual |
Returns a copy of the line used to draw the outline for this annotation.
Referenced by setOutline().
|
pure virtual |
Returns true if an outline is shown around the annotation, false otherwise.
|
pure virtual |
Sets the annotation's background to the given.
Referenced by setBackground().
|
inlinevirtual |
Convenience methods for setting the background.
Definition at line 129 of file PlotAnnotation.h.
References casacore::CountedPtr< T >::null(), and setBackground().
|
inlinevirtual |
Definition at line 131 of file PlotAnnotation.h.
References background(), casacore::pattern(), and setBackground().
|
pure virtual |
Sets the location of the annotation to the given.
|
pure virtual |
Sets the annotation font to the given.
Referenced by setFont(), and setFontColor().
|
inlinevirtual |
IMPLEMENTED METHODS //.
Convenience methods for setting font.
Definition at line 102 of file PlotAnnotation.h.
References casacore::CountedPtr< T >::null(), and setFont().
|
inlinevirtual |
Definition at line 104 of file PlotAnnotation.h.
|
pure virtual |
Sets the orientation in counterclockwise degrees (between 0 and 360).
|
pure virtual |
Sets the outline to the given line.
Referenced by setOutline().
|
inlinevirtual |
Convenience methods for setting the outline.
Definition at line 113 of file PlotAnnotation.h.
References casacore::CountedPtr< T >::null(), setOutline(), and setOutlineShown().
|
inlinevirtual |
Definition at line 117 of file PlotAnnotation.h.
References outline(), and setOutline().
|
pure virtual |
Sets whether an outline is shown around the annotation.
Referenced by setOutline().
|
pure virtual |
Sets the text of the annotation.
|
pure virtual |
ABSTRACT METHODS //.
Returns the text of the annotation.