|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModifiablePointsShape
Defines an interface for shapes that contain modifiable points.
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/02/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 interface net.sf.latexdraw.glib.models.interfaces.IShape |
---|
GOLDEN_ANGLE, PPC |
Method Summary | |
---|---|
void |
addPoint(IPoint pt)
Adds a point to the shape model. |
void |
addPoint(IPoint pt,
int position)
Adds the given point to the points list at the given position. |
IPoint |
removePoint(int position)
Removes the point at the given position. |
boolean |
removePoint(IPoint pt)
Removes the given point of the shape. |
IPoint |
replacePoint(IPoint pt,
int position)
Replaces the point at the given position by the given point. |
boolean |
setPoint(double x,
double y,
int position)
Sets the point at the given position to the given coordinate. |
boolean |
setPoint(IPoint p,
int position)
Sets the point at the given position to the given coordinate. |
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 |
Method Detail |
---|
void addPoint(IPoint pt)
pt
- The point to add. Must be valid.void addPoint(IPoint pt, int position)
pt
- The point to add.position
- The position of insertion (-1 corresponds to the last point).boolean removePoint(IPoint pt)
pt
- The point to remove.
IPoint removePoint(int position)
position
- The position of the point to remove (-1 corresponds to the last point).
boolean setPoint(IPoint p, int position)
p
- The new position of the wanted point.position
- The position of the point to move in the points list (-1 corresponds to the last point).
boolean setPoint(double x, double y, int position)
x
- The new X-coordinate. The model is not updated!y
- The new Y-coordinate.position
- The position of the point to move in the points list (-1 corresponds to the last point).
IPoint replacePoint(IPoint pt, int position)
pt
- The new point. Must not be a point of the shape.position
- The position of the point to remove (-1 corresponds to the last point).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |