Class WorldMapSymbols
java.lang.Object
zombie.worldMap.symbols.WorldMapSymbols
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final floatstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(IWorldMapSymbolListener listener) voidaddSymbol(WorldMapBaseSymbol symbol) addText(String text, boolean translated, String layerID, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) addTexture(String symbolID, float x, float y, float r, float g, float b, float a) addTexture(String symbolID, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) addTranslatedText(String text, String layerID, float x, float y, float r, float g, float b, float a) addUntranslatedText(String text, String layerID, float x, float y, float r, float g, float b, float a) voidclear()voidvoidstatic StringlonggetSymbolByIndex(int index) intintindexOf(WorldMapBaseSymbol symbol) voidbooleanvoidload(ByteBuffer input, int WorldVersion) voidremoveSymbol(WorldMapBaseSymbol symbol) voidremoveSymbolByIndex(int index) voidsave(ByteBuffer output) voidsetUserEditing(boolean b)
-
Field Details
-
SAVEFILE_VERSION1
public static final int SAVEFILE_VERSION1- See Also:
-
SAVEFILE_VERSION2
public static final int SAVEFILE_VERSION2- See Also:
-
SAVEFILE_VERSION
public static final int SAVEFILE_VERSION- See Also:
-
MIN_VISIBLE_ZOOM
public static final float MIN_VISIBLE_ZOOM- See Also:
-
COLLAPSED_RADIUS
public static final float COLLAPSED_RADIUS- See Also:
-
-
Constructor Details
-
WorldMapSymbols
public WorldMapSymbols()
-
-
Method Details
-
getDefaultTextLayerID
-
getModificationCount
public long getModificationCount() -
addTranslatedText
public WorldMapTextSymbol addTranslatedText(String text, String layerID, float x, float y, float r, float g, float b, float a) -
addUntranslatedText
public WorldMapTextSymbol addUntranslatedText(String text, String layerID, float x, float y, float r, float g, float b, float a) -
addText
public WorldMapTextSymbol addText(String text, boolean translated, String layerID, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) -
addTexture
public WorldMapTextureSymbol addTexture(String symbolID, float x, float y, float r, float g, float b, float a) -
addTexture
public WorldMapTextureSymbol addTexture(String symbolID, float x, float y, float anchorX, float anchorY, float scale, float r, float g, float b, float a) -
addSymbol
-
indexOf
-
removeSymbol
-
removeSymbolByIndex
public void removeSymbolByIndex(int index) -
isUserEditing
public boolean isUserEditing() -
setUserEditing
public void setUserEditing(boolean b) -
clear
public void clear() -
clearDefaultAnnotations
public void clearDefaultAnnotations() -
clearUserAnnotations
public void clearUserAnnotations() -
invalidateLayout
public void invalidateLayout() -
getSymbolCount
public int getSymbolCount() -
getSymbolByIndex
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
addListener
-