Sets the shape of the preview of the preference's color.

@param previewShape
The shape, which should be set, as a value of the enum {@link PreviewShape}. The
shape may not be null
347118
public final void setPreviewShape(@NonNull final PreviewShape previewShape) {
        Condition.INSTANCE.ensureNotNull(previewShape, "The preview shape may not be null");
        this.previewShape = previewShape;

        if (previewLoader != null) {
            previewLoader.setShape(previewShape);
        }

        adaptPreviewView();
    }
180478
@Api
	public void setRectangleStyle(ShapeStyle rectangleStyle) {
		this.rectangleStyle = rectangleStyle;
		if (targetRectangle != null) {
			targetRectangle.setStyle(rectangleStyle);
			render(targetRectangle, RenderGroup.SCREEN, RenderStatus.ALL);
		}
	}
1369371
public void setStartCornerColor(Color color) {
        if (startColor == null) {
            startColor = new RGBColor(0.0, 0.0, 0.0);
        }
        setGradation(true);
        this.startColor = color;
    }
1024436
private void frameShape(final Shape pShape) {
        if (isPenVisible()) {
            setupForPaint();

            Stroke stroke = getStroke(penSize);
            Shape shape = stroke.createStrokedShape(pShape);
            graphics.draw(shape);
        }
    }
565193
public void setNeedleShape(final NeedleShape SHAPE) {
        if (null == needleShape) {
            _needleShape = null == SHAPE ? NeedleShape.ANGLED : SHAPE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            needleShape.set(SHAPE);
        }
    }
960479
@Override
   public void setStylerFactory(StylerFactory stylerFactory) {
      this.stylerFactory = stylerFactory;
      try {
         FONT.initialize(stylerFactory.getSettings());
      } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException ex) {
         throw new VectorPrintRuntimeException(ex);
      }
   }
1339908
public AStarSegmentOrientation<ST, PT> setSegmentOrientationTool(AStarSegmentOrientation<ST, PT> tool) {
		final AStarSegmentOrientation<ST, PT> old = this.segmentOrientation;
		this.segmentOrientation = tool;
		return old;
	}
60940
public void setShape(java.lang.String shape) {
        getStateHelper().put(PropertyKeys.shape, shape);
        handleAttribute("shape", shape);
    }
731241
public void setPreference(String prefKey, String prefValue) {
        props.setProperty(prefKey, prefValue);
        savePreferences();
    }
166306
public final void setStyle(@NonNull final Style style) {
        Condition.INSTANCE.ensureNotNull(style, "The style may not be null");
        adapter.setStyle(style);
        adaptRootView();
        adaptTitleView();
        adaptContentView();
        adaptGridViewHeight();
    }
1125826
public static final void draw(Shape shape) {
        Texture t = TextureImpl.getLastBind();
        TextureImpl.bindNone();
        
        float points[] = shape.getPoints();
        
        LSR.start();
        for(int i=0;i<points.length;i+=2) {
        	LSR.vertex(points[i], points[i + 1]);
        }
        
        if (shape.closed()) {
        	LSR.vertex(points[0], points[1]);
        }
        
        LSR.end();
        
        if (t == null) {
        	TextureImpl.bindNone();
        } else {
        	t.bind();
        }
    }
1043776
final void detachShapeFromColorMap(final Shape<?> shape)
    {
        if (null != shape)
        {
            final String color = shape.getColorKey();

            if (null != color)
            {
                final Shape<?> look = m_shape_color_map.get(color);

                if (shape == look)
                {
                    shape.setColorKey(null);

                    m_shape_color_map.remove(color);
                }
            }
        }
    }
704933
final void attachShapeToColorMap(final Shape<?> shape)
    {
        if (null != shape)
        {
            String color = shape.getColorKey();

            if (null != color)
            {
                m_shape_color_map.remove(color);

                shape.setColorKey(null);
            }
            int count = 0;

            do
            {
                count++;

                color = m_c_rotor.next();
            }
            while ((m_shape_color_map.get(color) != null) && (count <= ColorKeyRotor.COLOR_SPACE_MAXIMUM));

            if (count > ColorKeyRotor.COLOR_SPACE_MAXIMUM)
            {
                throw new IllegalArgumentException("Exhausted color space " + count);
            }
            m_shape_color_map.put(color, shape);

            shape.setColorKey(color);
        }
    }
789543
public void setInfoStyle(java.lang.String infoStyle) {
        getStateHelper().put(PropertyKeys.infoStyle, infoStyle);
    }
538838
protected function setPreview($preview)
    {
        if (!($preview instanceof TemplateInterface) && !is_string($preview) && ($preview !== null)) {
            throw new \RuntimeException('Invalid preview preview', 1481368492);
        }
        $this->preview = $preview;
    }
716290
public void setStyle(StyleRow styleRow, GeometryType geometryType) {
		if (geometryType != null) {
			if (styleRow != null) {
				styles.put(geometryType, styleRow);
			} else {
				styles.remove(geometryType);
			}
		} else {
			defaultStyle = styleRow;
		}
	}
1354352
public final T setStyle(String styleAttribute, String styleValue) {

    // Add style to style map
    Map<String, String> styleMap = getStyles();
    styleMap.put(styleAttribute, styleValue);

    // Serialize style string
    StringBuilder styleString = new StringBuilder();
    for (Map.Entry style : styleMap.entrySet()) {
      styleString.append(style.getKey());
      styleString.append(':');
      styleString.append(style.getValue());
      styleString.append(';');
    }
    setStyleString(styleString.toString());
    return (T)this;
  }