Interface MapNode
-
- All Known Implementing Classes:
FeatureNode
,GoogleMapNode
public interface MapNode
Node 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 void
addClickEventListener(ClickEvent.ClickEventListener clickEventListener)
Adds a click event listener.void
addPositionChangedEventListener(PositionChangedEvent.PositionChangedEventListener positionChangedEventListener)
Adds position changed event listener.void
addRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)
Adds a right click event listener.boolean
getClickableNode()
Gets if the node can receives mouse events.boolean
getDraggableNode()
Gets if the node can be dragged.String
getNodeLabel()
Gets the node label.String
getNodeTitle()
Gets the node title.boolean
getNodeVisible()
If true, the node is visible.boolean
getPlayAnimation()
Gets if animation is played.BusinessObjectViewNode
getViewNode()
Gets the view node.void
removeAllClickEventListeners()
Removes all click event listener.void
removeAllPositionChangedEventListeners()
Removes all position changed event listeners.void
removeAllRightClickEventListeners()
Removes all right click event listener.void
removeClickEventListener(ClickEvent.ClickEventListener clickEventListener)
Removes a click event listener.void
removePositionChangedEventListener(PositionChangedEvent.PositionChangedEventListener positionChangedEventListener)
Removes position changed event listener.void
removeRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)
Removes a right click event listener.void
setClickableNode(boolean clickable)
Sets if the node can receives mouse events.void
setDraggableNode(boolean draggable)
Sets if the node can be dragged.void
setNodeLabel(String label)
Sets the node label.void
setNodeTitle(String title)
Sets the node title.void
setNodeVisible(boolean visible)
If true, the node is visible.void
setPlayAnimation(boolean playAnimation)
Sets true to play animation.void
setPosition(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.
-
-