net.sf.latexdraw.glib.views.Java2D.impl
Class LRectangleView<M extends IRectangle>
java.lang.Object
net.sf.latexdraw.glib.views.AbstractView<S>
net.sf.latexdraw.glib.views.Java2D.impl.LShapeView<S>
net.sf.latexdraw.glib.views.Java2D.impl.LRectangularView<IRectangle>
net.sf.latexdraw.glib.views.Java2D.impl.LRectangleView<M>
- All Implemented Interfaces:
- IAbstractView, IViewRectangle, IViewShape, Pickable
- Direct Known Subclasses:
- LSquareView
class LRectangleView<M extends IRectangle>
- extends LRectangularView<IRectangle>
- implements IViewRectangle
Defines a view of the IRectangle 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.
02/16/2008
- Since:
- 3.0
- Author:
- Arnaud BLOUIN
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.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 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 |
LRectangleView
protected LRectangleView(IRectangle model)
- Creates an initialises the Java view of a LRect.
- Parameters:
model
- The model to view.- Since:
- 3.0
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<IRectangle>
- 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.