|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.latexdraw.glib.models.impl.LShape
net.sf.latexdraw.glib.models.impl.LPositionShape
net.sf.latexdraw.glib.models.impl.LRectangularShape
net.sf.latexdraw.glib.models.impl.LRhombus
class LRhombus
Defines a model of a rhombus.
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.
07/05/2009
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape |
---|
IShape.BorderPos, IShape.FillingStyle, IShape.LineStyle, IShape.Position |
Field Summary |
---|
Fields inherited from class net.sf.latexdraw.glib.models.impl.LShape |
---|
arrows, bordersPosition, dashSepBlack, dashSepWhite, dbleBordCol, dbleBordSep, dotSep, fillingCol, fillingStyle, gradAngle, gradColEnd, gradColStart, gradMidPt, hasDbleBord, hasShadow, hatchingsAngle, hatchingsCol, hatchingsSep, hatchingsWidth, id, lineColour, lineStyle, modified, opacity, points, rotationAngle, shadowAngle, shadowCol, shadowSize, showPts, thickness |
Fields inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape |
---|
GOLDEN_ANGLE, PPC |
Constructor Summary | |
---|---|
protected |
LRhombus(boolean uniqueID)
Creates a rhombus at the position (0,0). |
protected |
LRhombus(IPoint pos,
double width,
double height,
boolean uniqueID)
Creates a rhombus. |
protected |
LRhombus(IPoint tl,
IPoint br,
boolean uniqueID)
Creates a rhombus. |
Method Summary | |
---|---|
IRhombus |
duplicate()
Creates a duplicate of the shape (however id are not the same). |
Methods inherited from class net.sf.latexdraw.glib.models.impl.LRectangularShape |
---|
getHeight, getWidth, isBordersMovable, isDbleBorderable, isFillable, isInteriorStylable, isLineStylable, isShadowable, isThicknessable, setHeight, setWidth |
Methods inherited from class net.sf.latexdraw.glib.models.impl.LPositionShape |
---|
getPosition, getX, getY, setPosition, setPosition, setX, setY |
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.models.interfaces.IRectangularShape |
---|
getHeight, getWidth, setHeight, setWidth |
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IPositionShape |
---|
getPosition, getX, getY, setPosition, setPosition, setX, setY |
Methods inherited from interface org.malai.properties.Modifiable |
---|
isModified, setModified |
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IArrowable |
---|
getArrowInset, getArrowLength, getArrowSizeDim, getArrowSizeNum, getBracketNum, getDotSizeDim, getDotSizeNum, getRBracketNum, getTBarSizeDim, getTBarSizeNum, setArrowInset, setArrowLength, setArrowSizeDim, setArrowSizeNum, setBracketNum, setDotSizeDim, setDotSizeNum, setRBracketNum, setTBarSizeDim, setTBarSizeNum |
Constructor Detail |
---|
protected LRhombus(boolean uniqueID)
uniqueID
- True: the rhombus will have a unique ID.protected LRhombus(IPoint pos, double width, double height, boolean uniqueID)
pos
- The north-west point of the rhombus.width
- The width of the rhombus.height
- The height of the rhombus.uniqueID
- True: the rhombus will have a unique ID.
java.lang.IllegalArgumentException
- If the width or the height is not valid.protected LRhombus(IPoint tl, IPoint br, boolean uniqueID)
tl
- The top left point of the rhombus.br
- The bottom right point of the rhombus.uniqueID
- True: the rhombus will have a unique ID.Method Detail |
---|
public IRhombus duplicate()
IShape
duplicate
in interface IRhombus
duplicate
in interface IShape
duplicate
in class LShape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |