Returns the initialized image scaler object used to generate thumbnails for the dialog form.<p>

@return the initialized image scaler object used to generate thumbnails for the dialog form
764759
protected CmsImageScaler getImageScaler() {

        if (m_imageScaler == null) {
            // not initialized, create image scaler with default settings
            m_imageScaler = new CmsImageScaler();
            m_imageScaler.setWidth(THUMB_WIDTH);
            m_imageScaler.setHeight(THUMB_HEIGHT);
            m_imageScaler.setRenderMode(Simapi.RENDER_SPEED);
            m_imageScaler.setColor(new Color(0, 0, 0));
            m_imageScaler.setType(1);
        }
        return m_imageScaler;
    }
731426
public int getInitialSize()
   {
      if (initialSize == null)
         return getMinSize();

      if (initialSize.intValue() > maxSize)
         return maxSize;

      return initialSize.intValue();
   }
32541
public com.google.api.ads.adwords.axis.v201809.cm.Image getImage() {
        return image;
    }
572811
public static final Renderer<BigDecimal> instance() { // NOPMD it's thread save!
    if (BigDecimalRenderer.instanceRenderer == null) {
      synchronized (BigDecimalRenderer.class) {
        if (BigDecimalRenderer.instanceRenderer == null) {
          BigDecimalRenderer.instanceRenderer = new BigDecimalRenderer();
        }
      }
    }
    return BigDecimalRenderer.instanceRenderer;
  }
570650
public static ResourceUtil getInstance() {

    if (instance == null) {
      ResourceUtilImpl impl = null;
      synchronized (ResourceUtilImpl.class) {
        if (instance == null) {
          impl = new ResourceUtilImpl();
          impl.initialize();
          instance = impl;
        }
      }
    }
    return instance;
  }
711987
public ZoomableGraphicsContext getDocumentGraphicsContext2D() {
		if (this.documentGraphicsContext == null) {
			final CenteringTransform transform = new CenteringTransform(
					invertedAxisXProperty(),
					invertedAxisYProperty(),
					viewportBoundsProperty());
			this.documentGraphicsContext = new ZoomableGraphicsContext(
					getGraphicsContext2D(),
					scaleValueProperty(),
					documentBoundsProperty(),
					viewportBoundsProperty(),
					widthProperty(),
					heightProperty(),
					drawableElementBudgetProperty(),
					transform);
		}
		return this.documentGraphicsContext;
	}
700991
protected static I_CmsGalleryServiceAsync getGalleryService() {

        if (m_gallerySvc == null) {
            I_CmsGalleryServiceAsync service = createGalleryService();
            m_gallerySvc = service;
        }
        return m_gallerySvc;
    }
272755
public String buildDialogForm() {

        StringBuffer result = new StringBuffer(16384);
        Iterator<CmsResource> i = getImages().iterator();

        result.append("<div style=\"height: 450px; padding: 4px; overflow: auto;\">");

        while (i.hasNext()) {
            CmsResource res = i.next();
            String imageName = res.getName();
            String propertySuffix = "" + imageName.hashCode();
            result.append(dialogBlockStart(imageName));
            result.append("<table border=\"0\">\n");
            result.append("<tr>\n\t<td style=\"vertical-align: top;\">");
            // create image tag
            result.append("<img src=\"");
            StringBuffer link = new StringBuffer(256);
            link.append(getCms().getSitePath(res));
            link.append(getImageScaler().toRequestParam());
            result.append(getJsp().link(link.toString()));
            result.append("\" border=\"0\" alt=\"\" width=\"");
            result.append(getImageScaler().getWidth());
            result.append("\" height=\"");
            result.append(getImageScaler().getHeight());
            result.append("\">");

            result.append("</td>\n");
            result.append("\t<td class=\"maxwidth\" style=\"vertical-align: top;\">\n");

            result.append("\t\t<table border=\"0\">\n");

            // build title property input row
            String title = "";
            try {
                title = getCms().readPropertyObject(res, CmsPropertyDefinition.PROPERTY_TITLE, false).getValue();
            } catch (CmsException e) {
                // log, should never happen
                if (LOG.isErrorEnabled()) {
                    LOG.error(e.getLocalizedMessage(getLocale()));
                }
            }
            result.append("\t\t<tr>\n\t\t\t<td style=\"white-space: nowrap;\" unselectable=\"on\">");
            result.append(key(Messages.GUI_LABEL_TITLE_0));
            result.append(":</td>\n\t\t\t<td class=\"maxwidth\">");
            result.append("<input type=\"text\" class=\"maxwidth\" name=\"");
            result.append(PREFIX_TITLE);
            result.append(propertySuffix);
            result.append("\" value=\"");
            if (CmsStringUtil.isNotEmpty(title)) {
                result.append(CmsEncoder.escapeXml(title));
            }
            result.append("\">");
            result.append("</td>\n\t\t</tr>\n");

            // build description property input row
            String description = "";
            try {
                description = getCms().readPropertyObject(
                    res,
                    CmsPropertyDefinition.PROPERTY_DESCRIPTION,
                    false).getValue();
            } catch (CmsException e) {
                // log, should never happen
                if (LOG.isErrorEnabled()) {
                    LOG.error(e.getLocalizedMessage(getLocale()));
                }
            }
            result.append(
                "\t\t<tr>\n\t\t\t<td style=\"white-space: nowrap; vertical-align: top;\" unselectable=\"on\">");
            result.append(key(Messages.GUI_LABEL_DESCRIPTION_0));
            result.append(":</td>\n\t\t\t<td style=\"vertical-align: top; height: 110px;\">");
            result.append("<textarea rows=\"8\" class=\"maxwidth\" style=\"overflow: auto;\" name=\"");
            result.append(PREFIX_DESCRIPTION);
            result.append(propertySuffix);
            result.append("\">");
            if (CmsStringUtil.isNotEmpty(description)) {
                result.append(CmsEncoder.escapeXml(description));
            }
            result.append("</textarea>");
            result.append("</td>\n\t\t</tr>\n");

            result.append("\t\t</table>\n");

            result.append("</td>\n</tr>\n");
            result.append("</table>\n");
            result.append(dialogBlockEnd());

            if (i.hasNext()) {
                // append spacer if another entry follows
                result.append(dialogSpacer());
            }
        }

        result.append("</div>");

        return result.toString();
    }
1006727
public CmsDNDHandler getDNDHandler() {

        if (m_dndHandler == null) {
            m_dndHandler = new CmsDNDHandler(new CmsAttributeDNDController());
            m_dndHandler.setOrientation(Orientation.VERTICAL);
            m_dndHandler.setScrollEnabled(true);
            m_dndHandler.setScrollElement(m_scrollElement);
        }
        return m_dndHandler;
    }
933885
public static SPIProvider getInstance()
   {
      if (me == null)
      {
         final ClassLoader cl = ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader();
         me = SPIProviderResolver.getInstance(cl).getProvider();
      }
      return me;
   }
584231
public InstantConverter[] getInstantConverters() {
        ConverterSet set = iInstantConverters;
        InstantConverter[] converters = new InstantConverter[set.size()];
        set.copyInto(converters);
        return converters;
    }
214153
public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder
      getImageBoundingBoxDetailsOrBuilder() {
    if (detailsCase_ == 4) {
      return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)
          details_;
    }
    return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata
        .getDefaultInstance();
  }
948823
public static IAuditManager getInstance() {
        IAuditManager result = auditManager;
        if(result == null) {
            synchronized (AuditManager.class) {
                result = auditManager;
                if(result == null) {
                    Context.init();
                    auditManager = result = new AuditManager();
                }
            }
        }
        return result;
    }
1369737
public function getDefaultImageResizeMethod()
    {
        if ($method = $this->owner->ImageDefaultResizeMethod) {
            return $method;
        }
        
        if ($this->owner->hasExtension(MetaDataExtension::class)) {
            return $this->owner->getFieldFromParent('DefaultImageResizeMethod');
        }
    }
130072
protected I_CmsPostUploadDialogServiceAsync getDialogService() {

        if (m_dialogService == null) {
            m_dialogService = GWT.create(I_CmsPostUploadDialogService.class);
            String serviceUrl = CmsCoreProvider.get().link("org.opencms.ade.postupload.CmsPostUploadDialogService.gwt");
            ((ServiceDefTarget)m_dialogService).setServiceEntryPoint(serviceUrl);
        }
        return m_dialogService;
    }
19595
public String getScaleParam() {

        if (!isScaled() && !isCropped()) {
            // the image is not cropped nor scaled, return an empty parameter
            return "";
        }
        StringBuffer result = new StringBuffer();
        if ((m_targetHeight > -1) || (m_targetWidth > -1)) {
            result.append(SCALE_PARAM_TARGETHEIGHT).append(SCALE_PARAM_COLON).append(getResultingTargetHeight()).append(
                SCALE_PARAM_DELIMITER);
            result.append(SCALE_PARAM_TARGETWIDTH).append(SCALE_PARAM_COLON).append(getResultingTargetWidth()).append(
                SCALE_PARAM_DELIMITER);
        }
        if (m_cropX > -1) {
            result.append(SCALE_PARAM_CROP_X).append(SCALE_PARAM_COLON).append(m_cropX).append(SCALE_PARAM_DELIMITER);
        }
        if (m_cropY > -1) {
            result.append(SCALE_PARAM_CROP_Y).append(SCALE_PARAM_COLON).append(m_cropY).append(SCALE_PARAM_DELIMITER);
        }
        if (m_cropHeight > -1) {
            result.append(SCALE_PARAM_CROP_HEIGHT).append(SCALE_PARAM_COLON).append(m_cropHeight).append(
                SCALE_PARAM_DELIMITER);
        }
        if (m_cropWidth > -1) {
            result.append(SCALE_PARAM_CROP_WIDTH).append(SCALE_PARAM_COLON).append(m_cropWidth).append(
                SCALE_PARAM_DELIMITER);
        }
        if (result.length() > 0) {
            result.deleteCharAt(result.length() - 1);
        }
        return result.toString();
    }
785693
public double[] getScaleDenominators() {
        double[] dest = new double[this.scaleDenominators.length];
        System.arraycopy(this.scaleDenominators, 0, dest, 0, this.scaleDenominators.length);
        return dest;
    }