public class SLinkBezier extends SLinkArc implements XJXMLSerializable
| Modifier and Type | Field and Description |
|---|---|
protected Vector2D[] |
controlPointsAbs |
protected Vector2D[] |
controlPointsRel |
protected Vector2D |
labelPositionAbs |
protected Vector2D |
labelPositionRel |
protected static int |
MODE_END |
protected static int |
MODE_NOSTRETCH |
protected static int |
MODE_STRETCH |
protected Vector2D |
oldEnd |
protected Vector2D |
oldStart |
protected Vector2D |
originalEndPointOffset |
protected double |
originalZLength |
protected double |
x0 |
protected double |
x1 |
protected double |
y0 |
protected double |
y1 |
arrow, arrowVisible, color, direction, end, endDirection, endOffset, endTangentOffset, endWithOffset, flateness, label, selfLoop, start, startDirection, startOffset, startTangentOffset, startWithOffset| Constructor and Description |
|---|
SLinkBezier() |
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
absToRel(Vector2D p) |
void |
bspline(Graphics g)
This method comes from:
Code used from BSpline.java (c) Leen Ammeraal with its authorization (see e-mail below)
http://home.wxs.nl/~ammeraal/grjava.html
Hello Jean,
Thank you for your interest in my program Bspline.java.
|
boolean |
contains(double x,
double y) |
void |
draw(Graphics2D g) |
void |
drawShape(Graphics2D g) |
Rect |
getFrame() |
void |
lines(Graphics g)
Debug method used to print only the control points
|
Vector2D |
relToAbs(Vector2D p,
int mode) |
void |
setControlPoints(Vector2D[] points) |
void |
setLabelPosition(Vector2D position) |
void |
update() |
contains, setFlatenessByMouse, setMouse, setMouse, setMousePositioncomputeOffsets, getArrow, getColor, getDirection, getEnd, getEndDirection, getEndOffset, getEndTangentOffset, getEndWithOffset, getFlateness, getLabel, getStart, getStartDirection, getStartOffset, getStartTangentOffset, getStartWithOffset, isLabelVisible, isSelfLoop, setArrow, setArrowVisible, setColor, setDirection, setEnd, setEnd, setEnd, setEndAnchor, setEndDirection, setEndOffset, setEndTangentOffset, setFlateness, setLabel, setLabel, setLabelColor, setLabelVisible, setSelfLoop, setStart, setStart, setStartAnchor, setStartDirection, setStartOffset, setStartTangentOffsetprotected Vector2D[] controlPointsAbs
protected Vector2D labelPositionAbs
protected Vector2D[] controlPointsRel
protected Vector2D labelPositionRel
protected Vector2D oldStart
protected Vector2D oldEnd
protected Vector2D originalEndPointOffset
protected double originalZLength
protected double x0
protected double y0
protected double x1
protected double y1
protected static final int MODE_END
protected static final int MODE_NOSTRETCH
protected static final int MODE_STRETCH
public void setControlPoints(Vector2D[] points)
public void setLabelPosition(Vector2D position)
public void draw(Graphics2D g)
public void drawShape(Graphics2D g)
public void lines(Graphics g)
public void bspline(Graphics g)
Copyright © 2013. All rights reserved.