|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IControlPointShape
Defines an interface that classes defining a shape, containg control points, should implement.
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/03/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 | |
---|---|
static int |
DEFAULT_BALANCE_GAP
The default balance gap used to balance all the points of the bézier curve. |
static int |
DEFAULT_POSITION_CTRL
The default position gap of control points against their reference point. |
Fields inherited from interface net.sf.latexdraw.glib.models.interfaces.IShape |
---|
GOLDEN_ANGLE, PPC |
Method Summary | |
---|---|
void |
balance()
Balances all the control points in order the create a rounded shape. |
int |
getBalanceGap()
|
IPoint |
getFirstCtrlPtAt(int position)
|
java.util.List<IPoint> |
getFirstCtrlPts()
|
IPoint |
getSecondCtrlPtAt(int position)
|
java.util.List<IPoint> |
getSecondCtrlPts()
|
void |
setBalanceGap(int balanceGap)
|
void |
setXFirstCtrlPt(double x,
int id)
Sets the X-coordinate of one of the first control point. |
void |
setXSecondCtrlPt(double x,
int id)
Sets the X-coordinate of one of the second control point. |
void |
setYFirstCtrlPt(double y,
int id)
Sets the Y-coordinate of one of the first control point. |
void |
setYSecondCtrlPt(double y,
int id)
Sets the Y-coordinate of one of the second control point. |
void |
updateSecondControlPoints()
Updates the second control points by using the first control points. |
Methods inherited from interface net.sf.latexdraw.glib.models.interfaces.IModifiablePointsShape |
---|
addPoint, addPoint, removePoint, removePoint, replacePoint, setPoint, setPoint |
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 |
Field Detail |
---|
static final int DEFAULT_POSITION_CTRL
static final int DEFAULT_BALANCE_GAP
Method Detail |
---|
void balance()
int getBalanceGap()
void setBalanceGap(int balanceGap)
balanceGap
- the balanceGap to set.IPoint getFirstCtrlPtAt(int position)
position
- The position of the wanted points (-1 for the last point).
IPoint getSecondCtrlPtAt(int position)
position
- The position of the wanted points (-1 for the last point).
void updateSecondControlPoints()
void setXFirstCtrlPt(double x, int id)
x
- The new X-coordinate.id
- The position of the point to set.void setYFirstCtrlPt(double y, int id)
y
- The new Y-coordinate.id
- The position of the point to set.void setXSecondCtrlPt(double x, int id)
x
- The new X-coordinate.id
- The position of the point to set.void setYSecondCtrlPt(double y, int id)
y
- The new Y-coordinate.id
- The position of the point to set.java.util.List<IPoint> getFirstCtrlPts()
java.util.List<IPoint> getSecondCtrlPts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |