/** * Creates a new instance of this filter. * * @param numberOfEntries * Maximal number of entries in a XYPlot * @param recordsTimeUnit * Time unit to interpret the timestamp of a record passed to the input port */ public MemSwapUtilizationDisplayFilter(final int numberOfEntries, final TimeUnit recordsTimeUnit) { this.recordsTimeUnit = recordsTimeUnit; // Create the display objects this.xyplot = new XYPlot(numberOfEntries); this.memPieChart = new PieChart(); this.swapPieChart = new PieChart(); }
/** * Creates a new instance of this class using the given parameters. * * @param configuration * The configuration for this filter. * @param projectContext * The project context for this filter. */ public MemSwapUtilizationDisplayFilter(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext); // Read the configuration this.numberOfEntries = configuration.getIntProperty(CONFIG_PROPERTY_NAME_NUMBER_OF_ENTRIES); // Create the display objects this.xyplot = new XYPlot(this.numberOfEntries); this.memPieChart = new PieChart(); this.swapPieChart = new PieChart(); }
/** * Creates a new instance of this class using the given parameters. * * @param configuration * The configuration for this filter. * @param projectContext * The project context for this filter. */ public MemSwapUtilizationDisplayFilter(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext); // Read the configuration this.numberOfEntries = configuration.getIntProperty(CONFIG_PROPERTY_NAME_NUMBER_OF_ENTRIES); // Create the display objects this.xyplot = new XYPlot(this.numberOfEntries); this.memPieChart = new PieChart(); this.swapPieChart = new PieChart(); }