public final class VMap extends DbMap
VMap class.
| Constructor and Description |
|---|
VMap(int id,
String name,
String background,
String owner,
String accessMode,
String userLastModifies,
float scale,
int offsetX,
int offsetY,
String type,
int width,
int height)
Constructor for VMap.
|
VMap(String mapName)
Create a new VMap with empty name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(VElement ve)
addElement
|
void |
addElements(List<VElement> elems)
addElements
|
void |
addElements(VElement[] ve)
addElements
|
void |
addLink(VLink link)
addLink
|
void |
addLinks(List<VLink> links)
addLinks
|
boolean |
containsElement(int id,
String type)
containsElement
|
boolean |
containsLink(VLink link)
containsLink
|
String |
getCreateTimeString()
Getter for the field
createTimeString. |
VElement |
getElement(int id,
String type)
getElement
|
VElement |
getElement(String elementid) |
Map<String,VElement> |
getElements()
Getter for the field
elements. |
String |
getLastModifiedTimeString()
Getter for the field
lastModifiedTimeString. |
List<VLink> |
getLinks()
Getter for the field
links. |
List<VLink> |
getLinksOnElement(int id,
String type)
getLinksOnElement
|
boolean |
isNew()
isNew
|
int |
linksize()
linksize
|
void |
removeAllElements()
removeAllElements
|
void |
removeAllLinks()
removeAllLinks
|
VElement |
removeElement(int id,
String type)
removeElement
|
void |
removeElements(int[] ids,
String type)
removeElements
|
VLink |
removeLink(VLink link)
removeLink
|
List<VLink> |
removeLinksOnElementList(int id,
String type)
removeLinksOnElementList
|
void |
setAccessMode(String accessMode)
Setter for the field
accessMode. |
void |
setBackground(String background)
Setter for the field
background. |
void |
setCreateTime(Timestamp createTime)
Setter for the field
createTime. |
void |
setCreateTimeString(String createTimeString)
Setter for the field
createTimeString. |
void |
setHeight(int height)
Setter for the field
height. |
void |
setLastModifiedTime(Timestamp lastModifiedTime)
Setter for the field
lastModifiedTime. |
void |
setLastModifiedTimeString(String lastModifiedTimeString)
Setter for the field
lastModifiedTimeString. |
void |
setName(String name)
Setter for the field
name. |
void |
setOffsetX(int offsetX)
Setter for the field
offsetX. |
void |
setOffsetY(int offsetY)
Setter for the field
offsetY. |
void |
setOwner(String owner)
Setter for the field
owner. |
void |
setScale(float scale)
Setter for the field
scale. |
void |
setType(String type)
Setter for the field
type. |
void |
setUserLastModifies(String userLastModifies)
Setter for the field
userLastModifies. |
void |
setWidth(int width)
Setter for the field
width. |
int |
size()
size
|
getAccessMode, getBackground, getCreateTime, getGroup, getHeight, getId, getLastModifiedTime, getName, getOffsetX, getOffsetY, getOwner, getScale, getType, getUserLastModifies, getWidth, setAsNew, setGroup, setIdpublic VMap(String mapName)
mapName - a String object.public void addElements(VElement[] ve)
addElements
ve - an array of VElement objects.public void addElements(List<VElement> elems)
addElements
elems - a List object.public List<VLink> removeLinksOnElementList(int id, String type)
removeLinksOnElementList
public void removeElements(int[] ids,
String type)
removeElements
ids - an array of int.type - a String object.public Map<String,VElement> getElements()
Getter for the field elements.
public void removeAllElements()
removeAllElements
public void removeAllLinks()
removeAllLinks
public int size()
size
public int linksize()
linksize
public boolean containsElement(int id,
String type)
containsElement
id - a int.type - a String object.public boolean containsLink(VLink link)
containsLink
link - a VLink object.public void setAccessMode(String accessMode)
Setter for the field accessMode.
setAccessMode in class DbMapaccessMode - The accessMode to set.public void setBackground(String background)
Setter for the field background.
setBackground in class DbMapbackground - The background to set.public void setCreateTime(Timestamp createTime)
Setter for the field createTime.
setCreateTime in class DbMapcreateTime - The createTime to set.public void setLastModifiedTime(Timestamp lastModifiedTime)
Setter for the field lastModifiedTime.
setLastModifiedTime in class DbMaplastModifiedTime - The lastModifiedTime to set.public void setName(String name)
Setter for the field name.
public void setOffsetX(int offsetX)
Setter for the field offsetX.
setOffsetX in class DbMapoffsetX - The offsetX to set.public void setOffsetY(int offsetY)
Setter for the field offsetY.
setOffsetY in class DbMapoffsetY - The offsetY to set.public void setOwner(String owner)
Setter for the field owner.
public void setScale(float scale)
Setter for the field scale.
public void setType(String type)
Setter for the field type.
public void setWidth(int width)
Setter for the field width.
public void setHeight(int height)
Setter for the field height.
public void setUserLastModifies(String userLastModifies)
Setter for the field userLastModifies.
setUserLastModifies in class DbMapuserLastModifies - The userLastModifies to set.public String getCreateTimeString()
Getter for the field createTimeString.
String object.public void setCreateTimeString(String createTimeString)
Setter for the field createTimeString.
createTimeString - a String object.public String getLastModifiedTimeString()
Getter for the field lastModifiedTimeString.
String object.Copyright © 2015. All rights reserved.