/** * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite, * org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage) */ public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { super.createControls(parent, tabbedPropertySheetPage); parent.setLayout(new GridLayout(3, false)); createWidget4Property(parent, JRDesignChart.PROPERTY_CUSTOMIZER_CLASS); GridData gd = new GridData(); gd.horizontalSpan = 2; createWidget4Property(parent, JRBaseChart.PROPERTY_RENDER_TYPE) .getControl().setLayoutData(gd); gd = new GridData(); gd.horizontalSpan = 2; createWidget4Property(parent, JRBaseChart.PROPERTY_THEME).getControl() .setLayoutData(gd); IPropertyDescriptor pd = getPropertyDesriptor(JRDesignChart.PROPERTY_EVALUATION_TIME); IPropertyDescriptor gpd = getPropertyDesriptor(JRDesignChart.PROPERTY_EVALUATION_GROUP); getWidgetFactory().createCLabel(parent, pd.getDisplayName()); widgets.put(pd.getId(), new SPEvaluationTime(parent, this, pd, gpd)); }
/** * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite, * org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage) */ public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { super.createControls(parent, tabbedPropertySheetPage); Composite group = getWidgetFactory().createSection(parent, com.jaspersoft.studio.messages.Messages.SubTitleSection_Subtitle_Label, true, 2); section = (ExpandableComposite)group.getParent(); getWidgetFactory().createCLabel(group, com.jaspersoft.studio.messages.Messages.SubTitleSection_Expression_Label); createWidget4Property(group, JRDesignChart.PROPERTY_SUBTITLE_EXPRESSION, false); getWidgetFactory().createCLabel(group, com.jaspersoft.studio.messages.Messages.SubTitleSection_Color_Label); createWidget4Property(group, JRBaseChart.PROPERTY_SUBTITLE_COLOR, false); GridData gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; createWidget4Property(group, JRDesignChart.PROPERTY_SUBTITLE_FONT, false).getControl().setLayoutData(gd); }
@Override public void setShowLegend(Boolean isShowLegend) { Boolean old = this.showLegend; this.showLegend = isShowLegend; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_SHOW_LEGEND, old, this.showLegend); }
@Override public void setRenderType(String renderType) { String old = this.renderType; this.renderType = renderType; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_RENDER_TYPE, old, this.renderType); }
@Override public void setTheme(String theme) { String old = this.theme; this.theme = theme; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_THEME, old, this.theme); }
@Override public void setTitlePosition(EdgeEnum titlePositionValue) { EdgeEnum old = this.titlePositionValue; this.titlePositionValue = titlePositionValue; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_TITLE_POSITION, old, this.titlePositionValue); }
@Override public void setTitleColor(Color titleColor) { Object old = this.titleColor; this.titleColor = titleColor; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_TITLE_COLOR, old, this.titleColor); }
@Override public void setSubtitleColor(Color subtitleColor) { Object old = this.subtitleColor; this.subtitleColor = subtitleColor; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_SUBTITLE_COLOR, old, this.subtitleColor); }
@Override public void setLegendColor(Color legendColor) { Object old = this.legendColor; this.legendColor = legendColor; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_LEGEND_COLOR, old, this.legendColor); }
@Override public void setLegendBackgroundColor(Color legendBackgroundColor) { Object old = this.legendBackgroundColor; this.legendBackgroundColor = legendBackgroundColor; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_LEGEND_BACKGROUND_COLOR, old, this.legendBackgroundColor); }
@Override public void setLegendPosition(EdgeEnum legendPositionValue) { EdgeEnum old = this.legendPositionValue; this.legendPositionValue = legendPositionValue; getEventSupport().firePropertyChange(JRBaseChart.PROPERTY_LEGEND_POSITION, old, this.legendPositionValue); }
/** * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite, * org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage) */ public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { super.createControls(parent, tabbedPropertySheetPage); Composite group = getWidgetFactory().createSection(parent, com.jaspersoft.studio.messages.Messages.common_legend, true, 2); section = (ExpandableComposite)group.getParent(); createWidget4Property(group, JRBaseChart.PROPERTY_SHOW_LEGEND); getWidgetFactory().createCLabel(group, com.jaspersoft.studio.messages.Messages.LegendSection_Position_Label); createWidget4Property(group, JRBaseChart.PROPERTY_LEGEND_POSITION, false); GridData gd = new GridData(); gd.horizontalSpan = 2; Composite colorComposite = new Composite(group, SWT.NONE); colorComposite.setLayout(new GridLayout(4, false)); colorComposite.setLayoutData(gd); getWidgetFactory().createCLabel(colorComposite, com.jaspersoft.studio.messages.Messages.LegendSection_Forecolor_Label); createWidget4Property(colorComposite, JRBaseChart.PROPERTY_LEGEND_COLOR, false); getWidgetFactory().createCLabel(colorComposite, com.jaspersoft.studio.messages.Messages.LegendSection_Backcolor_Label); createWidget4Property(colorComposite, JRBaseChart.PROPERTY_LEGEND_BACKGROUND_COLOR, false); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; createWidget4Property(group, JRDesignChart.PROPERTY_LEGEND_FONT, false) .getControl().setLayoutData(gd); }
protected void initializeProvidedProperties() { super.initializeProvidedProperties(); addProvidedProperties(JRBaseChart.PROPERTY_SHOW_LEGEND, Messages.MChart_show_legend); addProvidedProperties(JRBaseChart.PROPERTY_LEGEND_POSITION, Messages.MChart_legend_position); addProvidedProperties(JRBaseChart.PROPERTY_LEGEND_COLOR, Messages.MChart_legend_color); addProvidedProperties(JRBaseChart.PROPERTY_LEGEND_BACKGROUND_COLOR, Messages.MChart_legend_background_color); addProvidedProperties(JRDesignChart.PROPERTY_LEGEND_FONT, Messages.MChart_legend_font); }
/** * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite, * org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage) */ public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { super.createControls(parent, tabbedPropertySheetPage); Composite group = getWidgetFactory().createSection(parent, Messages.TitleSection_Title_Label, true, 2); section = (ExpandableComposite)group.getParent(); getWidgetFactory().createCLabel(group, Messages.TitleSection_Expression_Label); GridData gd = new GridData(GridData.FILL_HORIZONTAL); // gd.horizontalSpan = 3; createWidget4Property(group, JRDesignChart.PROPERTY_TITLE_EXPRESSION, false).getControl().setLayoutData(gd); getWidgetFactory().createCLabel(group, Messages.TitleSection_Position_Label); createWidget4Property(group, JRBaseChart.PROPERTY_TITLE_POSITION, false); getWidgetFactory().createCLabel(group, Messages.TitleSection_Color_Label); createWidget4Property(group, JRBaseChart.PROPERTY_TITLE_COLOR, false); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; createWidget4Property(group, JRDesignChart.PROPERTY_TITLE_FONT, false) .getControl().setLayoutData(gd); }
@Override protected void initializeProvidedProperties() { super.initializeProvidedProperties(); addProvidedProperties(JRDesignChart.PROPERTY_TITLE_EXPRESSION, com.jaspersoft.studio.components.chart.messages.Messages.MChart_title_expression); addProvidedProperties(JRBaseChart.PROPERTY_TITLE_POSITION, com.jaspersoft.studio.components.chart.messages.Messages.MChart_title_position); addProvidedProperties(JRBaseChart.PROPERTY_TITLE_COLOR, com.jaspersoft.studio.components.chart.messages.Messages.MChart_title_color); addProvidedProperties(JRDesignChart.PROPERTY_TITLE_FONT, com.jaspersoft.studio.components.chart.messages.Messages.MChart_title_font); }
@Override protected void initializeProvidedProperties() { super.initializeProvidedProperties(); addProvidedProperties(JRDesignChart.PROPERTY_CUSTOMIZER_CLASS, Messages.MChart_customizer_class); addProvidedProperties(JRBaseChart.PROPERTY_RENDER_TYPE, Messages.MChart_renderer_type); addProvidedProperties(JRBaseChart.PROPERTY_THEME, Messages.MChart_theme); addProvidedProperties(JRDesignChart.PROPERTY_EVALUATION_TIME, Messages.MChart_evaluation_time); }
@Override protected void initializeProvidedProperties() { super.initializeProvidedProperties(); addProvidedProperties(JRDesignChart.PROPERTY_SUBTITLE_EXPRESSION, Messages.MChart_subtitle_expression); addProvidedProperties(JRBaseChart.PROPERTY_SUBTITLE_COLOR, Messages.MChart_subtitle_color); addProvidedProperties(JRDesignChart.PROPERTY_SUBTITLE_FONT, Messages.MChart_subtitle_font); }
/** * */ protected ChartHyperlinkProvider createChartHyperlinkProvider() { ChartHyperlinkProvider chartHyperlinkProvider = null; switch(getChartType()) { case JRChart.CHART_TYPE_AREA: case JRChart.CHART_TYPE_BAR: case JRChart.CHART_TYPE_BAR3D: case JRChart.CHART_TYPE_LINE: case JRChart.CHART_TYPE_STACKEDBAR3D: case JRChart.CHART_TYPE_STACKEDBAR: case JRChart.CHART_TYPE_STACKEDAREA: chartHyperlinkProvider = new CategoryChartHyperlinkProvider(((JRFillCategoryDataset)getDataset()).getItemHyperlinks()); break; case JRChart.CHART_TYPE_BUBBLE: chartHyperlinkProvider = new XYChartHyperlinkProvider(((JRFillXyzDataset)getDataset()).getItemHyperlinks()); break; case JRChart.CHART_TYPE_SCATTER: case JRChart.CHART_TYPE_XYAREA: case JRChart.CHART_TYPE_XYLINE: chartHyperlinkProvider = new XYChartHyperlinkProvider(((JRFillXyDataset)getDataset()).getItemHyperlinks()); break; case JRChart.CHART_TYPE_CANDLESTICK: case JRChart.CHART_TYPE_HIGHLOW: chartHyperlinkProvider = new HighLowChartHyperlinkProvider(((JRFillHighLowDataset)getDataset()).getItemHyperlinks()); break; case JRChart.CHART_TYPE_MULTI_AXIS: //multi-axis charts are dealt with in createMultiAxisChart break; case JRChart.CHART_TYPE_PIE: case JRChart.CHART_TYPE_PIE3D: chartHyperlinkProvider = new PieChartHyperlinkProvider(((JRFillPieDataset)getDataset()).getSectionHyperlinks()); break; case JRChart.CHART_TYPE_TIMESERIES: chartHyperlinkProvider = new TimeSeriesChartHyperlinkProvider(((JRFillTimeSeriesDataset)getDataset()).getItemHyperlinks()); break; case JRChart.CHART_TYPE_XYBAR: switch(getDataset().getDatasetType()) { case JRChartDataset.TIMESERIES_DATASET : chartHyperlinkProvider = new TimeSeriesChartHyperlinkProvider(((JRFillTimeSeriesDataset)getDataset()).getItemHyperlinks()); break; case JRChartDataset.TIMEPERIOD_DATASET : chartHyperlinkProvider = new TimePeriodChartHyperlinkProvider(((JRFillTimePeriodDataset)getDataset()).getItemHyperlinks()); break; case JRChartDataset.XY_DATASET : chartHyperlinkProvider = new XYChartHyperlinkProvider(((JRFillXyDataset)getDataset()).getItemHyperlinks()); break; default: break; } break; case JRChart.CHART_TYPE_GANTT: chartHyperlinkProvider = new XYChartHyperlinkProvider(((JRFillGanttDataset)getDataset()).getItemHyperlinks()); break; case JRChart.CHART_TYPE_METER: case JRChart.CHART_TYPE_THERMOMETER: //no item hyperlinks break; default: throw new JRRuntimeException( JRBaseChart.EXCEPTION_MESSAGE_KEY_CHART_TYPE_NOT_SUPPORTED, new Object[]{getChartType()} ); } return chartHyperlinkProvider; }
@Override public String getName() { return JRBaseChart.PROPERTY_LEGEND_COLOR; }
@Override public String getName() { return JRBaseChart.PROPERTY_TITLE_COLOR; }
@Override public String getName() { return JRBaseChart.PROPERTY_LEGEND_BACKGROUND_COLOR; }
@Override public String getName() { return JRBaseChart.PROPERTY_SHOW_LEGEND; }
@Override public String getName() { return JRBaseChart.PROPERTY_SUBTITLE_COLOR; }
public String getName() { return JRBaseChart.PROPERTY_TITLE_POSITION; }
@Override public String getName() { return JRBaseChart.PROPERTY_LEGEND_POSITION; }
@Override public String getName() { return JRBaseChart.PROPERTY_TITLE_POSITION; }