/** * カルテがオープンされているかどうかを返す。 * * @return オープンされている時 true */ private boolean isKarteOpened(PatientModel patient) { if (patient != null) { boolean opened = false; java.util.List<ChartImpl> allCharts = ChartImpl.getAllChart(); for (ChartImpl chart : allCharts) { if (chart.getPatient().getId() == patient.getId()) { opened = true; break; } } return opened; } return false; }
/** @generated */ protected void set(ChartWithoutAxes src) { super.set(src); // children if (src.getSeriesDefinitions() != null) { EList<SeriesDefinition> list = getSeriesDefinitions(); for (SeriesDefinition element : src.getSeriesDefinitions()) { list.add(element.copyInstance()); } } // attributes minSlice = src.getMinSlice(); minSliceESet = src.isSetMinSlice(); minSlicePercent = src.isMinSlicePercent(); minSlicePercentESet = src.isSetMinSlicePercent(); minSliceLabel = src.getMinSliceLabel(); coverage = src.getCoverage(); coverageESet = src.isSetCoverage(); }
/** Note: Manually written */ protected void initDefault() { // INITIALIZE SUPER'S MEMBERS super.initDefault(); gridColumnCount = 0; try { ChartElementUtil.setDefaultValue( getLegend(), "itemType", LegendItemType.CATEGORIES_LITERAL); // $NON-NLS-1$ } catch (ChartException e) { } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ModelPackage.CHART_WITHOUT_AXES__SERIES_DEFINITIONS: getSeriesDefinitions().clear(); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE: unsetMinSlice(); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE_PERCENT: unsetMinSlicePercent(); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE_LABEL: setMinSliceLabel(MIN_SLICE_LABEL_EDEFAULT); return; case ModelPackage.CHART_WITHOUT_AXES__COVERAGE: unsetCoverage(); return; } super.eUnset(featureID); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ModelPackage.CHART_WITHOUT_AXES__SERIES_DEFINITIONS: getSeriesDefinitions().clear(); getSeriesDefinitions().addAll((Collection<? extends SeriesDefinition>) newValue); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE: setMinSlice((Double) newValue); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE_PERCENT: setMinSlicePercent((Boolean) newValue); return; case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE_LABEL: setMinSliceLabel((String) newValue); return; case ModelPackage.CHART_WITHOUT_AXES__COVERAGE: setCoverage((Double) newValue); return; } super.eSet(featureID, newValue); }
/* (non-Javadoc) * @see org.eclipse.birt.chart.model.impl.ChartImpl#setType(java.lang.String) */ public void setType(String newType) { if (isValidDimensionNType(newType, this.dimension)) { super.setType(newType); } }
/** Set pie chart dimension type. */ public void setDimension(ChartDimension newDimension) { if (isValidDimensionNType(this.type, newDimension)) { super.setDimension(newDimension); } }
/** Note: Manually written */ protected void initialize() { // INITIALIZE SUPER'S MEMBERS super.initialize(); setGridColumnCount(0); getLegend().setItemType(LegendItemType.CATEGORIES_LITERAL); }