public FontDefinitionDialog( Shell shellParent, ChartWizardContext wizardContext, FontDefinition fdCurrent, ColorDefinition cdCurrent, boolean isAlignmentEnabled) { super(shellParent); this.isAlignmentEnabled = isAlignmentEnabled; this.wizardContext = wizardContext; this.fdCurrent = fdCurrent == null ? FontDefinitionImpl.createEmpty() : fdCurrent.copyInstance(); this.cdCurrent = cdCurrent == null ? null : cdCurrent.copyInstance(); this.fdBackup = fdCurrent == null ? null : fdCurrent.copyInstance(); this.cdBackup = this.cdCurrent == null ? null : cdCurrent.copyInstance(); }
public ColorDefinition getFontColor() { return cdCurrent == null || cdCurrent.isSetTransparency() && cdCurrent.getTransparency() == 0 ? null : cdCurrent; }