27 #ifndef PLOTANNOTATION_H_
28 #define PLOTANNOTATION_H_
49 virtual unsigned int drawCount()
const {
return 1; }
120 line->setColor(color);
121 line->setStyle(style);
122 line->setWidth(width);
Bool null() const
Check to see if this CountedPtr is un-initialized, null.
virtual void setFont(const PlotFont &font)=0
Sets the annotation font to the given.
virtual PlotAreaFillPtr background() const =0
Returns a copy of the area fill used for the annotation's background.
PlotAnnotation is an abstraction of text written directly on the canvas.
virtual PlotLinePtr outline() const =0
Returns a copy of the line used to draw the outline for this annotation.
virtual void setOutlineShown(bool show=true)=0
Sets whether an outline is shown around the annotation.
virtual PlotCoordinate coordinate() const =0
Returns the coordinate where the annotation is located on the canvas it is attached to...
virtual void setOutline(const PlotLine &line)=0
Sets the outline to the given line.
virtual void setOutline(const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
Abstract class for area fill.
virtual void setBackground(const PlotAreaFillPtr area)
Convenience methods for setting the background.
Pattern
Pattern enum, similar in spirit to http://doc.trolltech.com/4.3/qt.html#BrushStyle-enum.
void show(const variant &v)
TableExprNode pattern(const TableExprNode &node)
virtual casacore::String text() const =0
ABSTRACT METHODS //.
virtual void setBackground(const PlotAreaFill &area)=0
Sets the annotation's background to the given.
Abstract class for a line.
virtual unsigned int drawCount() const
Implements PlotItem::drawCount().
virtual void setFont(const PlotFontPtr font)
IMPLEMENTED METHODS //.
PlotItem is the superclass of any object that is meant to be placed on the canvas (plots...
virtual void setCoordinate(const PlotCoordinate &coord)=0
Sets the location of the annotation to the given.
INHERITANCE_POINTER2(PlotLayoutSingle, PlotLayoutSinglePtr, PlotCanvasLayout, PlotCanvasLayoutPtr) INHERITANCE_POINTER2(PlotLayoutGrid
virtual void setOrientation(int orientation)=0
Sets the orientation in counterclockwise degrees (between 0 and 360).
casacore::CountedPtr< PlotItem > PlotItemPtr
virtual ~PlotAnnotation()
Destructor.
PlotAnnotation()
Constructor.
virtual int orientation() const =0
Returns orientation in counterclockwise degrees (between 0 and 360).
virtual void setFontColor(const casacore::String &color)
virtual void setBackground(const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)
String: the storage and methods of handling collections of characters.
virtual bool outlineShown() const =0
Returns true if an outline is shown around the annotation, false otherwise.
virtual void setText(const casacore::String &newText)=0
Sets the text of the annotation.
Abstract class for fonts.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
virtual void setOutline(const PlotLinePtr line)
Convenience methods for setting the outline.
virtual PlotFontPtr font() const =0
Returns a copy of the font used in the annotation.