casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casa::AxisListener Class Referenceabstract

Interface implemented by classes wanting to receive notice when a plot property changes. More...

#include <AxisListener.h>

Public Member Functions

virtual void setAxisLabel (PlotAxis axis, const casacore::String &title)=0
 Set a new plot axis label. More...
 
virtual void setDateFormat (const casacore::String &dateFormat)=0
 New format for displaying dates. More...
 
virtual void setRelativeDateFormat (const casacore::String &dateFormat)=0
 New format for displaying dates based off a given start position. More...
 
virtual void setAxisScale (PlotAxis axis, PlotAxisScale scale, casacore::uInt base=10)=0
 Set a new scale for the plot axis (logarithmic, etc). More...
 
virtual void setAxisReferenceValue (PlotAxis axis, bool on, double value)=0
 Set a starting value for an axis using a relative scale. More...
 
virtual void setAxisFont (PlotAxis axis, const PlotFont &font)=0
 Set a font for use on an axis. More...
 
virtual ~AxisListener ()
 
 AxisListener ()
 

Detailed Description

Interface implemented by classes wanting to receive notice when a plot property changes.

Definition at line 39 of file AxisListener.h.

Constructor & Destructor Documentation

virtual casa::AxisListener::~AxisListener ( )
inlinevirtual

Definition at line 76 of file AxisListener.h.

casa::AxisListener::AxisListener ( )
inline

Definition at line 77 of file AxisListener.h.

Member Function Documentation

virtual void casa::AxisListener::setAxisFont ( PlotAxis  axis,
const PlotFont font 
)
pure virtual

Set a font for use on an axis.

Parameters
axis,thePlotAxis to which the font applies.
font,thefont to use when drawing tick labels and axis labels.
virtual void casa::AxisListener::setAxisLabel ( PlotAxis  axis,
const casacore::String title 
)
pure virtual

Set a new plot axis label.

Parameters
axisthe axis where the label change is ocurring.
titlethe new label for the axis.
virtual void casa::AxisListener::setAxisReferenceValue ( PlotAxis  axis,
bool  on,
double  value 
)
pure virtual

Set a starting value for an axis using a relative scale.

Parameters
axis,thePlotAxis to which the base scale applies.
on,whetherit should be used.
value,thestarting value for the relative scale.
virtual void casa::AxisListener::setAxisScale ( PlotAxis  axis,
PlotAxisScale  scale,
casacore::uInt  base = 10 
)
pure virtual

Set a new scale for the plot axis (logarithmic, etc).

Parameters
axis,thePlotAxis to which the scale applies.
scale,thenew scale (linear, logarithmic, etc).
virtual void casa::AxisListener::setDateFormat ( const casacore::String dateFormat)
pure virtual

New format for displaying dates.

Parameters
dateFormatthe new format to use for displaying dates.
virtual void casa::AxisListener::setRelativeDateFormat ( const casacore::String dateFormat)
pure virtual

New format for displaying dates based off a given start position.

Parameters
dateFormatthe new format for displaying relative dates.

The documentation for this class was generated from the following file: