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

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.LRectangularView<ITriangle>
              extended by net.sf.latexdraw.glib.views.Java2D.impl.LTriangleView
All Implemented Interfaces:
IAbstractView, IViewShape, Pickable

 class LTriangleView
extends LRectangularView<ITriangle>

Defines a view of the ITriangle 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/19/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 LTriangleView(ITriangle model)
          Creates an initialises the Java view of a LTriangle.
 
Method Summary
protected  void setRectangularShape(java.awt.geom.Path2D path, double tlx, double tly, double width, double height)
          Creates a rectangular shape in the given path using the given information.
 
Methods inherited from class net.sf.latexdraw.glib.views.Java2D.impl.LRectangularView
getBorderGap, getRotatedRectangle, updateBorder, 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, paintShowPointsDots, paintShowPointsLines, update, 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.IAbstractView
getShape
 

Constructor Detail

LTriangleView

protected LTriangleView(ITriangle model)
Creates an initialises the Java view of a LTriangle.

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

setRectangularShape

protected void setRectangularShape(java.awt.geom.Path2D path,
                                   double tlx,
                                   double tly,
                                   double width,
                                   double height)
Description copied from class: LRectangularView
Creates a rectangular shape in the given path using the given information. The path is not cleared.

Specified by:
setRectangularShape in class LRectangularView<ITriangle>
Parameters:
path - The path to fill.
tlx - The X-coordinate of the top-left of the rectangular shape to draw.
tly - The Y-coordinate of the top-left of the rectangular shape to draw.
width - The width of the rectangular shape.
height - The height of the rectangular shape.