net.sf.latexdraw.glib.handlers
Class ArcAngleHandler

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

public class ArcAngleHandler
extends Handler<java.awt.geom.Rectangle2D>

Defines a handler that changes the start/end angle of an arc.

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  boolean start
          Defines if the handled angle is the starting or the ending angle.
 
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
ArcAngleHandler(boolean start)
          Creates and initialises an arc angle handler.
 
Method Summary
 void updateFromArc(IArc arc, double zoom)
          Updates the handler using the given arc as reference.
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

start

protected boolean start
Defines if the handled angle is the starting or the ending angle.

Constructor Detail

ArcAngleHandler

public ArcAngleHandler(boolean start)
Creates and initialises an arc angle handler.

Parameters:
start - Defines if the handled angle is the starting or the ending angle.
Since:
3.0
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.Rectangle2D>

updateFromArc

public void updateFromArc(IArc arc,
                          double zoom)
Updates the handler using the given arc as reference.

Parameters:
arc - The arc that will be used as reference.
zoom - The zoom level.
Since:
3.0