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 classWorldMapPoint.WorldMapPointBuilder<C extends WorldMapPoint,B extends WorldMapPoint.WorldMapPointBuilder<C,B>>
-
Constructor Summary
Constructors Modifier Constructor Description WorldMapPoint(WorldPoint worldPoint, BufferedImage image)protectedWorldMapPoint(WorldMapPoint.WorldMapPointBuilder<?,?> b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorldMapPoint.WorldMapPointBuilder<?,?>builder()protected booleancanEqual(Object other)booleanequals(Object o)BufferedImagegetImage()PointgetImagePoint()The point on the image that will be drawn at WorldPoint WorldMapPointManager will center the image if imagePoint is nullStringgetName()Name in menu option whenjumpOnClickis setWorldPointgetTarget()The WorldPoint which the worldmap will jump to when clickedStringgetTooltip()WorldPointgetWorldPoint()inthashCode()booleanisCurrentlyEdgeSnapped()booleanisJumpOnClick()Whether or not the map jumps to target, or worldPoint when the overlay is clickedbooleanisSnapToEdge()voidonEdgeSnap()voidonEdgeUnsnap()voidsetCurrentlyEdgeSnapped(boolean currentlyEdgeSnapped)voidsetImage(BufferedImage image)voidsetImagePoint(Point imagePoint)The point on the image that will be drawn at WorldPoint WorldMapPointManager will center the image if imagePoint is nullvoidsetJumpOnClick(boolean jumpOnClick)Whether or not the map jumps to target, or worldPoint when the overlay is clickedvoidsetName(String name)Name in menu option whenjumpOnClickis setvoidsetSnapToEdge(boolean snapToEdge)voidsetTarget(WorldPoint target)The WorldPoint which the worldmap will jump to when clickedvoidsetTooltip(String tooltip)voidsetWorldPoint(WorldPoint worldPoint)StringtoString()
-
-
-
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 whenjumpOnClickis 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 whenjumpOnClickis set
-
setTooltip
public void setTooltip(String tooltip)
-
canEqual
protected boolean canEqual(Object other)
-
-