|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.util.ModelMan
the model manager this class manage all the objects,UIs around models
Method Summary | |
static void |
addAssociation(ConceptualModel pMerise,
Association pAssoc)
Function used to paste an association when using the clipboard |
static Association |
addAssociation(ConceptualModel pMerise,
java.awt.Point p)
Add an association |
static AssociationLink |
addAssociationLink(ConceptualModel pMerise,
AssociationLink pAssocLink)
Add an associationLink |
static Constraint |
addConstraint(PhysicalModel pDatabase,
Constraint pConstraint)
Add a constraint |
static void |
addCurrentObject(BaseObject pCurrentObject)
Define the current selected object |
static void |
addEntity(ConceptualModel pMerise,
Entity pEntity)
Function used to paste an entity when using the clipboard |
static Entity |
addEntity(ConceptualModel pMerise,
java.awt.Point p)
Conveniency method for the ConceptualView.java to add an entity. |
static void |
addInheritanceLink(BaseModel pModel,
InheritanceLink pInheritanceLink)
Conveniency method for the ConceptualView.java to add an InheritanceLink. |
static void |
addLabel(BaseModel pModel,
Label lbl)
Method to add a label |
static void |
addLabel(BaseModel pModel,
java.awt.Point p)
method for the ModelView to add a label |
static Table |
addTable(PhysicalModel pDatabase,
java.awt.Point p)
Add a new table |
static void |
addTable(PhysicalModel pDatabase,
Table pTable)
Function used by to create (using the popup menu) or paste a new table |
static void |
delete()
Delete an object when using the action 'Delete' on the popup menu |
static BaseModel |
getCurrentModel()
Get the current model |
static BaseObject |
getCurrentObject()
Return the first selected object |
static java.util.Vector |
getCurrentObjects()
Return the current selected object |
static BaseObject |
getDraggedObject()
get the dragged object |
static BaseObject |
getDropTargetObject()
get the drop target object |
static java.lang.String |
getJavaName(java.lang.String schemaName)
Converts a database schema name to java object name. |
static java.util.Vector |
getModels()
Return the list of models |
static BaseClass |
getObjectToResize()
Get the object currently being resized |
static void |
moveCurrentObjects(int xi,
int yi)
Move all selected objects and log it |
static void |
newConceptualDatamodel(ConceptualModel pMerise)
Create a new Conceptual Data Model |
static void |
newObject(java.awt.Point p)
Add an object when using the action 'New' on the popup menu |
static void |
newPhysicalDatamodel(PhysicalModel pDatabase)
Create a new Physical Data Model |
static void |
removeLabel(BaseModel pModel,
Label pLabel)
Remove a label from a model |
static void |
removeModel(BaseModel pNOModel)
get rid of a model |
static void |
removeTable(PhysicalModel pDatabase,
Table t)
Remove a table from a database |
static void |
resetActionLocations()
Description of the Method |
static void |
resetCurrentObjects()
Return the current selected object |
static void |
resizeCurrentObject(int xi,
int yi)
Resize all currents objects and log it. |
static void |
resizeModelObjects(BaseModel pModel)
Compute best size for classes and best positions for links |
static void |
setCurrentModel(BaseModel pNOModel)
Define the current model |
static void |
setCurrentObject(BaseObject pCurrentObject)
Define the current selected object |
static void |
setDraggedObject(BaseObject pDraggedObject)
Define the current dragged object |
static void |
setDropTargetObject(BaseObject pDropTargetObject)
Define the current Drop Target Object |
static void |
setObjectToResize(BaseClass pObjectToResize)
Define the object currently being resized |
static void |
verify(BaseModel pModel)
Call the right verifier according to the model type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void newConceptualDatamodel(ConceptualModel pMerise)
pMerise
- the Conceptual Data Modelpublic static Entity addEntity(ConceptualModel pMerise, java.awt.Point p)
pMerise
- the CMp
- point
public static void addEntity(ConceptualModel pMerise, Entity pEntity)
pMerise
- the modelpEntity
- the entitypublic static void addAssociation(ConceptualModel pMerise, Association pAssoc)
pMerise
- the modelpAssoc
- the associationpublic static Association addAssociation(ConceptualModel pMerise, java.awt.Point p)
pMerise
- the modelp
- the point
public static AssociationLink addAssociationLink(ConceptualModel pMerise, AssociationLink pAssocLink)
pMerise
- the modelpAssocLink
- the association
public static void newPhysicalDatamodel(PhysicalModel pDatabase)
pDatabase
- the databasepublic static Table addTable(PhysicalModel pDatabase, java.awt.Point p)
pDatabase
- the databasep
- the point
public static void addTable(PhysicalModel pDatabase, Table pTable)
pDatabase
- the databasepTable
- the tablepublic static Constraint addConstraint(PhysicalModel pDatabase, Constraint pConstraint)
pDatabase
- the databsepConstraint
- the contraint
public static void addInheritanceLink(BaseModel pModel, InheritanceLink pInheritanceLink)
pModel
- the modelpInheritanceLink
- the linkpublic static void addLabel(BaseModel pModel, java.awt.Point p)
ModelView
to add a label
pModel
- the modelp
- the pointpublic static void addLabel(BaseModel pModel, Label lbl)
pModel
- the modellbl
- the labelpublic static void removeTable(PhysicalModel pDatabase, Table t)
pDatabase
- the databaset
- the tablepublic static void removeLabel(BaseModel pModel, Label pLabel)
pModel
- the modelpLabel
- the labelpublic static java.util.Vector getModels()
public static void newObject(java.awt.Point p)
p
- the pointpublic static BaseModel getCurrentModel()
public static void setCurrentModel(BaseModel pNOModel)
pNOModel
- the modellpublic static java.util.Vector getCurrentObjects()
public static BaseObject getCurrentObject()
public static void addCurrentObject(BaseObject pCurrentObject)
pCurrentObject
- the objectspublic static void setCurrentObject(BaseObject pCurrentObject)
pCurrentObject
- the" objectpublic static void resetCurrentObjects()
public static void setDraggedObject(BaseObject pDraggedObject)
pDraggedObject
- the objectpublic static BaseObject getDraggedObject()
public static void setDropTargetObject(BaseObject pDropTargetObject)
pDropTargetObject
- the objectpublic static BaseObject getDropTargetObject()
public static void setObjectToResize(BaseClass pObjectToResize)
pObjectToResize
- the objectpublic static BaseClass getObjectToResize()
public static void resizeCurrentObject(int xi, int yi)
xi
- x widthyi
- heightpublic static void moveCurrentObjects(int xi, int yi)
xi
- the delta xyi
- the delta ypublic static void resetActionLocations()
public static void delete()
public static void removeModel(BaseModel pNOModel)
pNOModel
- the modelpublic static void verify(BaseModel pModel)
pModel
- the modelpublic static void resizeModelObjects(BaseModel pModel)
pModel
- the modelpublic static java.lang.String getJavaName(java.lang.String schemaName)
schemaName
- name to be converted.
org.apache.torque.engine.database.model.NameGenerator
,
#underscoreMethod(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |