Package net.pl3x.map.core.markers.option
Class Options
java.lang.Object
net.pl3x.map.core.markers.option.Options
- All Implemented Interfaces:
JsonSerializable
Represents a
Marker's options.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Options.BuilderCreate a newOptions.Builderfrom thisOptionsinstancestatic @NotNull Options.Builderbuilder()Create a newOptions.Builder.booleanstatic @NotNull OptionsfromJson(@NotNull com.google.gson.JsonObject obj) @Nullable FillgetFill()Get fill rules.@Nullable PopupgetPopup()Get popup rules.@Nullable StrokeGet stroke rules.@Nullable TooltipGet tooltip rules.inthashCode()@NotNull OptionsSet new fill rules.@NotNull OptionsSet new popup rules.@NotNull OptionsSet new stroke rules.@NotNull OptionssetTooltip(@Nullable Tooltip tooltip) Set new tooltip rules.@NotNull com.google.gson.JsonObjecttoJson()Jsonify this object.@NotNull StringtoString()
-
Constructor Details
-
Options
public Options()Create empty marker options. -
Options
public Options(@Nullable @Nullable Stroke stroke, @Nullable @Nullable Fill fill, @Nullable @Nullable Tooltip tooltip, @Nullable @Nullable Popup popup) Create marker options.- Parameters:
stroke- stroke rulesfill- fill rulestooltip- tooltip rules
-
-
Method Details
-
builder
Create a newOptions.Builder. -
getStroke
Get stroke rules.- Returns:
- stroke rules
-
setStroke
Set new stroke rules.- Parameters:
stroke- new stroke rules.- Returns:
- this marker options
-
getFill
Get fill rules.- Returns:
- fill rules
-
setFill
Set new fill rules.- Parameters:
fill- new fill rules- Returns:
- this marker options
-
getTooltip
Get tooltip rules.- Returns:
- tooltip rules
-
setTooltip
Set new tooltip rules.- Parameters:
tooltip- new tooltip rules- Returns:
- this marker options
-
getPopup
Get popup rules.- Returns:
- popup rules
-
setPopup
Set new popup rules.- Parameters:
popup- new popup rules- Returns:
- this marker options
-
asBuilder
Create a newOptions.Builderfrom thisOptionsinstance- Returns:
- new builder
-
toJson
@NotNull public @NotNull com.google.gson.JsonObject toJson()Description copied from interface:JsonSerializableJsonify this object.- Specified by:
toJsonin interfaceJsonSerializable- Returns:
- object as json element
-
fromJson
-
equals
-
hashCode
public int hashCode() -
toString
-