|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.common.NFPoint
public class NFPoint
NFPoint provides storage for X/Y values as either double precision numbers or Dates.
Field Summary | |
---|---|
static double |
DEFAULT_X
The default x value used. |
static double |
DEFAULT_Y
The default y value used. |
Constructor Summary | |
---|---|
NFPoint()
Constructs a default NFPoint with X and Y set to 0.0 |
|
NFPoint(java.util.Date x,
java.util.Date y)
Constructs an NFPoint using Date objects. |
|
NFPoint(double x,
double y)
Constructs an NFPoint using double values. |
|
NFPoint(int x,
int y)
Constructs an NFPoint using int values. |
|
NFPoint(NFPoint p)
Constructs a new NFPoint object with the X/Y values in the NFPoint argument. |
|
NFPoint(java.awt.Point p)
Constructs an NFPoint using values in a java.awt.Point object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Protected method to clone this editable |
java.lang.String |
getCDL()
Return the CDL for this object |
void |
getCDL(java.lang.StringBuffer sb,
boolean includeParens)
Append CDL parameters representing this point to the given StringBuffer. |
double |
getX()
Gets the x coordinate of the Note as a double. |
java.util.Date |
getXAsDate()
Gets the x coordinate of the Note as a Date or null if not defined. |
java.lang.Object |
getXObject()
Gets the x coordinate of the Note in object form (either a Date or Double or null if not defined.) |
double |
getY()
Gets the y coordinate of the Note as a double. |
java.util.Date |
getYAsDate()
Gets the y coordinate of the Note as a Date or null if not defined. |
java.lang.Object |
getYObject()
Gets the y coordinate of the Note in object form (either a Date or Double or null if not defined.) |
void |
setCDL(java.lang.String cdl)
Set the CDL for this object |
void |
setX(java.util.Date x)
Sets the x coordinate of the Note. |
void |
setX(double x)
Sets the x coordinate of the Note. |
void |
setX(java.lang.Object x)
Sets the x coordinate of the Note. |
void |
setY(java.util.Date y)
Sets the y coordinate of the Note. |
void |
setY(double y)
Sets the y coordinate of the Note. |
void |
setY(java.lang.Object y)
Sets the y coordinate of the Note. |
Methods inherited from class netcharts.pro.common.NFBaseClass |
---|
getModified, getUserObject, setModified, setUserObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface netcharts.pro.common.NFCDLGenerator |
---|
toString |
Field Detail |
---|
public static double DEFAULT_X
public static double DEFAULT_Y
Constructor Detail |
---|
public NFPoint()
public NFPoint(NFPoint p)
public NFPoint(double x, double y)
double
values.
public NFPoint(java.awt.Point p)
public NFPoint(int x, int y)
int
values.
public NFPoint(java.util.Date x, java.util.Date y)
Date
objects.
Method Detail |
---|
public void setX(java.lang.Object x)
x
- The x coordinate.public void setX(java.util.Date x)
x
- The x coordinate.public void setX(double x)
x
- The x coordinate.public void setY(java.lang.Object y)
y
- The y coordinate.public void setY(java.util.Date y)
y
- The y coordinate.public void setY(double y)
y
- The y coordinate.public double getX()
public double getY()
public java.lang.Object getXObject()
public java.lang.Object getYObject()
public java.util.Date getXAsDate()
public java.util.Date getYAsDate()
public java.lang.String getCDL()
NFCDLGenerator
getCDL
in interface NFCDLGenerator
public void getCDL(java.lang.StringBuffer sb, boolean includeParens)
sb
- Target buffer to append the CDL parametersincludeParens
- If true, this will cause the parameters to be delimited
with parenthesis.public void setCDL(java.lang.String cdl)
NFCDLGenerator
setCDL
in interface NFCDLGenerator
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
NFBaseClass
clone
in class NFBaseClass
java.lang.CloneNotSupportedException
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |