Interface MapNode
-
- All Known Implementing Classes:
FeatureNode,GoogleMapNode
public interface MapNodeNode to add in the Outside Plant View.- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddClickEventListener(ClickEvent.ClickEventListener clickEventListener)Adds a click event listener.voidaddPositionChangedEventListener(PositionChangedEvent.PositionChangedEventListener positionChangedEventListener)Adds position changed event listener.voidaddRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)Adds a right click event listener.booleangetClickableNode()Gets if the node can receives mouse events.booleangetDraggableNode()Gets if the node can be dragged.StringgetNodeLabel()Gets the node label.StringgetNodeTitle()Gets the node title.booleangetNodeVisible()If true, the node is visible.booleangetPlayAnimation()Gets if animation is played.BusinessObjectViewNodegetViewNode()Gets the view node.voidremoveAllClickEventListeners()Removes all click event listener.voidremoveAllPositionChangedEventListeners()Removes all position changed event listeners.voidremoveAllRightClickEventListeners()Removes all right click event listener.voidremoveClickEventListener(ClickEvent.ClickEventListener clickEventListener)Removes a click event listener.voidremovePositionChangedEventListener(PositionChangedEvent.PositionChangedEventListener positionChangedEventListener)Removes position changed event listener.voidremoveRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)Removes a right click event listener.voidsetClickableNode(boolean clickable)Sets if the node can receives mouse events.voidsetDraggableNode(boolean draggable)Sets if the node can be dragged.voidsetNodeLabel(String label)Sets the node label.voidsetNodeTitle(String title)Sets the node title.voidsetNodeVisible(boolean visible)If true, the node is visible.voidsetPlayAnimation(boolean playAnimation)Sets true to play animation.voidsetPosition(GeoCoordinate position)Sets the node position.
-
-
-
Method Detail
-
getViewNode
BusinessObjectViewNode getViewNode()
Gets the view node.- Returns:
- the view node.
-
setPosition
void setPosition(GeoCoordinate position)
Sets the node position.- Parameters:
position- Node position.
-
getNodeLabel
String getNodeLabel()
Gets the node label.- Returns:
- Node label.
-
setNodeLabel
void setNodeLabel(String label)
Sets the node label.- Parameters:
label- Node label.
-
getNodeTitle
String getNodeTitle()
Gets the node title.- Returns:
- Node title.
-
setNodeTitle
void setNodeTitle(String title)
Sets the node title.- Parameters:
title- Node title.
-
getClickableNode
boolean getClickableNode()
Gets if the node can receives mouse events.- Returns:
- If true, the node can receives mouse events.
-
setClickableNode
void setClickableNode(boolean clickable)
Sets if the node can receives mouse events.- Parameters:
clickable- True to receives mouse events.
-
getDraggableNode
boolean getDraggableNode()
Gets if the node can be dragged.- Returns:
- If true, the node can be dragged.
-
setDraggableNode
void setDraggableNode(boolean draggable)
Sets if the node can be dragged.- Parameters:
draggable- True to drag the node.
-
getPlayAnimation
boolean getPlayAnimation()
Gets if animation is played.- Returns:
- If animation is played.
-
setPlayAnimation
void setPlayAnimation(boolean playAnimation)
Sets true to play animation.- Parameters:
playAnimation- True to play animation.
-
getNodeVisible
boolean getNodeVisible()
If true, the node is visible.- Returns:
- If true, the node is visible.
-
setNodeVisible
void setNodeVisible(boolean visible)
If true, the node is visible.- Parameters:
visible- If true, the node is visible.
-
addClickEventListener
void addClickEventListener(ClickEvent.ClickEventListener clickEventListener)
Adds a click event listener.- Parameters:
clickEventListener- Callback executed on node click.
-
removeClickEventListener
void removeClickEventListener(ClickEvent.ClickEventListener clickEventListener)
Removes a click event listener.- Parameters:
clickEventListener- Callback executed on node click.
-
removeAllClickEventListeners
void removeAllClickEventListeners()
Removes all click event listener.
-
addRightClickEventListener
void addRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)
Adds a right click event listener.- Parameters:
rightClickEventListener- Callback executed on node right click.
-
removeRightClickEventListener
void removeRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)
Removes a right click event listener.- Parameters:
rightClickEventListener- Callback executed on node right click.
-
removeAllRightClickEventListeners
void removeAllRightClickEventListeners()
Removes all right click event listener.
-
addPositionChangedEventListener
void addPositionChangedEventListener(PositionChangedEvent.PositionChangedEventListener positionChangedEventListener)
Adds position changed event listener.- Parameters:
positionChangedEventListener- Callback executed on node position changed.
-
removePositionChangedEventListener
void removePositionChangedEventListener(PositionChangedEvent.PositionChangedEventListener positionChangedEventListener)
Removes position changed event listener.- Parameters:
positionChangedEventListener- Callback executed on node position changed.
-
removeAllPositionChangedEventListeners
void removeAllPositionChangedEventListeners()
Removes all position changed event listeners.
-
-