Record Class OverlayShapeProps
java.lang.Object
java.lang.Record
journeymap.api.v2.server.overlay.OverlayShapeProps
- Record Components:
fillColor- 0xRRGGBB; alpha is supplied separately as fillOpacityfillOpacity- 0.0 (transparent) to 1.0 (opaque)strokeColor- 0xRRGGBBstrokeWidth- pixels; 0 disables the strokestrokeOpacity- 0.0 to 1.0displayOrder- z-order among overlays; higher draws in front (default 1000)minZoom- minimum fullscreen zoom at which the overlay is visiblemaxZoom- maximum fullscreen zoom at which the overlay is visibleactiveUIs- which UIs (Fullscreen, Minimap, Webmap) the overlay is visible inactiveMapTypes- which map types (Day, Night, etc.) the overlay is visible inlabel- static label rendered with the polygon, or null for nonetitle- hover tooltip text, or null for none
public record OverlayShapeProps(int fillColor, float fillOpacity, int strokeColor, float strokeWidth, float strokeOpacity, int displayOrder, int minZoom, int maxZoom, Set<Context.UI> activeUIs, Set<Context.MapType> activeMapTypes, @Nullable String label, @Nullable String title)
extends Record
Style and visibility properties applied to every polygon in a single
ServerPolygon. Mirrors the subset of Overlay fields that are
meaningful for server-pushed overlays. Interactive listeners are not
supported in v1 and are therefore not represented here.-
Constructor Summary
ConstructorsConstructorDescriptionOverlayShapeProps(int fillColor, float fillOpacity, int strokeColor, float strokeWidth, float strokeOpacity, int displayOrder, int minZoom, int maxZoom, Set<Context.UI> activeUIs, Set<Context.MapType> activeMapTypes, @Nullable String label, @Nullable String title) Creates an instance of aOverlayShapePropsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveMapTypesrecord component.Returns the value of theactiveUIsrecord component.intReturns the value of thedisplayOrderrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefillColorrecord component.floatReturns the value of thefillOpacityrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringlabel()Returns the value of thelabelrecord component.intmaxZoom()Returns the value of themaxZoomrecord component.intminZoom()Returns the value of theminZoomrecord component.intReturns the value of thestrokeColorrecord component.floatReturns the value of thestrokeOpacityrecord component.floatReturns the value of thestrokeWidthrecord component.@Nullable Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OverlayShapeProps
public OverlayShapeProps(int fillColor, float fillOpacity, int strokeColor, float strokeWidth, float strokeOpacity, int displayOrder, int minZoom, int maxZoom, Set<Context.UI> activeUIs, Set<Context.MapType> activeMapTypes, @Nullable @Nullable String label, @Nullable @Nullable String title) Creates an instance of aOverlayShapePropsrecord class.- Parameters:
fillColor- the value for thefillColorrecord componentfillOpacity- the value for thefillOpacityrecord componentstrokeColor- the value for thestrokeColorrecord componentstrokeWidth- the value for thestrokeWidthrecord componentstrokeOpacity- the value for thestrokeOpacityrecord componentdisplayOrder- the value for thedisplayOrderrecord componentminZoom- the value for theminZoomrecord componentmaxZoom- the value for themaxZoomrecord componentactiveUIs- the value for theactiveUIsrecord componentactiveMapTypes- the value for theactiveMapTypesrecord componentlabel- the value for thelabelrecord componenttitle- the value for thetitlerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
fillColor
-
fillOpacity
public float fillOpacity()Returns the value of thefillOpacityrecord component.- Returns:
- the value of the
fillOpacityrecord component
-
strokeColor
public int strokeColor()Returns the value of thestrokeColorrecord component.- Returns:
- the value of the
strokeColorrecord component
-
strokeWidth
public float strokeWidth()Returns the value of thestrokeWidthrecord component.- Returns:
- the value of the
strokeWidthrecord component
-
strokeOpacity
public float strokeOpacity()Returns the value of thestrokeOpacityrecord component.- Returns:
- the value of the
strokeOpacityrecord component
-
displayOrder
public int displayOrder()Returns the value of thedisplayOrderrecord component.- Returns:
- the value of the
displayOrderrecord component
-
minZoom
-
maxZoom
-
activeUIs
-
activeMapTypes
Returns the value of theactiveMapTypesrecord component.- Returns:
- the value of the
activeMapTypesrecord component
-
label
-
title
-