Source
return (!m_standardTools.null()) ? m_standardTools->isBackgroundColorChanged() : false;
//# PlotCanvas.cc: Main drawing area for different plot items to be attached.
//# Copyright (C) 2009
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//# $Id: $
using namespace std;
using namespace casacore;
namespace casa {
////////////////////////////
// PLOTCANVAS DEFINITIONS //
////////////////////////////
// Static //
vector<PlotCanvas::LegendPosition> PlotCanvas::allLegendPositions() {
static vector<LegendPosition> v(8);
v[0] = INT_URIGHT; v[1] = INT_LRIGHT;
v[2] = INT_ULEFT; v[3] = INT_LLEFT;
v[4] = EXT_RIGHT; v[5] = EXT_TOP;
v[6] = EXT_LEFT; v[7] = EXT_BOTTOM;
return v;
}
vector<String> PlotCanvas::allLegendPositionStrings() {
static vector<LegendPosition> p = allLegendPositions();
static vector<String> v(p.size());
for(unsigned int i = 0; i < v.size(); i++) v[i] = legendPosition(p[i]);
return v;
}
String PlotCanvas::legendPosition(LegendPosition p) {
switch(p) {
case INT_URIGHT: return "Upper Right";
case INT_LRIGHT: return "Lower Right";