public class SVGMoveSegRep extends SVGSegRep
Modifier and Type | Field and Description |
---|---|
protected org.vectomatic.dom.svg.OMSVGPathSegMovetoAbs |
moveToSeg
The moveto component of this path segment
|
Constructor and Description |
---|
SVGMoveSegRep(IPathRepOwner owner,
org.vectomatic.dom.svg.OMSVGPathSegMovetoAbs moveToSeg) |
Modifier and Type | Method and Description |
---|---|
org.vectomatic.dom.svg.OMSVGPathSeg |
getElement() |
float |
getX() |
float |
getY() |
void |
processMouseMove(org.vectomatic.dom.svg.OMSVGPoint delta,
com.google.gwt.dom.client.Element target,
float hs,
boolean isCtrlKeyDown)
Updates the vertex, control points and tangents defining the segment
|
void |
setX(float x) |
void |
setY(float y) |
String |
toString() |
void |
update(float hs) |
void |
updateEnd(org.vectomatic.dom.svg.OMSVGPoint delta,
float hs) |
getCp1, getCp2, getNextSplineSeg, getPreviousSplineSeg, getState, getTangents, getVertex, getX1, getX2, getY1, getY2, setCp1, setCp2, setNext, setPrevious, setState, updateStart
protected org.vectomatic.dom.svg.OMSVGPathSegMovetoAbs moveToSeg
public SVGMoveSegRep(IPathRepOwner owner, org.vectomatic.dom.svg.OMSVGPathSegMovetoAbs moveToSeg)
public org.vectomatic.dom.svg.OMSVGPathSeg getElement()
getElement
in class SVGSegRep
public void updateEnd(org.vectomatic.dom.svg.OMSVGPoint delta, float hs)
public void processMouseMove(org.vectomatic.dom.svg.OMSVGPoint delta, com.google.gwt.dom.client.Element target, float hs, boolean isCtrlKeyDown)
SVGSegRep
processMouseMove
in class SVGSegRep
delta
- The translation to applytarget
- The vertex, control point or tangeant to update. null means the segment endpoint vertexhs
- The control point sizeisCtrlKeyDown
- True if the control key is pressed (spline will interpret this to preserve
the angle between tangents when a tangent control point is dragged)Copyright © 2018. All Rights Reserved.