Interface MapEdge
-
- All Known Implementing Classes:
FeatureEdge,GoogleMapEdge
public interface MapEdgeEdge 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.voidaddPathChangedEventListener(PathChangedEvent.PathChangedEventListener pathChangedEventListener)Adds a path changed event listener.voidaddRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)Adds a right click event listener.voidcomputeLength(List<GeoCoordinate> controlPoints, Consumer<Double> consumerLength)Computes edge length.booleangetClickableEdge()Gets if the edge can receives mouse events.StringgetEdgeLabel()Gets the edge label.voidgetEdgeLabelPosition(Consumer<GeoCoordinate> consumerEdgeLabelPosition)Gets the label position.booleangetEdgeVisible()If true, the edge is visible.booleangetEditableEdge()Gets if the edge can be edited.DoublegetLength()Gets the edge length.booleangetPlayAnimation()Gets if animation is played.BusinessObjectViewEdgegetViewEdge()Gets the view edge.voidremoveAllClickEventListeners()Removes all click event listener.voidremoveAllPathChangedEventListeners()Removes all path changed event listener.voidremoveAllRightClickEventListeners()Removes all right click event listener.voidremoveClickEventListener(ClickEvent.ClickEventListener clickEventListener)Removes a click event listener.voidremovePathChangedEventListener(PathChangedEvent.PathChangedEventListener pathChangedEventListener)Removes a path changed event listener.voidremoveRightClickEventListener(RightClickEvent.RightClickEventListener rightClickEventListener)Removes a right click event listener.voidsetClickableEdge(boolean clickable)Sets if the edge can receives mouse events.voidsetControlPoints(List<GeoCoordinate> controlPoints)Sets the edge control points.voidsetEdgeLabel(String label)Sets the edge label.voidsetEdgeVisible(boolean visible)If true, the edge is visible.voidsetEditableEdge(boolean editable)Sets if the edge can be edited.voidsetLength(Double length)Sets the edge length.voidsetPlayAnimation(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.
-
-