public Dataset getDataset() {
        return this.dataset;
    }
    
    /**
     * Sets a reference to the dataset that this legend item is derived from.
     * 
     * @param dataset  the dataset.
     * 
     * @since 1.0.6
     */
    public void setDataset(Dataset dataset) {
        this.dataset = dataset;