Class SketchStyle

java.lang.Object
com.esri.arcgisruntime.mapping.view.SketchStyle

@Deprecated(since="200.2.0", forRemoval=true) public final class SketchStyle extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 200.2.0 along with SketchEditor. New development should use GeometryEditor instead. GeometryEditorStyle provides analogous functionality for GeometryEditor.
Defines a set of styles used for the visual appearance of the sketch geometry during editing. It controls the appearance of vertices, selections, line and fill symbols as well as feedback graphics. Where available the symbols can be MultilayerSymbol instances. The last value set for a particular symbol takes precedence i.e. calling setFillSymbol(FillSymbol) after setMultilayerFillSymbol(MultilayerPolygonSymbol) will cause the FillSymbol to replace the MultilayerPolygonSymbol and getMultilayerFillSymbol() will return null. By default the styles are not multilayer symbols.
Since:
100.1.0
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs the default SketchStyle object.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol used to display feedback when editing polygon geometries.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol used to display feedback when editing line geometries.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol used to display feedback when editing point geometries.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol used to fill polygons.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol for symbolizing a line geometry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol used to display middle point geometry between two vertices.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multilayer symbol used to display feedback when editing polygon geometries.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multilayer symbol used to display feedback when editing line geometries.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multilayer symbol used to display feedback when editing point geometries.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multiayer symbol used to fill polygons.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multilayer symbol for symbolizing a line geometry.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multilayer symbol used to display middle point geometry between two vertices.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multilayer symbol used to display the selected middle vertex.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multilayer symbol to display the selected vertex.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the multilayer symbol used to display the vertices.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol used to display the selected middle vertex.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol to display the selected vertex.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol used to display the vertices.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the symbol to display the text over vertices when number labeling is enabled for vertices.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Indicates if every vertex in the sketch is labeled with a number.
    void
    setFeedbackFillSymbol(FillSymbol feedbackFillSymbol)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol used to display feedback when editing polygon geometries.
    void
    setFeedbackLineSymbol(LineSymbol feedbackLineSymbol)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol used to display feedback when editing line geometries.
    void
    setFeedbackVertexSymbol(MarkerSymbol feedbackVertexSymbol)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol used to display feedback when editing point geometries.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol used to fill polygons.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol for symbolizing a line geometry.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol used to display the point between two vertices.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol used to display feedback when editing polygon geometries.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol used to display feedback when editing line geometries.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol used to display feedback when editing point geometries.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol used to fill polygons.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol for symbolizing a line geometry.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol used to display the point between two vertices.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol used to display the selected middle vertex.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol to display the selected vertex.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the multilayer symbol used to display the vertices.
    void
    setSelectedMidVertexSymbol(MarkerSymbol selectedMidVertexSymbol)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol used to display the selected middle vertex.
    void
    setSelectedVertexSymbol(MarkerSymbol selectedVertexSymbol)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol to display the selected vertex.
    void
    setShowNumbersForVertices(boolean showNumbersForVertices)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets whether or not the vertices of the sketch geometry are labelled with numbers.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol used to display the vertices.
    void
    setVertexTextSymbol(TextSymbol vertexTextSymbol)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the symbol to display the text over vertices when number labelling is enabled for vertices.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • SketchStyle Link icon

      public SketchStyle()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs the default SketchStyle object. By default, the symbols for sketch style are set as follows:
      • vertex symbol: a MarkerSymbol with square style, red color, size 14
      • middle vertex symbol: a MarkerSymbol with circle style, white color, light red outline, size 10
      • line symbol: a LineSymbol with solid style, red color, size 1
      • fill symbol: a FillSymbol with solid style, red color, the default line symbol as outline
      • feedback vertex symbol: a MarkerSymbol with circle style, red color, the default line symbol as outline, size 28
      • feedback line symbol: a LineSymbol with dash style, red color, size 1
      • feedback fill symbol: a FillSymbol with solid style, red color, the default feedback line symbol as outline
      Since:
      100.1.0
  • Method Details Link icon

    • isShowNumbersForVertices Link icon

      public boolean isShowNumbersForVertices()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Indicates if every vertex in the sketch is labeled with a number.
      Returns:
      true if every vertex in the sketch is labeled with a sequential number, false otherwise
      Since:
      100.1.0
    • setShowNumbersForVertices Link icon

      public void setShowNumbersForVertices(boolean showNumbersForVertices)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets whether or not the vertices of the sketch geometry are labelled with numbers.
      Parameters:
      showNumbersForVertices - true to show vertices with number labels, false otherwise
      Since:
      100.1.0
    • getFillSymbol Link icon

      public FillSymbol getFillSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol used to fill polygons. Will return null if a multilayer symbol is being used to symbolize this.
      Returns:
      the symbol used to fill a polygon geometry, or null
      Since:
      100.1.0
    • getMultilayerFillSymbol Link icon

      public MultilayerPolygonSymbol getMultilayerFillSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multiayer symbol used to fill polygons. Will return null if a non-multilayer symbol is being used to symbolize this.
      Returns:
      the symbol used to fill a polygon geometry, or null
      Since:
      100.5.0
    • setFillSymbol Link icon

      public void setFillSymbol(FillSymbol fillSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol used to fill polygons.
      Parameters:
      fillSymbol - the symbol to fill a polygon geometry
      Throws:
      IllegalArgumentException - if the fillSymbol is null
      Since:
      100.1.0
    • setMultilayerFillSymbol Link icon

      public void setMultilayerFillSymbol(MultilayerPolygonSymbol fillSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol used to fill polygons.
      Parameters:
      fillSymbol - the symbol to fill a polygon geometry
      Throws:
      IllegalArgumentException - if the fillSymbol is null
      Since:
      100.5.0
    • getLineSymbol Link icon

      public LineSymbol getLineSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol for symbolizing a line geometry. Will return null if a multilayer symbol is being used to symbolize this.
      Returns:
      the symbol for symbolizing a line geometry, or null
      Since:
      100.1.0
    • getMultilayerLineSymbol Link icon

      public MultilayerPolylineSymbol getMultilayerLineSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multilayer symbol for symbolizing a line geometry. Will return null if a non-multilayer symbol is being used to symbolize this.
      Returns:
      the symbol for symbolizing a line geometry, or null
      Since:
      100.5.0
    • setLineSymbol Link icon

      public void setLineSymbol(LineSymbol lineSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol for symbolizing a line geometry.
      Parameters:
      lineSymbol - the symbol for symbolizing a line geometry
      Throws:
      IllegalArgumentException - if the lineSymbol is null
      Since:
      100.1.0
    • setMultilayerLineSymbol Link icon

      public void setMultilayerLineSymbol(MultilayerPolylineSymbol lineSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol for symbolizing a line geometry.
      Parameters:
      lineSymbol - the symbol for symbolizing a line geometry
      Throws:
      IllegalArgumentException - if the lineSymbol is null
      Since:
      100.5.0
    • getVertexSymbol Link icon

      public MarkerSymbol getVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol used to display the vertices. Will return null if a multilayer symbol is being used to symbolize this.
      Returns:
      the symbol to symbolize a point geometry, or null
      Since:
      100.1.0
    • getMultilayerVertexSymbol Link icon

      public MultilayerPointSymbol getMultilayerVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multilayer symbol used to display the vertices. Will return null if a non-multilayer symbol is being used to symbolize this.
      Returns:
      the symbol to symbolize a point geometry, or null
      Since:
      100.5.0
    • setVertexSymbol Link icon

      public void setVertexSymbol(MarkerSymbol vertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol used to display the vertices.
      Parameters:
      vertexSymbol - the symbol used to symbolize vertices
      Throws:
      IllegalArgumentException - if the vertexSymbol is null
      Since:
      100.1.0
    • setMultilayerVertexSymbol Link icon

      public void setMultilayerVertexSymbol(MultilayerPointSymbol vertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol used to display the vertices.
      Parameters:
      vertexSymbol - the symbol used to symbolize vertices
      Throws:
      IllegalArgumentException - if the vertexSymbol is null
      Since:
      100.5.0
    • getFeedbackFillSymbol Link icon

      public FillSymbol getFeedbackFillSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol used to display feedback when editing polygon geometries. Will return null if a multilayer symbol is being used to symbolize this feedback.
      Returns:
      the symbol that is used to symbolize a polygon geometry for feedback, or null
      Since:
      100.1.0
    • getMultilayerFeedbackFillSymbol Link icon

      public MultilayerPolygonSymbol getMultilayerFeedbackFillSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multilayer symbol used to display feedback when editing polygon geometries. Will return null if a non-multilayer symbol is being used to symbolize this feedback.
      Returns:
      the symbol that is used to symbolize a polygon geometry for feedback, or null
      Since:
      100.5.0
    • setFeedbackFillSymbol Link icon

      public void setFeedbackFillSymbol(FillSymbol feedbackFillSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol used to display feedback when editing polygon geometries.
      Parameters:
      feedbackFillSymbol - the symbol to symbolize a polygon geometry for feedback
      Throws:
      IllegalArgumentException - if the feedbackFillSymbol is null
      Since:
      100.1.0
    • setMultilayerFeedbackFillSymbol Link icon

      public void setMultilayerFeedbackFillSymbol(MultilayerPolygonSymbol feedbackFillSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol used to display feedback when editing polygon geometries.
      Parameters:
      feedbackFillSymbol - the symbol to symbolize a polygon geometry for feedback
      Throws:
      IllegalArgumentException - if the feedbackFillSymbol is null
      Since:
      100.5.0
    • getFeedbackLineSymbol Link icon

      public LineSymbol getFeedbackLineSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol used to display feedback when editing line geometries. Will return null if a multilayer symbol is being used to symbolize this feedback.
      Returns:
      the symbol used to display feedback when editing line geometries, or null
      Since:
      100.1.0
    • getMultilayerFeedbackLineSymbol Link icon

      public MultilayerPolylineSymbol getMultilayerFeedbackLineSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multilayer symbol used to display feedback when editing line geometries. Will return null if a non-multilayer symbol is being used to symbolize this feedback.
      Returns:
      the symbol used to display feedback when editing line geometries, or null
      Since:
      100.5.0
    • setFeedbackLineSymbol Link icon

      public void setFeedbackLineSymbol(LineSymbol feedbackLineSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol used to display feedback when editing line geometries.
      Parameters:
      feedbackLineSymbol - the symbol used to display feedback when editing line geometries
      Throws:
      IllegalArgumentException - if the feedbackLineSymbol is null
      Since:
      100.1.0
    • setMultilayerFeedbackLineSymbol Link icon

      public void setMultilayerFeedbackLineSymbol(MultilayerPolylineSymbol feedbackLineSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol used to display feedback when editing line geometries.
      Parameters:
      feedbackLineSymbol - the symbol used to display feedback when editing line geometries
      Throws:
      IllegalArgumentException - if the feedbackLineSymbol is null
      Since:
      100.5.0
    • getFeedbackVertexSymbol Link icon

      public MarkerSymbol getFeedbackVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol used to display feedback when editing point geometries. Will return null if a multilayer symbol is being used to symbolize this feedback.
      Returns:
      the symbol used to display feedback when editing point geometries, or null
      Since:
      100.1.0
    • getMultilayerFeedbackVertexSymbol Link icon

      public MultilayerPointSymbol getMultilayerFeedbackVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multilayer symbol used to display feedback when editing point geometries. Will return null if a non-multilayer symbol is being used to symbolize this feedback.
      Returns:
      the symbol used to display feedback when editing point geometries, or null
      Since:
      100.5.0
    • setFeedbackVertexSymbol Link icon

      public void setFeedbackVertexSymbol(MarkerSymbol feedbackVertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol used to display feedback when editing point geometries.
      Parameters:
      feedbackVertexSymbol - the symbol used to display feedback when editing point geometries
      Throws:
      IllegalArgumentException - if the feedbackVertexSymbol is null
      Since:
      100.1.0
    • setMultilayerFeedbackVertexSymbol Link icon

      public void setMultilayerFeedbackVertexSymbol(MultilayerPointSymbol feedbackVertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol used to display feedback when editing point geometries.
      Parameters:
      feedbackVertexSymbol - the symbol used to display feedback when editing point geometries
      Throws:
      IllegalArgumentException - if the feedbackVertexSymbol is null
      Since:
      100.5.0
    • getMidVertexSymbol Link icon

      public MarkerSymbol getMidVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol used to display middle point geometry between two vertices. Will return null if a multilayer symbol is being used to symbolize this.
      Returns:
      the symbol used to display the point between two vertices, or null
      Since:
      100.1.0
    • getMultilayerMidVertexSymbol Link icon

      public MultilayerPointSymbol getMultilayerMidVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multilayer symbol used to display middle point geometry between two vertices. Will return null if a non-multilayer symbol is being used to symbolize this.
      Returns:
      the symbol used to display the point between two vertices, or null
      Since:
      100.5.0
    • setMidVertexSymbol Link icon

      public void setMidVertexSymbol(MarkerSymbol midVertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol used to display the point between two vertices.
      Parameters:
      midVertexSymbol - the symbol used to display the point between two vertices
      Throws:
      IllegalArgumentException - if the midVertexSymbol is null
      Since:
      100.1.0
    • setMultilayerMidVertexSymbol Link icon

      public void setMultilayerMidVertexSymbol(MultilayerPointSymbol midVertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol used to display the point between two vertices.
      Parameters:
      midVertexSymbol - the symbol used to display the point between two vertices
      Throws:
      IllegalArgumentException - if the midVertexSymbol is null
      Since:
      100.5.0
    • getSelectedMidVertexSymbol Link icon

      public MarkerSymbol getSelectedMidVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol used to display the selected middle vertex. Will return null if a multilayer symbol is being used to symbolize this.
      Returns:
      the symbol used to display the selected middle vertex, or null
      Since:
      100.1.0
    • getMultilayerSelectedMidVertexSymbol Link icon

      public MultilayerPointSymbol getMultilayerSelectedMidVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multilayer symbol used to display the selected middle vertex. Will return null if a non-multilayer symbol is being used to symbolize this.
      Returns:
      the symbol used to display the selected middle vertex, or null
      Since:
      100.5.0
    • setSelectedMidVertexSymbol Link icon

      public void setSelectedMidVertexSymbol(MarkerSymbol selectedMidVertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol used to display the selected middle vertex.
      Parameters:
      selectedMidVertexSymbol - the symbol used to display the selected middle vertex
      Throws:
      IllegalArgumentException - if the selectedMidVertexSymbol is null
      Since:
      100.1.0
    • setMultilayerSelectedMidVertexSymbol Link icon

      public void setMultilayerSelectedMidVertexSymbol(MultilayerPointSymbol selectedMidVertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol used to display the selected middle vertex.
      Parameters:
      selectedMidVertexSymbol - the symbol used to display the selected middle vertex
      Throws:
      IllegalArgumentException - if the selectedMidVertexSymbol is null
      Since:
      100.5.0
    • getSelectedVertexSymbol Link icon

      public MarkerSymbol getSelectedVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol to display the selected vertex. Will return null if a multilayer symbol is being used to symbolize this.
      Returns:
      the symbol to display the selected vertex, or null
      Since:
      100.1.0
    • getMultilayerSelectedVertexSymbol Link icon

      public MultilayerPointSymbol getMultilayerSelectedVertexSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the multilayer symbol to display the selected vertex. Will return null if a non-multilayer symbol is being used to symbolize this.
      Returns:
      the symbol to display the selected vertex, or null
      Since:
      100.5.0
    • setSelectedVertexSymbol Link icon

      public void setSelectedVertexSymbol(MarkerSymbol selectedVertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol to display the selected vertex.
      Parameters:
      selectedVertexSymbol - the symbol to display the selected vertex
      Throws:
      IllegalArgumentException - if the selectedVertexSymbol is null
      Since:
      100.1.0
    • setMultilayerSelectedVertexSymbol Link icon

      public void setMultilayerSelectedVertexSymbol(MultilayerPointSymbol selectedVertexSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the multilayer symbol to display the selected vertex.
      Parameters:
      selectedVertexSymbol - the symbol to display the selected vertex
      Throws:
      IllegalArgumentException - if the selectedVertexSymbol is null
      Since:
      100.5.0
    • getVertexTextSymbol Link icon

      public TextSymbol getVertexTextSymbol()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the symbol to display the text over vertices when number labeling is enabled for vertices.
      Returns:
      the symbol to display the text over vertices, or null
      Since:
      100.1.0
    • setVertexTextSymbol Link icon

      public void setVertexTextSymbol(TextSymbol vertexTextSymbol)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the symbol to display the text over vertices when number labelling is enabled for vertices.
      Parameters:
      vertexTextSymbol - the symbol to display the text over vertices
      Throws:
      IllegalArgumentException - if the vertexTextSymbol is null
      Since:
      100.1.0