|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.miningmart.m4.core.M4Object
edu.udo.cs.miningmart.m4.core.M4Data
edu.udo.cs.miningmart.m4.core.GraphicalM4Object
This is the abstract superclass of all M4 objects that have graphical information associated with them. It handles the access to the HCI_COORD_T table.
Field Summary | |
static InterM4ObjectToObject |
graph2coord
|
Fields inherited from class edu.udo.cs.miningmart.m4.core.M4Data |
myDocumentation |
Fields inherited from class edu.udo.cs.miningmart.m4.core.M4Object |
myId, myName |
Fields inherited from interface edu.udo.cs.miningmart.m4.utils.XmlInfo |
M4_XML_VERSION, TAG_COLLECTION, TAG_DOUBLE, TAG_INTEGER, TAG_LONG, TAG_M4_ID, TAG_SHORT, TAG_STRING, TAG_XML_ID |
Fields inherited from interface edu.udo.cs.miningmart.m4.utils.M4Table |
NOT_NULL |
Constructor Summary | |
GraphicalM4Object(DB m4Db)
Constructor for GraphicalM4Object. |
Method Summary | |
protected void |
deleteLocal()
Overwrites the method in M4Object to delete the graphical info associated with this GraphicalM4Object. |
void |
deleteSoon()
Overwrites the superclass method because the coordinates that belong to this object must be deleted, too. |
Coordinates |
getCoordinates()
Active getter for this objects Coordinates |
java.util.Collection |
getDependentObjects()
This method is part of the XML-serialization and needs to be implemented by all M4Data sub-classes that need to be serialized. |
java.awt.Point |
getPoint()
Get the coordinates of this object. |
protected abstract boolean |
hasCoordinates()
Has to be implemented to indicate which classes have coordinates. |
void |
primitiveSetCoordinates(Coordinates cc)
|
void |
print()
Method to print data about this M4Object. |
void |
setCoordinatesDirty()
This method should only be used to indicate that the coordinates need to be updated in the table HCI_COORD_T . |
void |
setName(java.lang.String name)
In the current implementation the Coordinates object
refers to its GraphicalM4Object 's ID and name, so we have to make
sure that we rewrite the coordinates each time the name is changed!
|
void |
setPoint(java.awt.Point location)
Set the coordinates for this object. |
protected void |
storeLocal()
Overwrites the method in M4Object to store the graphical info associated with this GraphicalM4Object. |
Methods inherited from class edu.udo.cs.miningmart.m4.core.M4Data |
exportLocal, genericGetter, genericSetter, getDocumentation, getObjectsInNamespace, getObjectsReferencingMe, getObjectsReferencingMe, getObjectTag, getValidName, getXmlIdTag, getXmlVersion, hasDeleteStatus, importLocal, isDirty, isWaitingForDelete, primitiveGetDocObject, primitiveSetDocObject, readFromDb, readFromDbLocal, removeAllM4References, removeDocObject, removeFromDb, removeSetFromDb, setDirty, setDocumentation, setId, updateObjectsFromTable |
Methods inherited from class edu.udo.cs.miningmart.m4.core.M4Object |
compareTo, doPrint, doPrint, equals, executeBusinessSingleValueSqlRead, executeBusinessSingleValueSqlReadL, executeBusinessSqlRead, executeBusinessSqlWrite, executeM4SingleValueSqlRead, executeM4SingleValueSqlReadL, executeM4SqlRead, executeM4SqlWrite, getCasePrintObject, getId, getM4Db, getM4ObjectFromCache, getName, getNextM4SequenceValue, isNew, load, putM4ObjectToCache, replaceSpacesInName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.udo.cs.miningmart.m4.utils.XmlInfo |
doPrint, doPrint, exportLocal, genericGetter, genericSetter, getObjectTag, getXmlIdTag, getXmlInfo, getXmlVersion, importLocal |
Methods inherited from interface edu.udo.cs.miningmart.m4.M4Data |
getDocumentation, getValidName, isDirty, isWaitingForDelete, setDocumentation |
Methods inherited from interface edu.udo.cs.miningmart.m4.M4Object |
doPrint, doPrint, equals, executeBusinessSingleValueSqlRead, executeBusinessSingleValueSqlReadL, executeBusinessSqlRead, executeBusinessSqlWrite, executeM4SingleValueSqlRead, executeM4SingleValueSqlReadL, executeM4SqlRead, executeM4SqlWrite, getCasePrintObject, getId, getM4Db, getM4ObjectFromCache, getName, getNextM4SequenceValue, isNew, load, putM4ObjectToCache, replaceSpacesInName, setId |
Methods inherited from interface edu.udo.cs.miningmart.m4.utils.M4Table |
getIdAttributeName, getM4Info, getM4TableName |
Field Detail |
public static InterM4ObjectToObject graph2coord
Constructor Detail |
public GraphicalM4Object(DB m4Db)
m4Db
- Method Detail |
protected abstract boolean hasCoordinates()
public void print()
M4Object
print
in interface M4Object
print
in class M4Object
M4Object.print()
public void primitiveSetCoordinates(Coordinates cc)
public void setName(java.lang.String name)
Coordinates
object
refers to its GraphicalM4Object
's ID and name, so we have to make
sure that we rewrite the coordinates each time the name is changed!
Thus this method extends the super-method.
setName
in interface M4Object
setName
in class M4Data
M4Object.setName(String)
public void setCoordinatesDirty() throws M4Exception
HCI_COORD_T
.
M4Exception
protected void storeLocal() throws M4Exception
storeLocal
in class M4Data
M4Exception
protected void deleteLocal() throws M4Exception
deleteLocal
in class M4Data
M4Exception
public void deleteSoon() throws M4Exception
deleteSoon
in interface M4Data
deleteSoon
in class M4Data
M4Exception
public void setPoint(java.awt.Point location) throws M4Exception
GraphicalM4Object
setPoint
in interface GraphicalM4Object
M4Exception
public java.awt.Point getPoint() throws M4Exception
GraphicalM4Object
getPoint
in interface GraphicalM4Object
M4Exception
public Coordinates getCoordinates() throws M4Exception
Coordinates
Coordinates
, or null
if this
object does not have coordinates.
M4Exception
public java.util.Collection getDependentObjects() throws M4Exception
M4Data
M4Data
sub-classes that need to be serialized.
getDependentObjects
in interface XmlInfo
getDependentObjects
in class M4Data
Collection
of all M4Data
Java objects
holding a foreign key reference to this
object.
This method must never return null
.
M4Exception
M4Data.getDependentObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |