net.sf.latexdraw.glib.views.Java2D.impl
Class LModifiablePointsShapeView<S extends IModifiablePointsShape>

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<S>
All Implemented Interfaces:
IAbstractView, IViewModifiablePtsShape, IViewShape, Pickable
Direct Known Subclasses:
LBezierCurveView, LPolygonView

abstract class LModifiablePointsShapeView<S extends IModifiablePointsShape>
extends LShapeView<S>
implements IViewModifiablePtsShape

Defines an abstract view of the IModifiablePointsShape model.

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/18/2008

Since:
3.0
Author:
Arnaud BLOUIN

Field Summary
 
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 LModifiablePointsShapeView(S model)
          Initialises the view of a IModifiablePointsShape.
 
Method Summary
protected  void setPath(boolean close)
          Update the path of the multi-point shape.
protected  void updateDblePathInside()
          Updates the borders of the double boundary when position is inside.
protected  void updateDblePathMiddle()
          Updates the borders of the double boundary when position is middle.
protected  void updateDblePathOutside()
          Updates the borders of the double boundary when position is outside.
protected  void updateGeneralPathInside()
          Updates the borders of the shape as inside borders.
protected  void updateGeneralPathMiddle()
          Updates the borders of the shape as middle borders.
protected  void updateGeneralPathOutside()
          Updates the borders of the shape as outside borders.
 
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, paintShowPointsDots, paintShowPointsLines, 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, paintShowPointsDots, paintShowPointsLines, updateBorder, updatePath
 
Methods inherited from interface net.sf.latexdraw.glib.views.IAbstractView
getShape, update
 
Methods inherited from interface org.malai.picking.Pickable
getPicker
 

Constructor Detail

LModifiablePointsShapeView

protected LModifiablePointsShapeView(S model)
Initialises the view of a IModifiablePointsShape.

Method Detail

setPath

protected void setPath(boolean close)
Update the path of the multi-point shape.

Parameters:
close - True: the shape will be closed.
Since:
3.0

updateDblePathInside

protected void updateDblePathInside()
Description copied from class: LShapeView
Updates the borders of the double boundary when position is inside.

Specified by:
updateDblePathInside in class LShapeView<S extends IModifiablePointsShape>

updateDblePathMiddle

protected void updateDblePathMiddle()
Description copied from class: LShapeView
Updates the borders of the double boundary when position is middle.

Specified by:
updateDblePathMiddle in class LShapeView<S extends IModifiablePointsShape>

updateDblePathOutside

protected void updateDblePathOutside()
Description copied from class: LShapeView
Updates the borders of the double boundary when position is outside.

Specified by:
updateDblePathOutside in class LShapeView<S extends IModifiablePointsShape>

updateGeneralPathInside

protected void updateGeneralPathInside()
Description copied from class: LShapeView
Updates the borders of the shape as inside borders.

Specified by:
updateGeneralPathInside in class LShapeView<S extends IModifiablePointsShape>

updateGeneralPathMiddle

protected void updateGeneralPathMiddle()
Description copied from class: LShapeView
Updates the borders of the shape as middle borders.

Specified by:
updateGeneralPathMiddle in class LShapeView<S extends IModifiablePointsShape>

updateGeneralPathOutside

protected void updateGeneralPathOutside()
Description copied from class: LShapeView
Updates the borders of the shape as outside borders.

Specified by:
updateGeneralPathOutside in class LShapeView<S extends IModifiablePointsShape>