protected void renameExistingStyle(String name) { JRStyle originalStyle = stylesMap.getStyle(name); if (originalStyle != null) { //found a previous external style with the same name //renaming the previous style JRBaseStyle style = (JRBaseStyle) get(originalStyle); String newName; int suf = 1; do { newName = name + suf; ++suf; } while(stylesMap.containsStyle(newName)); style.rename(newName); stylesMap.renamed(name, newName); } }
@Override public HashSet<String> generateGraphicalProperties() { HashSet<String> result = super.generateGraphicalProperties(); result.add(JRBaseStyle.PROPERTY_BACKCOLOR); result.add(JRDesignCellContents.PROPERTY_STYLE); result.add(JRBaseStyle.PROPERTY_MODE); result.add(JRDesignCellContents.PROPERTY_STYLE_NAME_REFERENCE); result.add(JRDesignCrosstabCell.PROPERTY_WIDTH); result.add(JRDesignCrosstabCell.PROPERTY_HEIGHT); result.add(JRDesignElement.PROPERTY_ELEMENT_GROUP); result.add(JRDesignCrosstab.PROPERTY_COLUMN_GROUPS); result.add(JRDesignCrosstab.PROPERTY_ROW_GROUPS); result.add(JRDesignCrosstab.PROPERTY_MEASURES); result.add(JRDesignCrosstab.PROPERTY_TITLE_CELL); result.add(JRDesignCrosstab.PROPERTY_HEADER_CELL); result.add(JRDesignCrosstab.PROPERTY_CELLS); return result; }
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { super.createControls(parent, tabbedPropertySheetPage); parent.setLayout(new GridLayout(2, false)); if (!(getElement() instanceof MConditionalStyle)) createWidget4Property(parent, JRDesignStyle.PROPERTY_NAME); createWidget4Property(parent, JRDesignStyle.PROPERTY_PARENT_STYLE); GridData gd = new GridData(); gd.horizontalSpan = 2; if (!(getElement() instanceof MConditionalStyle)) createWidget4Property(parent, JRDesignStyle.PROPERTY_DEFAULT, false).getControl().setLayoutData(gd); createWidget4Property(parent, JRDesignStyle.PROPERTY_BLANK_WHEN_NULL); createWidget4Property(parent, JRDesignStyle.PROPERTY_PATTERN); createWidget4Property(parent, JRBaseStyle.PROPERTY_FILL); createWidget4Property(parent, JRBaseStyle.PROPERTY_RADIUS); createWidget4Property(parent, JRBaseStyle.PROPERTY_SCALE_IMAGE); }
/** * @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 = getWidgetFactory().createSection(parent, Messages.ColorsSection_colorSectionTitle, true, 4); section = (ExpandableComposite)parent.getParent(); //parent.setLayout(new GridLayout(4, false)); createWidget4Property(parent, JRBaseStyle.PROPERTY_FORECOLOR); createWidget4Property(parent, JRBaseStyle.PROPERTY_BACKCOLOR); Composite transparencyComp = new Composite(parent, SWT.NONE); GridLayout transparencyLayout = new GridLayout(2,false); transparencyLayout.marginWidth = 0; transparencyComp.setLayout(transparencyLayout); GridData gd = new GridData(); gd.horizontalSpan = 4; transparencyComp.setLayoutData(gd); createWidget4Property(transparencyComp, JRBaseStyle.PROPERTY_MODE,false); }
/** * Creates the property descriptors. * * @param desc * the desc */ @Override public void createPropertyDescriptors(List<IPropertyDescriptor> desc, Map<String, Object> defaultsMap) { super.createPropertyDescriptors(desc, defaultsMap); directionD = new JSSEnumPropertyDescriptor(JRBaseLine.PROPERTY_DIRECTION, Messages.MLine_direction, LineDirectionEnum.class, NullEnum.NULL); directionD.setDescription(Messages.MLine_direction_description); directionD.setCategory(Messages.MLine_line_category); desc.add(directionD); /* * fillD = new JSSEnumPropertyDescriptor(JRBaseStyle.PROPERTY_FILL, Messages.common_fill, FillEnum.class, * NullEnum.INHERITED); fillD.setDescription(Messages.MLine_fill_description); desc.add(fillD); */ defaultsMap.put(JRBaseLine.PROPERTY_DIRECTION, EnumHelper.getValue(LineDirectionEnum.TOP_DOWN, 1, true)); defaultsMap.put(JRBaseStyle.PROPERTY_FILL, null); setHelpPrefix(desc, "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#line"); }
/** * Creates the property descriptors. * * @param desc * the desc */ @Override public void createPropertyDescriptors(List<IPropertyDescriptor> desc, Map<String, Object> defaultsMap) { super.createPropertyDescriptors(desc, defaultsMap); fillD = new JSSEnumPropertyDescriptor(JRBaseStyle.PROPERTY_FILL, Messages.common_fill, FillEnum.class, NullEnum.INHERITED); fillD.setDescription(Messages.MRectangle_fill_description); desc.add(fillD); setHelpPrefix(desc, "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#graphicElement"); IntegerPropertyDescriptor rD = new IntegerPropertyDescriptor(JRBaseStyle.PROPERTY_RADIUS, Messages.common_radius); rD.setCategory(Messages.MRectangle_rectangle_properties_category); rD.setDescription(Messages.MRectangle_radius_description); desc.add(rD); defaultsMap.put(JRBaseStyle.PROPERTY_FILL, null); setHelpPrefix(desc, "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#rectangle"); }
@Override public void setPropertyValue(Object id, Object value) { JRDesignTextElement jrElement = (JRDesignTextElement) getValue(); if (id.equals(JRBaseStyle.PROPERTY_MARKUP)) jrElement.setMarkup((String) value); else if (id.equals(JRBaseStyle.PROPERTY_HORIZONTAL_ALIGNMENT)) jrElement.setHorizontalAlignment((HorizontalAlignEnum) hAlignD.getEnumValue(value)); else if (id.equals(JRBaseStyle.PROPERTY_VERTICAL_ALIGNMENT)) { VerticalAlignEnum va = (VerticalAlignEnum) EnumHelper.getSetValue(VerticalAlignEnum.values(), value, 1, true); if (va != null && va.equals(VerticalAlignEnum.JUSTIFIED)) va = VerticalAlignEnum.MIDDLE; jrElement.setVerticalAlignment(va); } else if (id.equals(JRBaseStyle.PROPERTY_ROTATION)) jrElement.setRotation((RotationEnum) rotationD.getEnumValue(value)); getMFont().setPropertyValue(id, value); super.setPropertyValue(id, value); }
/** * Return the graphical properties for an MTextElement */ public HashSet<String> generateGraphicalProperties(){ HashSet<String> result = super.generateGraphicalProperties(); result.add(JRBaseStyle.PROPERTY_HORIZONTAL_ALIGNMENT); result.add(JRBaseStyle.PROPERTY_VERTICAL_ALIGNMENT); result.add(JRBaseStyle.PROPERTY_ROTATION); result.add(JRBaseParagraph.PROPERTY_LINE_SPACING); result.add(JRBaseParagraph.PROPERTY_LINE_SPACING_SIZE); result.add(JRBaseParagraph.PROPERTY_FIRST_LINE_INDENT); result.add(JRBaseParagraph.PROPERTY_LEFT_INDENT); result.add(JRBaseParagraph.PROPERTY_RIGHT_INDENT); result.add(JRBaseParagraph.PROPERTY_SPACING_BEFORE); result.add(JRBaseParagraph.PROPERTY_SPACING_AFTER); result.add(JRBaseParagraph.PROPERTY_TAB_STOP_WIDTH); result.add(JRBaseStyle.PROPERTY_VERTICAL_ALIGNMENT); result.add(JRBaseFont.PROPERTY_BOLD); result.add(JRBaseFont.PROPERTY_UNDERLINE); result.add(JRBaseFont.PROPERTY_STRIKE_THROUGH); result.add(JRBaseFont.PROPERTY_ITALIC); result.add(JRBaseFont.PROPERTY_FONT_SIZE); result.add(JRBaseFont.PROPERTY_FONT_NAME); return result; }
public void widgetSelected(SelectionEvent e) { if (!refreshing){ List<Object> selection = getSelectionForType(MTextElement.class); if (selection.isEmpty()) return; JSSCompoundCommand changeSizeCommands = new JSSCompoundCommand(null); String property = ""; Object data = e.widget.getData(); if (data instanceof VerticalAlignEnum) property = JRBaseStyle.PROPERTY_VERTICAL_ALIGNMENT; else if (data instanceof HorizontalAlignEnum) property = JRBaseStyle.PROPERTY_HORIZONTAL_ALIGNMENT; else return; for (Object textElement : selection){ changeSizeCommands.setReferenceNodeIfNull(textElement); Command c = createCommand(textElement, data, property); if (c != null) { changeSizeCommands.add(c); } } CommandStack cs = getCommandStack(); cs.execute(changeSizeCommands); } }
@Override protected void performAction(Node[] nodes) { // Copy the style in the report... for (Node node : nodes) { JRBaseStyle style = ((AbstractStyleNode)node).getStyle(); Node.PropertySet[] sets = node.getPropertySets(); for (int i=0; i<sets.length; ++i) { Node.Property[] pp = sets[i].getProperties(); for (int j=0; j<pp.length; ++j) { if (pp[j].supportsDefaultValue() && !pp[j].isDefaultValue()) { try { pp[j].restoreDefaultValue(); } catch (Exception ex) { } } } } } }
private void abstractStyle(JRBaseStyle baseStyle, DRIDesignBaseStyle style) { baseStyle.setForecolor(style.getForegroundColor()); baseStyle.setBackcolor(style.getBackgroundColor()); if (style.getBackgroundColor() != null) { baseStyle.setMode(ModeEnum.OPAQUE); } baseStyle.setRadius(style.getRadius()); baseStyle.setScaleImage(ConstantTransform.imageScale(style.getImageScale())); baseStyle.setHorizontalAlignment(ConstantTransform.horizontalAlignment(style.getHorizontalAlignment())); baseStyle.setVerticalAlignment(ConstantTransform.verticalAlignment(style.getVerticalAlignment())); border(baseStyle.getLineBox(), style.getBorder()); padding(baseStyle.getLineBox(), style.getPadding()); font(baseStyle, style.getFont()); baseStyle.setRotation(ConstantTransform.rotation(style.getRotation())); baseStyle.setPattern(style.getPattern()); baseStyle.setMarkup(ConstantTransform.markup(style.getMarkup())); baseStyle.setBlankWhenNull(true); paragraph(baseStyle.getParagraph(), style.getParagraph()); pen(baseStyle.getLinePen(), style.getLinePen()); }
@Override public void setPattern(String pattern) { Object old = this.pattern; this.pattern = pattern; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_PATTERN, old, this.pattern); }
@Override public void setBlankWhenNull(Boolean isBlank) { Object old = this.isBlankWhenNull; this.isBlankWhenNull = isBlank; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_BLANK_WHEN_NULL, old, this.isBlankWhenNull); }
@Override public void setHorizontalTextAlign(HorizontalTextAlignEnum horizontalTextAlign) { Object old = this.horizontalTextAlign; this.horizontalTextAlign = horizontalTextAlign; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_HORIZONTAL_TEXT_ALIGNMENT, old, this.horizontalTextAlign); }
@Override public void setVerticalTextAlign(VerticalTextAlignEnum verticalTextAlign) { Object old = this.verticalTextAlign; this.verticalTextAlign = verticalTextAlign; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_VERTICAL_TEXT_ALIGNMENT, old, this.verticalTextAlign); }
@Override public void setRotation(RotationEnum rotationValue) { Object old = this.rotationValue; this.rotationValue = rotationValue; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_ROTATION, old, this.rotationValue); }
@Override public void setMarkup(String markup) { Object old = this.markup; this.markup = markup; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_MARKUP, old, this.markup); }
@Override public void setFontName(String fontName) { Object old = this.fontName; this.fontName = fontName; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_FONT_NAME, old, this.fontName); }
/** * Alternative setBold method which allows also to reset * the "own" isBold property. */ @Override public void setBold(Boolean isBold) { Object old = this.isBold; this.isBold = isBold; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_BOLD, old, this.isBold); }
/** * Alternative setItalic method which allows also to reset * the "own" isItalic property. */ @Override public void setItalic(Boolean isItalic) { Object old = this.isItalic; this.isItalic = isItalic; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_ITALIC, old, this.isItalic); }
/** * Alternative setUnderline method which allows also to reset * the "own" isUnderline property. */ @Override public void setUnderline(Boolean isUnderline) { Object old = this.isUnderline; this.isUnderline = isUnderline; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_UNDERLINE, old, this.isUnderline); }
/** * Alternative setStrikeThrough method which allows also to reset * the "own" isStrikeThrough property. */ @Override public void setStrikeThrough(Boolean isStrikeThrough) { Object old = this.isStrikeThrough; this.isStrikeThrough = isStrikeThrough; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_STRIKE_THROUGH, old, this.isStrikeThrough); }
/** * Method which allows also to reset the "own" size property. */ @Override public void setFontSize(Float fontSize) { Object old = this.fontsize; this.fontsize = fontSize; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_FONT_SIZE, old, this.fontsize); }
@Override public void setPdfFontName(String pdfFontName) { Object old = this.pdfFontName; this.pdfFontName = pdfFontName; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_PDF_FONT_NAME, old, this.pdfFontName); }
@Override public void setPdfEncoding(String pdfEncoding) { Object old = this.pdfEncoding; this.pdfEncoding = pdfEncoding; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_PDF_ENCODING, old, this.pdfEncoding); }
/** * Alternative setPdfEmbedded method which allows also to reset * the "own" isPdfEmbedded property. */ @Override public void setPdfEmbedded(Boolean isPdfEmbedded) { Object old = this.isPdfEmbedded; this.isPdfEmbedded = isPdfEmbedded; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_PDF_EMBEDDED, old, this.isPdfEmbedded); }
@Override public void setFill(FillEnum fillValue) { FillEnum old = this.fillValue; this.fillValue = fillValue; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_FILL, old, this.fillValue); }
@Override public void setScaleImage(ScaleImageEnum scaleImageValue) { Object old = this.scaleImageValue; this.scaleImageValue = scaleImageValue; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_SCALE_IMAGE, old, this.scaleImageValue); }
@Override public void setHorizontalImageAlign(HorizontalImageAlignEnum horizontalImageAlign) { Object old = this.horizontalImageAlign; this.horizontalImageAlign = horizontalImageAlign; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_HORIZONTAL_IMAGE_ALIGNMENT, old, this.horizontalImageAlign); }
@Override public void setVerticalImageAlign(VerticalImageAlignEnum verticalImageAlign) { Object old = this.verticalImageAlign; this.verticalImageAlign = verticalImageAlign; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_VERTICAL_IMAGE_ALIGNMENT, old, this.verticalImageAlign); }
@Override public void setRadius(Integer radius) { Object old = this.radius; this.radius = radius; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_RADIUS, old, this.radius); }
protected JRStyle evaluateConditionalStyle(JRStyle initialStyle, byte evaluation) throws JRException { JRStyle consolidatedStyle = initialStyle; StringBuilder code = new StringBuilder(); List<JRStyle> condStylesToApply = new ArrayList<JRStyle>(); boolean anyTrue = buildConsolidatedStyle(initialStyle, evaluation, code, condStylesToApply); if (anyTrue) { String consolidatedStyleName = initialStyle.getName() + "|" + code.toString(); consolidatedStyle = filler.getJasperPrint().getStylesMap().get(consolidatedStyleName); if (consolidatedStyle == null) { JRBaseStyle style = new JRBaseStyle(consolidatedStyleName); for (int j = condStylesToApply.size() - 1; j >= 0; j--) { StyleUtil.appendStyle(style, condStylesToApply.get(j)); } // deduplicate to previously created identical instances style = filler.fillContext.deduplicate(style); filler.addPrintStyle(style); consolidatedStyle = style; } } evaluatedStyles.put(initialStyle, consolidatedStyle); return consolidatedStyle; }
/** * Sets the cell background color. * * @param color the background color * @see JRCellContents#getBackcolor() */ public void setBackcolor(Color color) { Object old = this.backcolor; backcolor = color; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_BACKCOLOR, old, this.backcolor); }
/** * Sets the cell transparency mode. * * @param modeValue the transparency mode * @see JRCellContents#getModeValue() */ public void setMode(ModeEnum modeValue) { Object old = this.modeValue; this.modeValue = modeValue; getEventSupport().firePropertyChange(JRBaseStyle.PROPERTY_MODE, old, this.modeValue); }
/** * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite, * org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage) */ public void createControls(final Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) { super.createControls(parent, tabbedPropertySheetPage); parent.setLayout(new GridLayout(2, false)); createWidget4Property(parent, JRBaseStyle.PROPERTY_MODE); createWidget4Property(parent, JRBaseStyle.PROPERTY_BACKCOLOR); createWidget4Property(parent, JRDesignCellContents.PROPERTY_STYLE); createWidget4Property(parent, JRDesignCrosstabCell.PROPERTY_WIDTH); createWidget4Property(parent, JRDesignCrosstabCell.PROPERTY_HEIGHT); }
@Override protected void initializeProvidedProperties() { super.initializeProvidedProperties(); addProvidedProperties(JRBaseStyle.PROPERTY_MODE, Messages.MCell_opaque); addProvidedProperties(JRBaseStyle.PROPERTY_BACKCOLOR, Messages.MCell_backcolor); addProvidedProperties(JRDesignCellContents.PROPERTY_STYLE, Messages.MCell_parent_style); addProvidedProperties(JRDesignCrosstabCell.PROPERTY_WIDTH, Messages.common_width); addProvidedProperties(JRDesignCrosstabCell.PROPERTY_HEIGHT, Messages.common_height); }
/** * Creates the property descriptors. * * @param desc * the desc */ @Override public void createPropertyDescriptors(List<IPropertyDescriptor> desc, Map<String, Object> defaultsMap) { opaqueD = new OpaqueModePropertyDescriptor(JRBaseStyle.PROPERTY_MODE, Messages.MCell_opaque, ModeEnum.class, NullEnum.NOTNULL); opaqueD.setDescription(Messages.MCell_opaque_description); desc.add(opaqueD); ColorPropertyDescriptor backcolorD = new ColorPropertyDescriptor(JRBaseStyle.PROPERTY_BACKCOLOR, Messages.MCell_backcolor, NullEnum.INHERITED); backcolorD.setDescription(Messages.MCell_backcolor_description); desc.add(backcolorD); styleD = new RWComboBoxPropertyDescriptor(JRDesignCellContents.PROPERTY_STYLE, Messages.MCell_parent_style, new String[] { "" }, //$NON-NLS-1$ NullEnum.NULL); styleD.setDescription(Messages.MCell_parent_style_description); desc.add(styleD); PixelPropertyDescriptor wD = new PixelPropertyDescriptor(JRDesignCrosstabCell.PROPERTY_WIDTH, Messages.common_width); desc.add(wD); PixelPropertyDescriptor hD = new PixelPropertyDescriptor(JRDesignCrosstabCell.PROPERTY_HEIGHT, Messages.common_height); desc.add(hD); BoxPropertyDescriptor lineBoxD = new BoxPropertyDescriptor(LINE_BOX, Messages.MCell_line_box); lineBoxD.setDescription(Messages.MCell_line_box_description); desc.add(lineBoxD); JPropertiesPropertyDescriptor propertiesMapD = new JPropertiesPropertyDescriptor(MGraphicElement.PROPERTY_MAP, com.jaspersoft.studio.messages.Messages.common_properties); propertiesMapD.setDescription(com.jaspersoft.studio.messages.Messages.common_properties); desc.add(propertiesMapD); defaultsMap.put(JRBaseStyle.PROPERTY_MODE, opaqueD.getEnumValue(ModeEnum.OPAQUE)); defaultsMap.put(JRBaseStyle.PROPERTY_BACKCOLOR, null); defaultsMap.put(JRDesignCellContents.PROPERTY_STYLE, null); setHelpPrefix(desc, "net.sf.jasperreports.doc/docs/schema.reference.html?cp=0_1#crosstabCell"); }
public Object getPropertyValue(Object id) { JRDesignCellContents jrElement = getValue(); if (jrElement != null) { if (id.equals(JRBaseStyle.PROPERTY_MODE)) return opaqueD.getEnumValue(jrElement.getModeValue()); if (id.equals(JRBaseStyle.PROPERTY_BACKCOLOR)) return Colors.getSWTRGB4AWTGBColor(jrElement.getBackcolor()); if (id.equals(JRDesignCellContents.PROPERTY_STYLE)) { if (jrElement.getStyleNameReference() != null) return jrElement.getStyleNameReference(); if (jrElement.getStyle() != null) return jrElement.getStyle().getName(); return ""; //$NON-NLS-1$ } if (id.equals(JRDesignCrosstabCell.PROPERTY_WIDTH)) return jrElement.getWidth(); if (id.equals(JRDesignCrosstabCell.PROPERTY_HEIGHT)) return jrElement.getHeight(); if (id.equals(LINE_BOX)) { JRBoxContainer jrGraphicElement = (JRBoxContainer) getValue(); if (lineBox == null) { lineBox = new MLineBox(jrGraphicElement.getLineBox()); lineBox.getPropertyChangeSupport().addPropertyChangeListener(this); } return lineBox; } if (id.equals(MGraphicElement.PROPERTY_MAP)) { // to avoid duplication I remove it first return jrElement.getPropertiesMap().cloneProperties(); } } return null; }
/** * Return the graphical properties for an MGraphicalElement */ @Override public HashSet<String> getGraphicalProperties() { if (cachedGraphicalProperties == null) { cachedGraphicalProperties = new HashSet<String>(); cachedGraphicalProperties.add(JRBaseStyle.PROPERTY_MODE); cachedGraphicalProperties.add(JRBaseStyle.PROPERTY_BACKCOLOR); cachedGraphicalProperties.add(JRDesignCellContents.PROPERTY_STYLE); cachedGraphicalProperties.add(JRDesignCrosstabCell.PROPERTY_WIDTH); cachedGraphicalProperties.add(JRDesignCrosstabCell.PROPERTY_HEIGHT); } return cachedGraphicalProperties; }
@Override protected void initializeProvidedProperties() { super.initializeProvidedProperties(); addProvidedProperties(JRDesignStyle.PROPERTY_NAME, Messages.common_name); addProvidedProperties(JRDesignStyle.PROPERTY_PARENT_STYLE, Messages.common_parent_style); addProvidedProperties(JRDesignStyle.PROPERTY_DEFAULT, Messages.MStyle_default_style); addProvidedProperties(JRDesignStyle.PROPERTY_BLANK_WHEN_NULL, Messages.common_blank_when_null); addProvidedProperties(JRDesignStyle.PROPERTY_PATTERN, Messages.common_pattern); addProvidedProperties(JRBaseStyle.PROPERTY_FILL, Messages.common_fill); addProvidedProperties(JRBaseStyle.PROPERTY_RADIUS, Messages.common_radius); addProvidedProperties(JRBaseStyle.PROPERTY_SCALE_IMAGE, Messages.MStyle_scale); }