Sets whether image should be scaled down inside borders.

@param scaleDownInsideBorders
178461
@Override
  public void setScaleDownInsideBorders(boolean scaleDownInsideBorders) {
    if (mScaleDownInsideBorders != scaleDownInsideBorders) {
      mScaleDownInsideBorders = scaleDownInsideBorders;
      mIsPathDirty = true;
      invalidateSelf();
    }
  }
668801
public static CellStyle setBorder(CellStyle cellStyle, BorderStyle borderSize, IndexedColors colorIndex) {
		cellStyle.setBorderBottom(borderSize);
		cellStyle.setBottomBorderColor(colorIndex.index);

		cellStyle.setBorderLeft(borderSize);
		cellStyle.setLeftBorderColor(colorIndex.index);

		cellStyle.setBorderRight(borderSize);
		cellStyle.setRightBorderColor(colorIndex.index);

		cellStyle.setBorderTop(borderSize);
		cellStyle.setTopBorderColor(colorIndex.index);

		return cellStyle;
	}
801213
public GenericDraweeHierarchyBuilder setPlaceholderImage(
      int resourceId, @Nullable ScalingUtils.ScaleType placeholderImageScaleType) {
    mPlaceholderImage = mResources.getDrawable(resourceId);
    mPlaceholderImageScaleType = placeholderImageScaleType;
    return this;
  }
953210
public void setBorderColor(final Color PAINT) {
        if (null == borderColor) {
            _borderColor = PAINT;
            fireTileEvent(REDRAW_EVENT);
        } else {
            borderColor.set(PAINT);
        }
    }
581122
public void setActualImageScaleType(ScalingUtils.ScaleType scaleType) {
    Preconditions.checkNotNull(scaleType);
    getScaleTypeDrawableAtIndex(ACTUAL_IMAGE_INDEX).setScaleType(scaleType);
  }
510471
public void setBorderWidth(final double WIDTH) {
        if (null == borderWidth) {
            _borderWidth = Helper.clamp(0.0, 50.0, WIDTH);
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            borderWidth.set(WIDTH);
        }
    }
833734
public void setScalingPlans(java.util.Collection<ScalingPlan> scalingPlans) {
        if (scalingPlans == null) {
            this.scalingPlans = null;
            return;
        }

        this.scalingPlans = new java.util.ArrayList<ScalingPlan>(scalingPlans);
    }
612046
public void scale(double scaleX, double scaleY) {
		this.m00 *= scaleX;
		this.m11 *= scaleY;
		this.m01 *= scaleY;
		this.m10 *= scaleX;
	}
513922
public void setProgressBarImage(int resourceId, ScalingUtils.ScaleType scaleType) {
    setProgressBarImage(mResources.getDrawable(resourceId), scaleType);
  }
478373
private void ScaleControl(GVRSceneObject gvrWebViewSceneObjectFinal, GVRSceneObject  gvrSceneObjectAnchorFinal, String urlFinal) {
        GVRScene mainScene = gvrContext.getMainScene();
        GVRCameraRig gvrCameraRig = mainScene.getMainCameraRig();
        initialCameralookAt = gvrCameraRig.getLookAt();

        gvrWebViewSceneObjectFinal.getTransform().getModelMatrix4f().getTranslation(translationObjectTranslationGlobal);
        gvrWebViewSceneObjectFinal.getTransform().getLocalModelMatrix4f().getTranslation(translationObjectTranslationLocal);

        if (gvrTextScaleObject != null) {
            gvrTextScaleObject.setTextColor(textColorIsActive);
        }
        webViewScale = true;

        for (int i = 0; i < 3; i++ ) {
            initialHitPoint[i] = (initialCameralookAt[i] * translationObjectTranslationGlobal.z) / initialCameralookAt[2];
        }
        beginWebPagePlusUIScale[0] = webPagePlusUIScale[0];
        beginWebPagePlusUIScale[1] = webPagePlusUIScale[1];

        mOnDrawFrame = new DrawFrame();
        gvrContext.registerDrawFrameListener(mOnDrawFrame);
    }
355491
protected void loadBorders(CSSDecoder dec, int contw)
    {
        border = new LengthSet();
        if (borderVisible("top"))
            border.top = getBorderWidth(dec, "border-top-width");
        else
            border.top = 0;
        if (borderVisible("right"))
            border.right = getBorderWidth(dec, "border-right-width");
        else
            border.right = 0;
        if (borderVisible("bottom"))
            border.bottom = getBorderWidth(dec, "border-bottom-width");
        else
            border.bottom = 0;
        if (borderVisible("left"))
            border.left = getBorderWidth(dec, "border-left-width");
        else
            border.left = 0;
    }
898300
public void setBorderGap(int borderGap) {
    this.borderGap = borderGap;
    Border inner = new EmptyBorder(0, borderGap, 0, borderGap);
    setBorder(new CompoundBorder(OUTER, inner));
    lastDigits = 0;
    setPreferredWidth();
  }
91989
public void setBorderPaint(final Paint PAINT) {
        if (null == borderPaint) {
            _borderPaint = PAINT;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            borderPaint.set(PAINT);
        }
    }
1090195
public RoundingParams setBorder(@ColorInt int color, float width) {
    Preconditions.checkArgument(width >= 0, "the border width cannot be < 0");
    mBorderWidth = width;
    mBorderColor = color;
    return this;
  }
1150400
private void defineDefaultBorders(UIDefaults d) {
        try {
            if (Boolean.FALSE.toString().equalsIgnoreCase(System.getProperty("SeaGlass.BorderFactory.overrideDefaults"))) {
                return; 
            }
            
            // Etched Borders
            Field highLightColor = EtchedBorder.class.getDeclaredField("highlight");
            highLightColor.setAccessible(true);
            Field shadowcolor = EtchedBorder.class.getDeclaredField("shadow");
            shadowcolor.setAccessible(true);

            Border etchedBorder = BorderFactory.createEtchedBorder();
            highLightColor.set(etchedBorder, new Color(0xd5e8f7));
            shadowcolor.set(etchedBorder, new Color(0x709ad0));

            Border raisedEtchedBorder = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
            highLightColor.set(raisedEtchedBorder, new Color(0xd5e8f7));
            shadowcolor.set(raisedEtchedBorder, new Color(0x709ad0));
            
            // Bevel Borders
            Field highlightOuter = BevelBorder.class.getDeclaredField("highlightOuter");
            highlightOuter.setAccessible(true);
            Field highlightInner = BevelBorder.class.getDeclaredField("highlightInner");
            highlightInner.setAccessible(true);
            Field shadowOuter = BevelBorder.class.getDeclaredField("shadowOuter");
            shadowOuter.setAccessible(true);
            Field shadowInner = BevelBorder.class.getDeclaredField("shadowInner");
            shadowInner.setAccessible(true);

            Border loweredBevelBorder = BorderFactory.createLoweredBevelBorder();
            highlightOuter.set(loweredBevelBorder, new Color(0xd5e8f7));
            highlightInner.set(loweredBevelBorder, Color.WHITE);
            shadowOuter.set(loweredBevelBorder, new Color(0x5f83a0));
            shadowInner.set(loweredBevelBorder, new Color(0xd5e8f7));

            Border raisedBevelBorder = BorderFactory.createRaisedBevelBorder();
            highlightOuter.set(raisedBevelBorder, new Color(0x95c5eb));
            highlightInner.set(raisedBevelBorder, Color.WHITE);
            shadowOuter.set(raisedBevelBorder, new Color(0x5f83a0));
            shadowInner.set(raisedBevelBorder, new Color(0xd5e8f7));
            
        } catch (SecurityException e) {
            e.printStackTrace();
        } catch (NoSuchFieldException e) {
            e.printStackTrace();
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        
    }
1150827
def set_scale_limits(self, scale_min, scale_max):
        
        # TODO: force scale to within limits if already outside?
        self.t_.set(scale_min=scale_min, scale_max=scale_max)
1154082
protected void setBorder(Widget widget) {

        String cornerAll = org.opencms.gwt.client.ui.css.I_CmsLayoutBundle.INSTANCE.generalCss().cornerAll();
        String border = org.opencms.gwt.client.ui.css.I_CmsLayoutBundle.INSTANCE.generalCss().border();
        widget.addStyleName(border);
        widget.addStyleName(cornerAll);
        widget.getElement().getStyle().setPadding(6, Unit.PX);
    }