All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.birt.chart.extension.aggregate.TopPercent Maven / Gradle / Ivy

There is a newer version: 4.6.0-20160607
Show newest version
/***********************************************************************
 * Copyright (c) 2008 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Actuate Corporation - initial API and implementation
 ***********************************************************************/

package org.eclipse.birt.chart.extension.aggregate;

import org.eclipse.birt.chart.aggregate.AggregateFunctionAdapter;
import org.eclipse.birt.chart.engine.extension.i18n.Messages;
import org.eclipse.birt.core.data.DataType;


/**
 * @since BIRT 2.3
 */
public class TopPercent extends AggregateFunctionAdapter
{
	/* (non-Javadoc)
	 * @see org.eclipse.birt.chart.aggregate.IAggregateFunction#getDisplayParameters()
	 */
	public String[] getDisplayParameters( )
	{
		return new String[]{Messages.getString("TopPercent.AggregateFunction.Parameters.Label.Percentage")}; //$NON-NLS-1$
	}

	/* (non-Javadoc)
	 * @see org.eclipse.birt.chart.aggregate.IAggregateFunction#getParametersCount()
	 */
	public int getParametersCount( )
	{
		return 1;
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.birt.chart.aggregate.AggregateFunctionAdapter#getType()
	 */
	public int getType( )
	{
		return RUNNING_AGGR;
	}

	@Override
	public int getBIRTDataType( )
	{
		return DataType.BOOLEAN_TYPE;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy