net.sf.latexdraw.glib.views.Java2D.impl
Class LBezierCurveView

java.lang.Object
  extended by net.sf.latexdraw.glib.views.AbstractView<S>
      extended by net.sf.latexdraw.glib.views.Java2D.impl.LShapeView<S>
          extended by net.sf.latexdraw.glib.views.Java2D.impl.LModifiablePointsShapeView<IBezierCurve>
              extended by net.sf.latexdraw.glib.views.Java2D.impl.LBezierCurveView
All Implemented Interfaces:
IAbstractView, IViewBezierCurve, IViewModifiablePtsShape, IViewShape, Pickable

 class LBezierCurveView
extends LModifiablePointsShapeView<IBezierCurve>
implements IViewBezierCurve

Defines a view of the model IBeziershape.

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.

03/01/08

Version:
3.0
Author:
Arnaud BLOUIN

Field Summary
static java.awt.BasicStroke STROKE_CTRL_LINES
           
 
Fields inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LShapeView
arrows, border, path
 
Fields inherited from class net.sf.latexdraw.glib.views.AbstractView
shape
 
Constructor Summary
protected LBezierCurveView(IBezierCurve model)
          Creates an initialises the Java view of a LBeziershape.
 
Method Summary
private  void fillCircle(java.awt.geom.Ellipse2D ell, IPoint pt, double width, java.awt.Graphics2D g)
           
private  void paintLine(java.awt.geom.Line2D line, IPoint pt1, IPoint pt2, java.awt.Graphics2D g)
           
 void paintShowPointsDots(java.awt.Graphics2D g)
          Paints the dots of the option 'show points'.
 void paintShowPointsLines(java.awt.Graphics2D g)
          Paints the lines of the option 'show points'.
protected  void setPath(boolean close)
          Update the path of the multi-point shape.
 
Methods inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LModifiablePointsShapeView
updateDblePathInside, updateDblePathMiddle, updateDblePathOutside, updateGeneralPathInside, updateGeneralPathMiddle, updateGeneralPathOutside
 
Methods inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LShapeView
beginRotation, contains, contains, endRotation, flush, getBorder, getPath, getPicker, getRotatedShape2D, getRotatedShape2D, getStroke, getStrokeThickness, intersects, paint, paintArrows, paintBorders, paintFilling, paintShadow, update, updateBorder, updatePath, updatePathArrows
 
Methods inherited from class net.sf.latexdraw.glib.views.AbstractView
getShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.latexdraw.glib.views.Java2D.interfaces.IViewShape
contains, contains, flush, getBorder, getPath, getRotatedShape2D, getStroke, intersects, paint, paintBorders, paintFilling, paintShadow, updateBorder, updatePath
 
Methods inherited from interface net.sf.latexdraw.glib.views.IAbstractView
getShape, update
 
Methods inherited from interface org.malai.picking.Pickable
getPicker
 

Field Detail

STROKE_CTRL_LINES

public static final java.awt.BasicStroke STROKE_CTRL_LINES
Constructor Detail

LBezierCurveView

protected LBezierCurveView(IBezierCurve model)
Creates an initialises the Java view of a LBeziershape.

Parameters:
model - The model to view.
Since:
3.0
Method Detail

paintShowPointsDots

public void paintShowPointsDots(java.awt.Graphics2D g)
Description copied from interface: IViewShape
Paints the dots of the option 'show points'.

Specified by:
paintShowPointsDots in interface IViewShape
Overrides:
paintShowPointsDots in class LShapeView<IBezierCurve>
Parameters:
g - The graphics.

fillCircle

private void fillCircle(java.awt.geom.Ellipse2D ell,
                        IPoint pt,
                        double width,
                        java.awt.Graphics2D g)

paintLine

private void paintLine(java.awt.geom.Line2D line,
                       IPoint pt1,
                       IPoint pt2,
                       java.awt.Graphics2D g)

paintShowPointsLines

public void paintShowPointsLines(java.awt.Graphics2D g)
Description copied from interface: IViewShape
Paints the lines of the option 'show points'.

Specified by:
paintShowPointsLines in interface IViewShape
Overrides:
paintShowPointsLines in class LShapeView<IBezierCurve>
Parameters:
g - The graphics.

setPath

protected void setPath(boolean close)
Description copied from class: LModifiablePointsShapeView
Update the path of the multi-point shape.

Overrides:
setPath in class LModifiablePointsShapeView<IBezierCurve>
Parameters:
close - True: the shape will be closed.