public DefaultImageTranslator(final LegacyService legacyService) { setContext(legacyService.getContext()); colorDisplayCreator = new ColorDisplayCreator(legacyService); grayDisplayCreator = new GrayDisplayCreator(legacyService); colorImagePlusCreator = new ColorImagePlusCreator(imageDisplayService); grayImagePlusCreator = new GrayImagePlusCreator(legacyService); }
public ColorDisplayCreator(final LegacyService legacyService) { setContext(legacyService.getContext()); pixelHarmonizer = new ColorPixelHarmonizer(); colorTableHarmonizer = new ColorTableHarmonizer(imageDisplayService); metadataHarmonizer = new MetadataHarmonizer(); compositeHarmonizer = new CompositeHarmonizer(); overlayHarmonizer = new OverlayHarmonizer(legacyService); positionHarmonizer = new PositionHarmonizer(); nameHarmonizer = new NameHarmonizer(); }