Class Handle

    • Constructor Detail

      • Handle

        public Handle()
      • Handle

        public Handle​(Point2D point)
      • Handle

        @Deprecated
        public Handle​(Point2D point,
                      com.google.gwt.dom.client.Style.Cursor cursor,
                      String text)
        Deprecated.
        Use Handle(Point 2D point, String cursor, String text) instead. To easily convert, just add .getCssname() to this method's cursor parameter.
    • Method Detail

      • setPoint

        public void setPoint​(Point2D point)
      • getPoint

        public Point2D getPoint()
      • getText

        public String getText()
      • createGesture

        protected Gesture createGesture​(PointedEditEvent e)
        Overwrite this to use default Gesture mechanism defined in onMousePressed
        Parameters:
        e - A mouse event.
        Returns:
        null.
      • isSelectionPoint

        public boolean isSelectionPoint​(Point2D mousePointDocp,
                                        int tolleranceDocp)
      • getHandleColor

        protected Color getHandleColor()
      • getHandleBorderColor

        protected Color getHandleBorderColor()
      • getBorderSizeInPercent

        protected double getBorderSizeInPercent()
        Return the percent value which determines the border width depending on the handle radius. Default is 25, which means the border width will be 25% of the handle radius.
        Returns:
        the percent value
      • render

        public void render​(com.levigo.jadice.web.client.util.internal.graphics.JadiceGraphics graphics)
      • render

        protected void render​(com.levigo.jadice.web.client.util.internal.graphics.JadiceGraphics graphics,
                              Point2D position,
                              Color handleColor)