com.dbmain.jidbm
Class DBMUserView

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMUserView

public class DBMUserView
extends DBMGenericObject

The DBMUserView class represents user view objects of the DB-MAIN repository.

A user view can have several user objects.


Field Summary
static short COMPACT
          Constant of field type: Compact textual view.
static short EXTENDED
          Constant of field type: Extended textual view.
static short GRAPH_COMPACT
          Constant of field type: Compact graphical view.
static short GRAPH_DEPENDENCY
          Constant of field type: Dependency graphical view.
static short GRAPH_STANDARD
          Constant of field type: Standard graphical view.
static short SORTED
          Constant of field type: Sorted textual view.
static short STANDARD
          Constant of field type: Standard textual view.
 
Fields inherited from class com.dbmain.jidbm.DBMGenericObject
ALLPARENTS, CLUSTER, CO_ATTRIBUTE, COLLECTION, CONNECTION, CONS_PU, CONS_RES, CONSTRAINT, CONSUMPTION, ELEMENT, ENTITY_TYPE, ENVIRONMENT, ETROUND, ETSHADOW, ETSQUARE, GRAPHCOUPLE, GROUP, HAVESEL, HIDEASSOCIATION, HIDEATT, HIDECTRLFLOW, HIDEEXTEND, HIDEGENACT, HIDEGENUC, HIDEGR, HIDEINCLUDE, HIDENEWADD, HIDENOTE, HIDEOBJFLOW, HIDEPRIMID, HIDEPROD, HIDEPU, HIDESTEREOTYPE, ISASTRAIGHT, LOCK_USED, MARK1, MARK2, MARK3, MARK4, MARK5, MEMBER_CST, META_OBJECT, META_PROPERTY, METH_USED, NN_NOTE, NOTE, PROC_UNIT, PROCESS_TITLE, PROD_SET, RE_ISA, REJECTED, REL_ELEMENT, REL_TYPE, RESOURCE, ROLE, RTROUND, RTSHADOW, RTSQUARE, SCHEMA, SELECT, SHOWTYPEATT, SI_ATTRIBUTE, STATE, SUB_TYPE, SYSTEM, TEXT, TEXT_LINE, UMLCENTER, UMLCENTERDOWN, UMLCENTERUP, UMLLEFTCENTER, UMLLEFTDOWN, UMLLEFTUP, UMLRIGHTCENTER, UMLRIGHTDOWN, UMLRIGHTUP, USER_OBJECT, USER_VIEW, WITHOUT_SELECT
 
Constructor Summary
DBMUserView(int id)
          Creates a new instance of the DBMUserView class representing the user view identified by id and the current project in DB-MAIN.
DBMUserView(int id, long sysid)
          Creates a new instance of the DBMUserView class representing the user view identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstUserObject(DBMUserObject cur)
          Adds a first user object (cur) to the current user view in the DB-MAIN repository.
 void addNextUserObject(DBMUserObject cur, DBMUserObject prev)
          Adds a user object (cur) following the user object (prev) to the current user view in the DB-MAIN repository.
 DBMUserObject createUserObject(int posx, int posy, int color, DBMGenericObject generic_object)
          Creates a new instance of user object attached to the current user view in the DB-MAIN repository.
 void deleteUserView()
          Deletes the user view of the DB-MAIN repository represented by the current DBMUserView instance.
 DBMUserObject getFirstUserObject()
          Returns the first user object of the current user view in the DB-MAIN repository.
 java.lang.String getFontName()
          Returns the font name of the current user view.
 short getFontSize()
          Returns the font size of the current user view.
 int getHighlightingPlan()
          Returns the highlighting plan of the current user view.
 DBMUserObject getLastUserObject()
          Returns the last user object of the current user view in the DB-MAIN repository.
 java.lang.String getName()
          Returns the name of the current user view.
 DBMUserObject getNextUserObject(DBMUserObject cur)
          Returns the user object (of the current user view) that follows the user object cur in the DB-MAIN repository.
 DBMUserObject getPreviousUserObject(DBMUserObject cur)
          Returns the user object (of the current user view) that precedes the user object cur in the DB-MAIN repository.
 short getReduce()
          Returns the reduce of the current user view.
 java.lang.String getTextFontName()
          Returns the text font name of the current user view.
 short getTextFontSize()
          Returns the text font size of the current user view.
 short getType()
          Returns the type of the current user view.
 java.lang.String getTypeName()
          Returns the type constant name of the current user view.
 DBMGenericObject getUserViewOwner()
          Returns the generic object of the current user view.
 int getXGrid()
          Returns the x grid of the current user view.
 int getYGrid()
          Returns the y grid of the current user view.
 short getZoom()
          Returns the zoom of the current user view.
 void removeUserObject()
          Removes the list of user object attached to the current user view in the DB-MAIN repository.
 void removeUserViewOwner()
          Removes the generic object attached to the current user view in the DB-MAIN repository.
 void setFontName(java.lang.String val)
          Updates the value of font name in the current user view in the DB-MAIN repository.
 void setFontSize(short val)
          Updates the value of font size in the current user view in the DB-MAIN repository.
 void setHighlightingPlan(int val)
          Updates the value of highlighting plan in the current user view in the DB-MAIN repository.
 void setName(java.lang.String val)
          Updates the value of name in the current user view in the DB-MAIN repository.
 void setReduce(short val)
          Updates the value of reduce in the current user view in the DB-MAIN repository.
 void setTextFontName(java.lang.String val)
          Updates the value of text font name in the current user view in the DB-MAIN repository.
 void setTextFontSize(short val)
          Updates the value of text font size in the current user view in the DB-MAIN repository.
 void setType(short val)
          Updates the value of type in the current user view in the DB-MAIN repository.
 void setXGrid(int val)
          Updates the value of x grid in the current user view in the DB-MAIN repository.
 void setYGrid(int val)
          Updates the value of y grid in the current user view in the DB-MAIN repository.
 void setZoom(short val)
          Updates the value of zoom in the current user view in the DB-MAIN repository.
 
Methods inherited from class com.dbmain.jidbm.DBMGenericObject
addFirstNoteRelation, addFirstState, addNextNoteRelation, addNextState, createNote, createNoteRelation, deleteGenericObject, equals, getFirstNoteRelation, getFirstState, getFlag, getLastNoteRelation, getLastState, getMetaPropertyBooleanListValue, getMetaPropertyBooleanValue, getMetaPropertyCharListValue, getMetaPropertyCharValue, getMetaPropertyDoubleListValue, getMetaPropertyDoubleValue, getMetaPropertyIntListValue, getMetaPropertyIntValue, getMetaPropertyListValue, getMetaPropertyStringListValue, getMetaPropertyStringValue, getMetaPropertyValue, getNextNoteRelation, getNextState, getObjectIdentifier, getObjectType, getObjectTypeName, getPreviousNoteRelation, getPreviousState, getProjectIdentifier, hashCode, isAttribute, isCluster, isCollection, isCompoundAttribute, isConcreteObject, isConnection, isConstraint, isConstraintMember, isConsumption, isDataObject, isElement, isElementRelation, isEntityRelationshipType, isEntityType, isEnvironment, isFlagConstant, isGroup, isMetaObject, isMetaProperty, isNote, isNoteRelation, isProcessingUnit, isProcessingUnitCardinality, isProduct, isProductSet, isProject, isRelationshipType, isResource, isResourceCardinality, isResourceSubType, isRole, isSchema, isSimpleAttribute, isState, isSubType, isText, isTextLine, isUserObject, isUserView, removeNoteRelation, removeState, setFlag, setFlagConstant, setMetaPropertyBooleanListValue, setMetaPropertyBooleanValue, setMetaPropertyCharListValue, setMetaPropertyCharValue, setMetaPropertyDoubleListValue, setMetaPropertyDoubleValue, setMetaPropertyIntListValue, setMetaPropertyIntValue, setMetaPropertyListValue, setMetaPropertyStringListValue, setMetaPropertyStringValue, setMetaPropertyValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPACT

public static final short COMPACT
Constant of field type: Compact textual view.

See Also:
Constant Field Values

STANDARD

public static final short STANDARD
Constant of field type: Standard textual view.

See Also:
Constant Field Values

EXTENDED

public static final short EXTENDED
Constant of field type: Extended textual view.

See Also:
Constant Field Values

SORTED

public static final short SORTED
Constant of field type: Sorted textual view.

See Also:
Constant Field Values

GRAPH_COMPACT

public static final short GRAPH_COMPACT
Constant of field type: Compact graphical view.

See Also:
Constant Field Values

GRAPH_STANDARD

public static final short GRAPH_STANDARD
Constant of field type: Standard graphical view.

See Also:
Constant Field Values

GRAPH_DEPENDENCY

public static final short GRAPH_DEPENDENCY
Constant of field type: Dependency graphical view.

See Also:
Constant Field Values
Constructor Detail

DBMUserView

public DBMUserView(int id,
                   long sysid)
Creates a new instance of the DBMUserView class representing the user view identified by id and sysid in the DB-MAIN repository.

Parameters:
id - the object identifier of a user view.
sysid - the system identifier of a user view.

DBMUserView

public DBMUserView(int id)
Creates a new instance of the DBMUserView class representing the user view identified by id and the current project in DB-MAIN.

Parameters:
id - the object identifier of a user view.
Method Detail

getName

public java.lang.String getName()
Returns the name of the current user view.

Returns:
the String value of the field name.

setName

public void setName(java.lang.String val)
Updates the value of name in the current user view in the DB-MAIN repository.

Parameters:
val - the new String value of the field Name.

getType

public short getType()
Returns the type of the current user view.

Returns:
the short value of the field type.

getTypeName

public java.lang.String getTypeName()
Returns the type constant name of the current user view.

Returns:
the string representation of the field type.

setType

public void setType(short val)
Updates the value of type in the current user view in the DB-MAIN repository.

Parameters:
val - the new short value of the field Type.

getZoom

public short getZoom()
Returns the zoom of the current user view.

Returns:
the short value of the field zoom.

setZoom

public void setZoom(short val)
Updates the value of zoom in the current user view in the DB-MAIN repository.

Parameters:
val - the new short value of the field Zoom.

getReduce

public short getReduce()
Returns the reduce of the current user view.

Returns:
the short value of the field reduce.

setReduce

public void setReduce(short val)
Updates the value of reduce in the current user view in the DB-MAIN repository.

Parameters:
val - the new short value of the field Reduce.

getXGrid

public int getXGrid()
Returns the x grid of the current user view.

Returns:
the int value of the field xGrid.

setXGrid

public void setXGrid(int val)
Updates the value of x grid in the current user view in the DB-MAIN repository.

Parameters:
val - the new int value of the field XGrid.

getYGrid

public int getYGrid()
Returns the y grid of the current user view.

Returns:
the int value of the field yGrid.

setYGrid

public void setYGrid(int val)
Updates the value of y grid in the current user view in the DB-MAIN repository.

Parameters:
val - the new int value of the field YGrid.

getFontSize

public short getFontSize()
Returns the font size of the current user view.

Returns:
the short value of the field fontSize.

setFontSize

public void setFontSize(short val)
Updates the value of font size in the current user view in the DB-MAIN repository.

Parameters:
val - the new short value of the field FontSize.

getFontName

public java.lang.String getFontName()
Returns the font name of the current user view.

Returns:
the String value of the field fontName.

setFontName

public void setFontName(java.lang.String val)
Updates the value of font name in the current user view in the DB-MAIN repository.

Parameters:
val - the new String value of the field FontName.

getTextFontSize

public short getTextFontSize()
Returns the text font size of the current user view.

Returns:
the short value of the field textFontSize.

setTextFontSize

public void setTextFontSize(short val)
Updates the value of text font size in the current user view in the DB-MAIN repository.

Parameters:
val - the new short value of the field TextFontSize.

getTextFontName

public java.lang.String getTextFontName()
Returns the text font name of the current user view.

Returns:
the String value of the field textFontName.

setTextFontName

public void setTextFontName(java.lang.String val)
Updates the value of text font name in the current user view in the DB-MAIN repository.

Parameters:
val - the new String value of the field TextFontName.

getHighlightingPlan

public int getHighlightingPlan()
Returns the highlighting plan of the current user view.

Returns:
the int value of the field highlightingPlan.

setHighlightingPlan

public void setHighlightingPlan(int val)
Updates the value of highlighting plan in the current user view in the DB-MAIN repository.

Parameters:
val - the new int value of the field HighlightingPlan.

deleteUserView

public void deleteUserView()
Deletes the user view of the DB-MAIN repository represented by the current DBMUserView instance.


createUserObject

public DBMUserObject createUserObject(int posx,
                                      int posy,
                                      int color,
                                      DBMGenericObject generic_object)
Creates a new instance of user object attached to the current user view in the DB-MAIN repository.

Parameters:
posx - the value of the field x position.
posy - the value of the field y position.
color - the value of the field color.
generic_object - the generic object linked to the created object.
Returns:
the DBMUserObject instance representing the new user object.

getFirstUserObject

public DBMUserObject getFirstUserObject()
Returns the first user object of the current user view in the DB-MAIN repository.

Overrides:
getFirstUserObject in class DBMGenericObject
Returns:
the DBMUserObject instance representing the first user object.

getLastUserObject

public DBMUserObject getLastUserObject()
Returns the last user object of the current user view in the DB-MAIN repository.

Overrides:
getLastUserObject in class DBMGenericObject
Returns:
the DBMUserObject instance representing the last user object.

getNextUserObject

public DBMUserObject getNextUserObject(DBMUserObject cur)
Returns the user object (of the current user view) that follows the user object cur in the DB-MAIN repository.

Overrides:
getNextUserObject in class DBMGenericObject
Parameters:
cur - the current user object.
Returns:
the DBMUserObject instance representing the next user object.

getPreviousUserObject

public DBMUserObject getPreviousUserObject(DBMUserObject cur)
Returns the user object (of the current user view) that precedes the user object cur in the DB-MAIN repository.

Overrides:
getPreviousUserObject in class DBMGenericObject
Parameters:
cur - the current user object.
Returns:
the DBMUserObject instance representing the previous user object.

addFirstUserObject

public void addFirstUserObject(DBMUserObject cur)
Adds a first user object (cur) to the current user view in the DB-MAIN repository.

Overrides:
addFirstUserObject in class DBMGenericObject
Parameters:
cur - the added user object.

addNextUserObject

public void addNextUserObject(DBMUserObject cur,
                              DBMUserObject prev)
Adds a user object (cur) following the user object (prev) to the current user view in the DB-MAIN repository.

Overrides:
addNextUserObject in class DBMGenericObject
Parameters:
cur - the added user object.
prev - the user object after which the user object cur is inserted.

removeUserObject

public void removeUserObject()
Removes the list of user object attached to the current user view in the DB-MAIN repository.

Overrides:
removeUserObject in class DBMGenericObject

getUserViewOwner

public DBMGenericObject getUserViewOwner()
Returns the generic object of the current user view.

Returns:
the DBMGenericObject instance representing the generic object.

removeUserViewOwner

public void removeUserViewOwner()
Removes the generic object attached to the current user view in the DB-MAIN repository.