net.sf.latexdraw.glib.handlers
Class CtrlPointHandler

java.lang.Object
  extended by net.sf.latexdraw.glib.handlers.Handler<java.awt.geom.Ellipse2D>
      extended by net.sf.latexdraw.glib.handlers.CtrlPointHandler
All Implemented Interfaces:
IHandler, Pickable

public class CtrlPointHandler
extends Handler<java.awt.geom.Ellipse2D>

Defines a handler that moves a control point (for Bézier curves).

This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

08/28/11

Version:
3.0
Author:
Arnaud BLOUIN

Field Summary
protected  int indexPt
          The index of the point in its shape.
 
Fields inherited from class net.sf.latexdraw.glib.handlers.Handler
colour, opacity, point, shape, size
 
Fields inherited from interface net.sf.latexdraw.glib.handlers.IHandler
DEFAULT_SIZE
 
Constructor Summary
CtrlPointHandler(int indexPt)
          Creates the handler.
 
Method Summary
 int getIndexPt()
           
protected  void updateShape()
          Updates the Java2D shape of the handler.
 
Methods inherited from class net.sf.latexdraw.glib.handlers.Handler
contains, getCentre, getColour, getOpacity, getPicker, getSize, getX, getY, paint, setOpacity, setPoint, setSize, toString, update, updateFromShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

indexPt

protected int indexPt
The index of the point in its shape.

Constructor Detail

CtrlPointHandler

public CtrlPointHandler(int indexPt)
Creates the handler.

Parameters:
indexPt - The index of the point in its shape.
Method Detail

updateShape

protected void updateShape()
Description copied from class: Handler
Updates the Java2D shape of the handler.

Specified by:
updateShape in class Handler<java.awt.geom.Ellipse2D>

getIndexPt

public int getIndexPt()
Returns:
The index of the point in its shape.
Since:
3.0