Package gov.nih.mipav.model.algorithms
Class ContourPlot.TranslatedPoint2D
- java.lang.Object
-
- java.awt.geom.Point2D
-
- gov.nih.mipav.model.algorithms.ContourPlot.TranslatedPoint2D
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- ContourPlot
public class ContourPlot.TranslatedPoint2D extends java.awt.geom.Point2DThe TranslatedPoint2D is an implementation ofPoint2Dthat references another Point2D and has a certain fixed translation from that point. When changing the location of the referenced point, this point will change accordingly.- Author:
- hageldave
-
-
Constructor Summary
Constructors Constructor Description TranslatedPoint2D(java.awt.geom.Point2D origin, double xt, double yt)Creates a newContourPlot.TranslatedPoint2Dfrom the specified point with specified translation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContourPlot.TranslatedPoint2Dclone()doublegetX()doublegetY()voidsetLocation(double x, double y)Sets the location of this point'soriginso that this point ends up at the desired location.java.lang.StringtoString()
-
-
-
Constructor Detail
-
TranslatedPoint2D
public TranslatedPoint2D(java.awt.geom.Point2D origin, double xt, double yt)Creates a newContourPlot.TranslatedPoint2Dfrom the specified point with specified translation.- Parameters:
origin- the point from which the created point is translatedxt- translation in x directionyt- translation in y direction
-
-
Method Detail
-
getX
public double getX()
- Specified by:
getXin classjava.awt.geom.Point2D
-
getY
public double getY()
- Specified by:
getYin classjava.awt.geom.Point2D
-
setLocation
public void setLocation(double x, double y)Sets the location of this point'soriginso that this point ends up at the desired location.- Specified by:
setLocationin classjava.awt.geom.Point2D
-
clone
public ContourPlot.TranslatedPoint2D clone()
- Overrides:
clonein classjava.awt.geom.Point2D
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-