Enterprise Information Portal APIs

com.ibm.mm.sdk.common
Class DKAnnotationV4

java.lang.Object
  |
  +--com.ibm.mm.sdk.common.DKAnnotationV4
All Implemented Interfaces:
dkAnnotationExt, dkExtension, java.io.Serializable

public class DKAnnotationV4
extends java.lang.Object
implements dkAnnotationExt, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
DKAnnotationV4()
          Constructs a new DKAnnotationV4 object.
DKAnnotationV4(DKAnnotationV4 aDKAnnotationV4)
          Copy constructor.
DKAnnotationV4(int partId, int pageNumber, short Xcoordinate, short Ycoordinate)
          Constructs a new DKAnnotationV4 object with input parameters.
 
Method Summary
 boolean equals(DKAnnotationV4 aDKAnnotationV4)
          Compares this object with the parameter object.
 java.lang.String getName()
          Gets the name of this annotation object
 int getPageNumber()
          Gets the page number that this annotation object refers to.
 int getPart()
          Gets the part Id of the associated object
 short getX()
          Gets the X coordinate on the page that this annotation object refers to.
 short getY()
          Gets the Y coordinate on the page that this annotation object refers to.
 void setName(java.lang.String extName)
          Sets the name of this annotation object
 void setPageNumber(int aPageNumber)
          Sets the page number that this annotation object refers to.
 void setPart(int aPartId)
          Sets the part Id of the associated object, only positive values are valid.
 void setX(short aXcoordinate)
          Sets the X coordinate on the page that this annotation object refers to.
 void setY(short aYcoordinate)
          Sets the Y coordinate on the page that this annotation object refers to.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DKAnnotationV4

public DKAnnotationV4()
Constructs a new DKAnnotationV4 object.
Parameters:
none -  

DKAnnotationV4

public DKAnnotationV4(int partId,
                      int pageNumber,
                      short Xcoordinate,
                      short Ycoordinate)
Constructs a new DKAnnotationV4 object with input parameters.
Parameters:
partId - the part ID of the associated object
pageNumber - the page number this annotation object refers to
Xcoordinate - the x coordinate on the page that this annotation object refers to
Ycoordinate - the y coordinate on the page that this annotation object refers to

DKAnnotationV4

public DKAnnotationV4(DKAnnotationV4 aDKAnnotationV4)
Copy constructor.
Parameters:
aDKAnnotationV4 - the DKAnnotationV4 object to be copied from
Method Detail

getName

public java.lang.String getName()
                         throws java.lang.Exception
Gets the name of this annotation object
Specified by:
getName in interface dkExtension
Returns:
the name of this object
Throws:
java.lang.Exception - if error detected

setName

public void setName(java.lang.String extName)
             throws java.lang.Exception
Sets the name of this annotation object
Specified by:
setName in interface dkExtension
Parameters:
extName - the name of this annotation object
Throws:
java.lang.Exception - if error detected

setPageNumber

public void setPageNumber(int aPageNumber)
Sets the page number that this annotation object refers to.
Specified by:
setPageNumber in interface dkAnnotationExt
Parameters:
aPageNumber - the page number

getPageNumber

public int getPageNumber()
Gets the page number that this annotation object refers to.
Specified by:
getPageNumber in interface dkAnnotationExt
Returns:
the page number

setX

public void setX(short aXcoordinate)
Sets the X coordinate on the page that this annotation object refers to.
Specified by:
setX in interface dkAnnotationExt
Parameters:
aXcoordinate - the X coordinate

getX

public short getX()
Gets the X coordinate on the page that this annotation object refers to.
Specified by:
getX in interface dkAnnotationExt
Returns:
the X coordinate

setY

public void setY(short aYcoordinate)
Sets the Y coordinate on the page that this annotation object refers to.
Specified by:
setY in interface dkAnnotationExt
Parameters:
aYcoordinate - the Y coordinate

getY

public short getY()
Gets the Y coordinate on the page that this annotation object refers to.
Specified by:
getY in interface dkAnnotationExt
Returns:
the Y coordinate

setPart

public void setPart(int aPartId)
Sets the part Id of the associated object, only positive values are valid.
Parameters:
aPartId - the part Id

getPart

public int getPart()
Gets the part Id of the associated object
Returns:
the part Id

equals

public boolean equals(DKAnnotationV4 aDKAnnotationV4)
Compares this object with the parameter object.
Parameters:
aDKAnnotationV4 - the DKAnnotationV4 object to be compared with
Returns:
true if both objects have the same value for each data member; false otherwise.

EIP Java APIs

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.