Exemplo n.º 1
0
  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();
  }
Exemplo n.º 2
0
 public ColorDefinition getFontColor() {
   return cdCurrent == null || cdCurrent.isSetTransparency() && cdCurrent.getTransparency() == 0
       ? null
       : cdCurrent;
 }