|
||||||||||
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
abstract class LPositionShape
Defines a model of a shape that has a position.
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 |
LPositionShape(boolean isUniqueID,
IPoint pt)
Creates a LPositionShape with a predefined point. |
Method Summary | |
---|---|
IPoint |
getPosition()
|
double |
getX()
|
double |
getY()
|
void |
setPosition(double x,
double y)
Sets the position of the shape (the bottom-left point of the shape). |
void |
setPosition(IPoint pt)
Sets the position of the shape (the bottom-left point of the shape). |
void |
setX(double x)
Sets the X coordinate of the shape (of the bottom-left point of the shape). |
void |
setY(double y)
Sets the Y coordinate of the shape (of the bottom-left point of the shape). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 LPositionShape(boolean isUniqueID, IPoint pt)
isUniqueID
- True: the shape will have a unique ID.pt
- The position. If pt is not valid, a point at position (0,0) is used.Method Detail |
---|
public void setPosition(IPoint pt)
IPositionShape
setPosition
in interface IPositionShape
pt
- The new position of the shape.public void setPosition(double x, double y)
IPositionShape
setPosition
in interface IPositionShape
x
- The X coordinate of the new position of the shape.y
- The Y coordinate of the new position of the shape.public void setX(double x)
IPositionShape
setX
in interface IPositionShape
x
- The X coordinate of the shape.public void setY(double y)
IPositionShape
setY
in interface IPositionShape
y
- The Y coordinate of the shape.public IPoint getPosition()
getPosition
in interface IPositionShape
public double getX()
getX
in interface IPositionShape
public double getY()
getY
in interface IPositionShape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |