public code v1
This commit is contained in:
+50
@@ -0,0 +1,50 @@
|
||||
package flintstones.entity.domain.ui.chart;
|
||||
|
||||
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.jfree.chart.JFreeChart;
|
||||
import org.jfree.chart.swt.ChartComposite;
|
||||
|
||||
import flintstones.entity.domain.Domain;
|
||||
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
public abstract class DomainChart {
|
||||
|
||||
protected Domain _domain;
|
||||
protected JFreeChart _chart;
|
||||
protected ChartComposite _chartComposite;
|
||||
|
||||
public ChartComposite getChartComposite() {
|
||||
return this._chartComposite;
|
||||
}
|
||||
|
||||
public void setCharComposite(ChartComposite chartComposite) {
|
||||
this._chartComposite = chartComposite;
|
||||
}
|
||||
|
||||
public Domain getDomain() {
|
||||
return this._domain;
|
||||
}
|
||||
|
||||
public void setDomain(Domain domain) {
|
||||
this._domain = domain;
|
||||
this.refreshChart();
|
||||
}
|
||||
|
||||
public void updateSize(int width, int height) {
|
||||
_chartComposite.setSize(width, height);
|
||||
}
|
||||
|
||||
public abstract void refreshChart();
|
||||
|
||||
public abstract void setSelection(Object selection);
|
||||
|
||||
public abstract void initialize(Domain domain, Composite container, int width, int height, int style);
|
||||
|
||||
public abstract void displayRanking(Object ranking);
|
||||
|
||||
public void displayAlternatives(String[] alternatives, int[] pos, double[] alpha) {
|
||||
throw new RuntimeException("No implementado");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user