Interface MapEdge
-
- All Known Implementing Classes:
FeatureEdge
,GoogleMapEdge
public interface MapEdge
Edge 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
addPathChangedEventListener(PathChangedEvent.PathChangedEventListener pathChangedEventListener)
Adds a path changed event listener.void
addRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)
Adds a right click event listener.void
computeLength(List<GeoCoordinate> controlPoints, Consumer<Double> consumerLength)
Computes edge length.boolean
getClickableEdge()
Gets if the edge can receives mouse events.String
getEdgeLabel()
Gets the edge label.void
getEdgeLabelPosition(Consumer<GeoCoordinate> consumerEdgeLabelPosition)
Gets the label position.boolean
getEdgeVisible()
If true, the edge is visible.boolean
getEditableEdge()
Gets if the edge can be edited.Double
getLength()
Gets the edge length.boolean
getPlayAnimation()
Gets if animation is played.BusinessObjectViewEdge
getViewEdge()
Gets the view edge.void
removeAllClickEventListeners()
Removes all click event listener.void
removeAllPathChangedEventListeners()
Removes all path changed event listener.void
removeAllRightClickEventListeners()
Removes all right click event listener.void
removeClickEventListener(ClickEvent.ClickEventListener clickEventListener)
Removes a click event listener.void
removePathChangedEventListener(PathChangedEvent.PathChangedEventListener pathChangedEventListener)
Removes a path changed event listener.void
removeRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)
Removes a right click event listener.void
setClickableEdge(boolean clickable)
Sets if the edge can receives mouse events.void
setControlPoints(List<GeoCoordinate> controlPoints)
Sets the edge control points.void
setEdgeLabel(String label)
Sets the edge label.void
setEdgeVisible(boolean visible)
If true, the edge is visible.void
setEditableEdge(boolean editable)
Sets if the edge can be edited.void
setLength(Double length)
Sets the edge length.void
setPlayAnimation(boolean playAnimation)
Sets true to play animation.
-
-
-
Method Detail
-
getViewEdge
BusinessObjectViewEdge getViewEdge()
Gets the view edge.- Returns:
- the view edge.
-
getEdgeLabel
String getEdgeLabel()
Gets the edge label.- Returns:
- Edge label.
-
setEdgeLabel
void setEdgeLabel(String label)
Sets the edge label.- Parameters:
label
- Edge label.
-
setControlPoints
void setControlPoints(List<GeoCoordinate> controlPoints)
Sets the edge control points.- Parameters:
controlPoints
- The edge control points.
-
getClickableEdge
boolean getClickableEdge()
Gets if the edge can receives mouse events.- Returns:
- If true, the edge can receives mouse events.
-
setClickableEdge
void setClickableEdge(boolean clickable)
Sets if the edge can receives mouse events.- Parameters:
clickable
- True to receives mouse events.
-
getEditableEdge
boolean getEditableEdge()
Gets if the edge can be edited.- Returns:
- If true, the edge can be edited.
-
setEditableEdge
void setEditableEdge(boolean editable)
Sets if the edge can be edited.- Parameters:
editable
- True to edit the edge.
-
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.
-
getEdgeLabelPosition
void getEdgeLabelPosition(Consumer<GeoCoordinate> consumerEdgeLabelPosition)
Gets the label position.
-
getEdgeVisible
boolean getEdgeVisible()
If true, the edge is visible.- Returns:
- If true, the edge is visible.
-
setEdgeVisible
void setEdgeVisible(boolean visible)
If true, the edge is visible.- Parameters:
visible
- If true, the edge is visible.
-
getLength
Double getLength()
Gets the edge length.- Returns:
- The edge length.
-
setLength
void setLength(Double length)
Sets the edge length.
-
computeLength
void computeLength(List<GeoCoordinate> controlPoints, Consumer<Double> consumerLength)
Computes edge length.- Parameters:
consumerLength
- Accepted on compute length end.controlPoints
- Set of control points.
-
addClickEventListener
void addClickEventListener(ClickEvent.ClickEventListener clickEventListener)
Adds a click event listener.- Parameters:
clickEventListener
- Callback executed on edge click.
-
removeClickEventListener
void removeClickEventListener(ClickEvent.ClickEventListener clickEventListener)
Removes a click event listener.- Parameters:
clickEventListener
- Callback executed on edge 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 edge right click.
-
removeRightClickEventListener
void removeRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)
Removes a right click event listener.- Parameters:
rightClickEventListener
- Callback executed on edge right click.
-
removeAllRightClickEventListeners
void removeAllRightClickEventListeners()
Removes all right click event listener.
-
addPathChangedEventListener
void addPathChangedEventListener(PathChangedEvent.PathChangedEventListener pathChangedEventListener)
Adds a path changed event listener.- Parameters:
pathChangedEventListener
- Callback executed on edge path changed.
-
removePathChangedEventListener
void removePathChangedEventListener(PathChangedEvent.PathChangedEventListener pathChangedEventListener)
Removes a path changed event listener.- Parameters:
pathChangedEventListener
- Callback executed on edge path changed.
-
removeAllPathChangedEventListeners
void removeAllPathChangedEventListeners()
Removes all path changed event listener.
-
-