Class StyleBuilder

java.lang.Object
com.massifmaps.styles.StyleBuilder
Direct Known Subclasses:
BalloonPopupButtonStyleBuilder, BillboardStyleBuilder, GeometryCollectionStyleBuilder, LineStyleBuilder, PointStyleBuilder, Polygon3DStyleBuilder, PolygonStyleBuilder

public class StyleBuilder extends Object
A base class for other StyleBuilder subclasses.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • getColor

      public Color getColor()
      Returns the color of the vector element.
      Returns:
      The color of the vector element.
    • setColor

      public void setColor(Color color)
      Sets the color for the vector element. Coloring works by multiplying the bitmap
      of the vector element with the specified color. If the color is set to white, the resulting bitmap
      will look exactly like the original. The default is white.
      Parameters:
      color - The new color for the vector element.