Package biopb.image

Class Polyline.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
biopb.image.Polyline.Builder
All Implemented Interfaces:
PolylineOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Polyline

public static final class Polyline.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder> implements PolylineOrBuilder
 An OPEN path of straight segments: the freehand / scribble annotation.

 Semantically distinct from Polygon even though the vertex list is the same
 shape. A Polygon is a closed REGION -- its last point joins its first and it
 encloses area, so "inside" is meaningful. A Polyline encloses nothing; it is a
 stroke, and what it marks is the band of pixels under the brush. OME-XML draws
 the same Polygon/Polyline distinction.
 
Protobuf type biopb.image.Polyline
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • clear

      public Polyline.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • getDefaultInstanceForType

      public Polyline getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Polyline build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Polyline buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Polyline.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • setField

      public Polyline.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • clearField

      public Polyline.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • clearOneof

      public Polyline.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • setRepeatedField

      public Polyline.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • addRepeatedField

      public Polyline.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • mergeFrom

      public Polyline.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Polyline.Builder>
    • mergeFrom

      public Polyline.Builder mergeFrom(Polyline other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • mergeFrom

      public Polyline.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Polyline.Builder>
      Throws:
      IOException
    • getPointsList

      public List<Point> getPointsList()
      repeated .biopb.image.Point points = 1;
      Specified by:
      getPointsList in interface PolylineOrBuilder
    • getPointsCount

      public int getPointsCount()
      repeated .biopb.image.Point points = 1;
      Specified by:
      getPointsCount in interface PolylineOrBuilder
    • getPoints

      public Point getPoints(int index)
      repeated .biopb.image.Point points = 1;
      Specified by:
      getPoints in interface PolylineOrBuilder
    • setPoints

      public Polyline.Builder setPoints(int index, Point value)
      repeated .biopb.image.Point points = 1;
    • setPoints

      public Polyline.Builder setPoints(int index, Point.Builder builderForValue)
      repeated .biopb.image.Point points = 1;
    • addPoints

      public Polyline.Builder addPoints(Point value)
      repeated .biopb.image.Point points = 1;
    • addPoints

      public Polyline.Builder addPoints(int index, Point value)
      repeated .biopb.image.Point points = 1;
    • addPoints

      public Polyline.Builder addPoints(Point.Builder builderForValue)
      repeated .biopb.image.Point points = 1;
    • addPoints

      public Polyline.Builder addPoints(int index, Point.Builder builderForValue)
      repeated .biopb.image.Point points = 1;
    • addAllPoints

      public Polyline.Builder addAllPoints(Iterable<? extends Point> values)
      repeated .biopb.image.Point points = 1;
    • clearPoints

      public Polyline.Builder clearPoints()
      repeated .biopb.image.Point points = 1;
    • removePoints

      public Polyline.Builder removePoints(int index)
      repeated .biopb.image.Point points = 1;
    • getPointsBuilder

      public Point.Builder getPointsBuilder(int index)
      repeated .biopb.image.Point points = 1;
    • getPointsOrBuilder

      public PointOrBuilder getPointsOrBuilder(int index)
      repeated .biopb.image.Point points = 1;
      Specified by:
      getPointsOrBuilder in interface PolylineOrBuilder
    • getPointsOrBuilderList

      public List<? extends PointOrBuilder> getPointsOrBuilderList()
      repeated .biopb.image.Point points = 1;
      Specified by:
      getPointsOrBuilderList in interface PolylineOrBuilder
    • addPointsBuilder

      public Point.Builder addPointsBuilder()
      repeated .biopb.image.Point points = 1;
    • addPointsBuilder

      public Point.Builder addPointsBuilder(int index)
      repeated .biopb.image.Point points = 1;
    • getPointsBuilderList

      public List<Point.Builder> getPointsBuilderList()
      repeated .biopb.image.Point points = 1;
    • getWidth

      public float getWidth()
       Stroke width, in the same pixel units as the points.
      
       This is GEOMETRY, not styling. A scribble annotation marks the pixels the
       brush covered, so the width participates in what the ROI means -- and in
       its bounding box, which extends width/2 beyond the vertex extent. A
       consumer that treated this as a display attribute would compute the wrong
       covered region. 0 means a mathematical zero-width path.
       
      float width = 2;
      Specified by:
      getWidth in interface PolylineOrBuilder
      Returns:
      The width.
    • setWidth

      public Polyline.Builder setWidth(float value)
       Stroke width, in the same pixel units as the points.
      
       This is GEOMETRY, not styling. A scribble annotation marks the pixels the
       brush covered, so the width participates in what the ROI means -- and in
       its bounding box, which extends width/2 beyond the vertex extent. A
       consumer that treated this as a display attribute would compute the wrong
       covered region. 0 means a mathematical zero-width path.
       
      float width = 2;
      Parameters:
      value - The width to set.
      Returns:
      This builder for chaining.
    • clearWidth

      public Polyline.Builder clearWidth()
       Stroke width, in the same pixel units as the points.
      
       This is GEOMETRY, not styling. A scribble annotation marks the pixels the
       brush covered, so the width participates in what the ROI means -- and in
       its bounding box, which extends width/2 beyond the vertex extent. A
       consumer that treated this as a display attribute would compute the wrong
       covered region. 0 means a mathematical zero-width path.
       
      float width = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Polyline.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>
    • mergeUnknownFields

      public final Polyline.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Polyline.Builder>