Package com.orange.links.client.shapes
Class FunctionShape
- java.lang.Object
-
- com.orange.links.client.shapes.AbstractShape
-
- com.orange.links.client.shapes.FunctionShape
-
- All Implemented Interfaces:
com.orange.links.client.shapes.Drawable
,com.orange.links.client.shapes.Shape
public class FunctionShape extends AbstractShape
Override to remove the change of style tuding selection
-
-
Constructor Summary
Constructors Constructor Description FunctionShape(DiagramController controller, com.google.gwt.user.client.ui.Widget widget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw()
void
drawHighlight()
com.orange.links.client.utils.Couple<com.orange.links.client.utils.Direction,com.orange.links.client.shapes.Point>
getSelectableArea(com.orange.links.client.shapes.Point p)
com.google.gwt.user.client.ui.Widget
getWidget()
void
highlightSelectableArea(com.orange.links.client.shapes.Point mousePoint)
boolean
isMouseNearSelectableArea(com.orange.links.client.shapes.Point mousePoint)
void
setSynchronized(boolean sync)
-
Methods inherited from class com.orange.links.client.shapes.AbstractShape
addConnection, allowSynchronized, asWidget, equals, getConnections, getHeight, getLeft, getTop, getWidth, hashCode, isSynchronized, removeConnection, setAllowSynchronized
-
-
-
-
Constructor Detail
-
FunctionShape
public FunctionShape(DiagramController controller, com.google.gwt.user.client.ui.Widget widget)
-
-
Method Detail
-
getWidget
public com.google.gwt.user.client.ui.Widget getWidget()
-
setSynchronized
public void setSynchronized(boolean sync)
- Specified by:
setSynchronized
in interfacecom.orange.links.client.shapes.Drawable
- Overrides:
setSynchronized
in classAbstractShape
-
isMouseNearSelectableArea
public boolean isMouseNearSelectableArea(com.orange.links.client.shapes.Point mousePoint)
-
highlightSelectableArea
public void highlightSelectableArea(com.orange.links.client.shapes.Point mousePoint)
-
getSelectableArea
public com.orange.links.client.utils.Couple<com.orange.links.client.utils.Direction,com.orange.links.client.shapes.Point> getSelectableArea(com.orange.links.client.shapes.Point p)
-
drawHighlight
public void drawHighlight()
-
draw
public void draw()
-
-