28 #ifndef TRIALDISPLAY_WCAXISLABELLER_H
29 #define TRIALDISPLAY_WCAXISLABELLER_H
133 if ( actualText.
length() == 0 ){
virtual casacore::String xGridColor() const
casacore::Float itsOptionsLineWidth
plot line width casacore::Int itsOptionsLineWidth;
virtual casacore::String titleText() const
virtual void setDefaultOptions()
install the default options for this DisplayData
virtual casacore::Bool draw(const WCRefreshEvent &ev)=0
Draw axis labels for the provided WorldCanvas refresh event.
virtual casacore::Bool setYAxisTextColor(const casacore::String color=casacore::String("foreground"))
virtual casacore::Bool setTickLength(const casacore::Float length=4.0)
set/return the tick length in millimetres.
casacore::String itsOptionsCharFont
plot character font
Class to provide option parsing routines for display classes.
Class which stores WorldCanvas refresh event information.
casacore::Float itsDefaultCharSize
virtual casacore::String titleTextColor() const
virtual casacore::Bool setYGridColor(const casacore::String color=casacore::String("foreground"))
virtual casacore::Bool setXAxisTextColor(const casacore::String color=casacore::String("foreground"))
set/return the color of the label text.
virtual Type type()
Return the type enum.
casacore::String itsOptionsYAxisText
virtual casacore::String xGridType() const
virtual casacore::Bool plotOutline() const
virtual casacore::String plotOutlineColor() const
virtual casacore::Bool setYAxisText(const casacore::String text=casacore::String(""))
virtual casacore::String yAxisText() const
casacore::String itsOptionsXGridType
coordinate grid?
virtual void invalidate()
Invalidate any cached drawings.
Abstract class for drawing grids, axes, ticks and tick labels on a WorldCanvas.
casacore::Bool titleChanged
virtual ~WCAxisLabeller()
Destructor.
virtual casacore::Bool setYGridType(const casacore::String type=casacore::String("None"))
casacore::String itsOptionsYGridType
virtual void setSubstituteTitleText(const casacore::String substituteImageName)
set/return the title text.
casacore::Bool itsOptionsXAxisTextUnset
are the above unset
casacore::Bool itsDefaultSwitch
defaults for on/off switch and character size (from.aipsrc, if they exist there). ...
virtual casacore::Bool setXGridType(const casacore::String type=casacore::String("None"))
set/return what type of grid is marked in each direction.
virtual casacore::Bool isXAxisTextUnset() const
virtual casacore::Bool setCharSize(const casacore::Float size=1.2)
set/return the char size for the plot graphics
virtual casacore::String xAxisText() const
casacore::String itsOptionsLabelPos
Label position.
virtual casacore::String xAxisTextColor() const
virtual casacore::Bool setPlotOutlineColor(const casacore::String color=casacore::String("foreground"))
set/return the color used for the plot outline.
casacore::String itsOptionsTitleText
display title text
casacore::Bool itsOptionsYAxisTextUnset
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
virtual casacore::Bool axisLabelSwitch() const
virtual casacore::Bool setTitleTextColor(const casacore::String color=casacore::String("foreground"))
set/return the color of the title text.
virtual casacore::String labelPosition() const
static const casacore::String PLOT_TITLE
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual casacore::Bool setCharFont(const casacore::String font="normal")
set/return the char font for the plot graphics
casacore::String itsOptionsXGridColor
coordinate grid colors
virtual casacore::Float charSize() const
casacore::String substituteTitleText
casacore::String itsOptionsXAxisText
display axes label text
virtual casacore::String displayedTitleText() const
virtual casacore::Bool setXAxisText(const casacore::String text=casacore::String(""))
set/return the X and Y label text.
virtual casacore::String charFont() const
virtual casacore::String yAxisTextColor() const
virtual casacore::String yGridType() const
virtual casacore::Bool setXGridColor(const casacore::String color=casacore::String("foreground"))
set/return the color of the grid lines per direction.
casacore::Float itsOptionsCharSize
plot character size
casacore::String itsOptionsTitleTextColor
title color
virtual casacore::String yGridColor() const
virtual casacore::Record getOptions() const
retrieve the current and default options and parameter types.
casacore::String itsOptionsPlotOutlineColor
plot outline color
virtual casacore::Bool setPlotOutline(const casacore::Bool outline=true)
set/return whether there is a plot outline or not.
casacore::Bool itsOptionsPlotOutline
plot outline?
virtual casacore::Bool setAxisLabelSwitch(const casacore::Bool labelswitch=false)
set/return whether labelling is on or off.
virtual casacore::Bool setOptions(const casacore::Record &rec, casacore::Record &updatedOptions)
apply options stored in rec to the DisplayData; return value true means a refresh is needed...
casacore::Bool itsOptionsAxisLabelSwitch
global switch on or off
casacore::String itsOptionsYGridColor
virtual casacore::Bool setLineWidth(const casacore::Float width=0.0)
set/return the line width for the plot graphics.
static const casacore::String LABEL_CHAR_SIZE
String: the storage and methods of handling collections of characters.
virtual casacore::Bool unsetYAxisText()
casacore::String itsOptionsYAxisTextColor
virtual casacore::Bool unsetXAxisText()
casacore::String itsOptionsXAxisTextColor
label text color
WCAxisLabeller()
Constructor.
virtual casacore::Float tickLength() const
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
casacore::Float itsOptionsTickLength
tick mark length in mm
virtual casacore::Float lineWidth() const
virtual casacore::Bool isYAxisTextUnset() const
virtual casacore::Bool setLabelPosition(const casacore::String position=casacore::String("Auto"))
set/return the position of World label strings