|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.util.DefaultMutableValue2D
public class DefaultMutableValue2D
General purpose value object that obeys the Value2D and
Value2DSettable contracts.

| Constructor Summary | |
|---|---|
protected |
DefaultMutableValue2D(double x,
double y)
Creates a new DefaultMutableValue2D for the specified data. |
| Method Summary | |
|---|---|
static DefaultMutableValue2D |
create()
Creates a new DefaultMutableValue2D with x and y
both equal to 0. |
static DefaultMutableValue2D |
create(double[] coordinates)
Creates a new DefaultMutableValue2D for the specified array data. |
static DefaultMutableValue2D |
create(double x,
double y)
Creates a new DefaultMutableValue2D for the specified data. |
static DefaultMutableValue2D |
create(java.awt.geom.Point2D prototype)
Creates a new DefaultMutableValue2D whose x and y
data correspond to the specified Point2D's x and
y coordinates. |
static DefaultMutableValue2D |
create(YPoint prototype)
Creates a new DefaultMutableValue2D whose x and y
data correspond to the specified YPoint's x and
y coordinates. |
static Value2D |
createView(java.awt.geom.Point2D point)
Creates a read-only view of the specified Point2D. |
static Value2D |
createView(YPoint point)
Creates a read-only view of the specified YPoint. |
double |
getX()
Returns the value object's x data. |
double |
getY()
Returns the value object's y data. |
void |
setX(double x)
Specifies the value object's x data. |
void |
setY(double y)
Specifies the value object's y data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultMutableValue2D(double x,
double y)
x - the x datay - the y data| Method Detail |
|---|
public double getX()
x data.
getX in interface Value2Dx data.public void setX(double x)
x data.
setX in interface Value2DSettablex - the x datapublic double getY()
y data.
getY in interface Value2Dy data.public void setY(double y)
y data.
setY in interface Value2DSettabley - the y data
public static DefaultMutableValue2D create(double x,
double y)
x - the x datay - the y data
public static DefaultMutableValue2D create(double[] coordinates)
x data,
Its second element is interpreted as y data.
coordinates - an array holding at least two elements
public static DefaultMutableValue2D create(YPoint prototype)
x and y
data correspond to the specified YPoint's x and
y coordinates.
prototype - the YPoint
x and y
data correspond to the specified YPoint's
x and y coordinates.public static DefaultMutableValue2D create(java.awt.geom.Point2D prototype)
x and y
data correspond to the specified Point2D's x and
y coordinates.
prototype - the Point2D
x and y
data correspond to the specified Point2D's
x and y coordinates.public static DefaultMutableValue2D create()
x and y
both equal to 0.
x and y
both equal to 0.public static Value2D createView(java.awt.geom.Point2D point)
Point2D.
Point2D.public static Value2D createView(YPoint point)
YPoint.
YPoint.
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||