public class ChartPalette extends Object implements CollectionChangeListener
Modifier and Type | Field and Description |
---|---|
static String |
AREA_FAMILY |
static String |
BAR_FAMILY |
static String |
CARTESIAN_CHART_GRID |
static String |
CARTESIAN_CHART_GRID_STRIPES |
static String |
CARTESIAN_CUSTOM_ANNOTATION |
static String |
CARTESIAN_GRID_LINE_ANNOTATION |
static String |
CARTESIAN_PLOT_BAND_ANNOTATION |
static String |
CARTESIAN_STROKED_ANNOTATION |
static String |
HORIZONTAL_AXIS_FAMILY |
static String |
LINE_FAMILY |
static String |
OHLC_FAMILY |
static String |
PIE_FAMILY |
static String |
POINT_FAMILY |
static String |
VERTICAL_AXIS_FAMILY |
Constructor and Description |
---|
ChartPalette()
Initializes a new instance of the
ChartPalette class. |
ChartPalette(ChartPalette palette)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
ChartPalette |
clone() |
ChartPalette |
clonePalette()
This method is for Xamarin because it generates a protected clone() method and Xamarin users can't customize the chart styles.
|
void |
collectionChanged(CollectionChangedEvent info)
This method handles the occurred change and notifies the change listeners.
|
PaletteEntryCollection |
entriesForFamily(String family)
Retrieves a collection of
PaletteEntry instances
which are targeting elements belonging to the provided family. |
PaletteEntry |
getEntry(PresenterBase series)
Gets a palette entry for the given series and index.
|
PaletteEntry |
getEntry(PresenterBase series,
int index)
Gets a palette entry for the given series and index.
|
PaletteEntry |
getEntry(String family)
Gets a palette entry for the given family and index.
|
PaletteEntry |
getEntry(String family,
int index)
Gets a palette entry for the given family and index.
|
ObservableCollection<PaletteEntry> |
globalEntries()
Gets the collection that stores entries not related to any particular series.
|
boolean |
isPredefined()
Gets a value indicating whether the specified palette is predefined and may not be modified by the user.
|
ObservableCollection<PaletteEntryCollection> |
seriesEntries()
Gets the collection with all the per-series definitions registered with the palette.
|
public static final String PIE_FAMILY
public static final String AREA_FAMILY
public static final String BAR_FAMILY
public static final String LINE_FAMILY
public static final String POINT_FAMILY
public static final String OHLC_FAMILY
public static final String HORIZONTAL_AXIS_FAMILY
public static final String VERTICAL_AXIS_FAMILY
public static final String CARTESIAN_GRID_LINE_ANNOTATION
public static final String CARTESIAN_CUSTOM_ANNOTATION
public static final String CARTESIAN_PLOT_BAND_ANNOTATION
public static final String CARTESIAN_CHART_GRID
public static final String CARTESIAN_CHART_GRID_STRIPES
public static final String CARTESIAN_STROKED_ANNOTATION
public ChartPalette()
ChartPalette
class.public ChartPalette(ChartPalette palette)
public boolean isPredefined()
public ObservableCollection<PaletteEntry> globalEntries()
public ObservableCollection<PaletteEntryCollection> seriesEntries()
public PaletteEntry getEntry(PresenterBase series, int index)
series
- The series from which to get the palette family.index
- The palette index.public PaletteEntry getEntry(PresenterBase series)
series
- The series from which to get the palette family.public PaletteEntry getEntry(String family)
family
- The palette family.public PaletteEntry getEntry(String family, int index)
family
- The palette family.index
- The palette index.public PaletteEntryCollection entriesForFamily(String family)
PaletteEntry
instances
which are targeting elements belonging to the provided family.family
- the family for which to retrieve the palette entries.PaletteEntryCollection
class
representing the collection of resolved entries.public void collectionChanged(CollectionChangedEvent info)
CollectionChangeListener
collectionChanged
in interface CollectionChangeListener
info
- info about the occurred change holding the old and the new data.CollectionChangedEvent
public ChartPalette clonePalette()
public ChartPalette clone()