Class UTranslate
- java.lang.Object
-
- net.sourceforge.plantuml.ugraphic.UTranslate
-
-
Constructor Summary
Constructors Constructor Description UTranslate()UTranslate(double dx, double dy)UTranslate(XPoint2D p)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XRectangle2Dapply(XRectangle2D rect)UTranslatecompose(UTranslate other)static UTranslatedx(double dx)static UTranslatedy(double dy)doublegetDx()doublegetDy()XPoint2DgetPosition()XDimension2DgetTranslated(XDimension2D dim)XPoint2DgetTranslated(XPoint2D p)booleanisAlmostSame(UTranslate other)UTranslatemultiplyBy(double v)static UTranslatenone()UTranslatereverse()UTranslatescaled(double scale)UTranslatesym()java.lang.StringtoString()
-
-
-
Constructor Detail
-
UTranslate
public UTranslate(double dx, double dy)
-
UTranslate
public UTranslate(XPoint2D p)
-
UTranslate
public UTranslate()
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
none
public static UTranslate none()
-
dx
public static UTranslate dx(double dx)
-
dy
public static UTranslate dy(double dy)
-
getDx
public double getDx()
-
getDy
public double getDy()
-
isAlmostSame
public boolean isAlmostSame(UTranslate other)
-
getTranslated
public XDimension2D getTranslated(XDimension2D dim)
-
scaled
public UTranslate scaled(double scale)
-
compose
public UTranslate compose(UTranslate other)
-
reverse
public UTranslate reverse()
-
apply
public XRectangle2D apply(XRectangle2D rect)
-
multiplyBy
public UTranslate multiplyBy(double v)
-
sym
public UTranslate sym()
-
getPosition
public XPoint2D getPosition()
-
-