Class WorldMapPoint
- java.lang.Object
-
- net.runelite.client.ui.overlay.worldmap.WorldMapPoint
-
public class WorldMapPoint extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorldMapPoint.WorldMapPointBuilder<C extends WorldMapPoint,B extends WorldMapPoint.WorldMapPointBuilder<C,B>>
-
Constructor Summary
Constructors Modifier Constructor Description WorldMapPoint(WorldPoint worldPoint, BufferedImage image)
protected
WorldMapPoint(WorldMapPoint.WorldMapPointBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorldMapPoint.WorldMapPointBuilder<?,?>
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
BufferedImage
getImage()
Point
getImagePoint()
The point on the image that will be drawn at WorldPoint WorldMapPointManager will center the image if imagePoint is nullString
getName()
Name in menu option whenjumpOnClick
is setWorldPoint
getTarget()
The WorldPoint which the worldmap will jump to when clickedString
getTooltip()
WorldPoint
getWorldPoint()
int
hashCode()
boolean
isCurrentlyEdgeSnapped()
boolean
isJumpOnClick()
Whether or not the map jumps to target, or worldPoint when the overlay is clickedboolean
isSnapToEdge()
void
onEdgeSnap()
void
onEdgeUnsnap()
void
setCurrentlyEdgeSnapped(boolean currentlyEdgeSnapped)
void
setImage(BufferedImage image)
void
setImagePoint(Point imagePoint)
The point on the image that will be drawn at WorldPoint WorldMapPointManager will center the image if imagePoint is nullvoid
setJumpOnClick(boolean jumpOnClick)
Whether or not the map jumps to target, or worldPoint when the overlay is clickedvoid
setName(String name)
Name in menu option whenjumpOnClick
is setvoid
setSnapToEdge(boolean snapToEdge)
void
setTarget(WorldPoint target)
The WorldPoint which the worldmap will jump to when clickedvoid
setTooltip(String tooltip)
void
setWorldPoint(WorldPoint worldPoint)
String
toString()
-
-
-
Constructor Detail
-
WorldMapPoint
public WorldMapPoint(WorldPoint worldPoint, BufferedImage image)
-
WorldMapPoint
protected WorldMapPoint(WorldMapPoint.WorldMapPointBuilder<?,?> b)
-
-
Method Detail
-
onEdgeSnap
public void onEdgeSnap()
-
onEdgeUnsnap
public void onEdgeUnsnap()
-
builder
public static WorldMapPoint.WorldMapPointBuilder<?,?> builder()
-
getImage
public BufferedImage getImage()
-
getWorldPoint
public WorldPoint getWorldPoint()
-
getTarget
@Nullable public WorldPoint getTarget()
The WorldPoint which the worldmap will jump to when clicked
-
getImagePoint
public Point getImagePoint()
The point on the image that will be drawn at WorldPoint WorldMapPointManager will center the image if imagePoint is null
-
isSnapToEdge
public boolean isSnapToEdge()
-
isCurrentlyEdgeSnapped
public boolean isCurrentlyEdgeSnapped()
-
isJumpOnClick
public boolean isJumpOnClick()
Whether or not the map jumps to target, or worldPoint when the overlay is clicked
-
getName
public String getName()
Name in menu option whenjumpOnClick
is set
-
getTooltip
public String getTooltip()
-
setImage
public void setImage(BufferedImage image)
-
setWorldPoint
public void setWorldPoint(WorldPoint worldPoint)
-
setTarget
public void setTarget(@Nullable WorldPoint target)
The WorldPoint which the worldmap will jump to when clicked
-
setImagePoint
public void setImagePoint(Point imagePoint)
The point on the image that will be drawn at WorldPoint WorldMapPointManager will center the image if imagePoint is null
-
setSnapToEdge
public void setSnapToEdge(boolean snapToEdge)
-
setCurrentlyEdgeSnapped
public void setCurrentlyEdgeSnapped(boolean currentlyEdgeSnapped)
-
setJumpOnClick
public void setJumpOnClick(boolean jumpOnClick)
Whether or not the map jumps to target, or worldPoint when the overlay is clicked
-
setName
public void setName(String name)
Name in menu option whenjumpOnClick
is set
-
setTooltip
public void setTooltip(String tooltip)
-
canEqual
protected boolean canEqual(Object other)
-
-