Package com.cosylab.vdct.db
Class DBMacro
- java.lang.Object
-
- com.cosylab.vdct.db.DBComment
-
- com.cosylab.vdct.db.DBMacro
-
public class DBMacro extends DBComment
- Author:
- Matej
-
-
Field Summary
Fields Modifier and Type Field Description protected Color
color
protected int
defaultVisibility
protected String
description
protected boolean
hasVisual
protected boolean
isNamePositionNorth
protected int
mode
protected String
name
protected int
x
protected int
y
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getColor()
Returns the color.int
getDefaultVisibility()
Returns the defaultVisibility.String
getDescription()
Returns the description.int
getMode()
Returns the mode.String
getName()
Returns the name.int
getX()
Returns the x.int
getY()
Returns the y.boolean
isHasVisual()
Returns the hasVisual.boolean
isNamePositionNorth()
Returns the position of the text.void
setColor(Color color)
Sets the color.void
setDefaultVisibility(int defaultVisibility)
Sets the defaultVisibility.void
setDescription(String description)
Sets the description.void
setHasVisual(boolean hasVisual)
Sets the hasVisual.void
setMode(int mode)
Sets the mode.void
setName(String name)
Sets the name.void
setNamePositionNorth(boolean namePositionNorth)
Sets the position of the text (if namePositionNorth is true, text is on the top of the macro otherwise it is on the side).void
setX(int x)
Sets the x.void
setY(int y)
Sets the y.-
Methods inherited from class com.cosylab.vdct.db.DBComment
getComment, setComment
-
-
-
-
Field Detail
-
name
protected String name
-
description
protected String description
-
hasVisual
protected boolean hasVisual
-
x
protected int x
-
y
protected int y
-
isNamePositionNorth
protected boolean isNamePositionNorth
-
mode
protected int mode
-
defaultVisibility
protected int defaultVisibility
-
color
protected Color color
-
-
Constructor Detail
-
DBMacro
public DBMacro(String name)
Insert the method's description here.- Parameters:
name
- name
-
-
Method Detail
-
getName
public String getName()
Returns the name.- Returns:
- String
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- The name to set
-
getDescription
public String getDescription()
Returns the description.- Returns:
- String
-
setDescription
public void setDescription(String description)
Sets the description.- Parameters:
description
- The description to set
-
getColor
public Color getColor()
Returns the color.- Returns:
- java.awt.Color
-
isHasVisual
public boolean isHasVisual()
Returns the hasVisual.- Returns:
- boolean
-
getX
public int getX()
Returns the x.- Returns:
- int
-
getY
public int getY()
Returns the y.- Returns:
- int
-
setColor
public void setColor(Color color)
Sets the color.- Parameters:
color
- The color to set
-
setHasVisual
public void setHasVisual(boolean hasVisual)
Sets the hasVisual.- Parameters:
hasVisual
- The hasVisual to set
-
setX
public void setX(int x)
Sets the x.- Parameters:
x
- The x to set
-
setY
public void setY(int y)
Sets the y.- Parameters:
y
- The y to set
-
getMode
public int getMode()
Returns the mode.- Returns:
- int
-
setMode
public void setMode(int mode)
Sets the mode.- Parameters:
mode
- The mode to set
-
getDefaultVisibility
public int getDefaultVisibility()
Returns the defaultVisibility.- Returns:
- int
-
setDefaultVisibility
public void setDefaultVisibility(int defaultVisibility)
Sets the defaultVisibility.- Parameters:
defaultVisibility
- The defaultVisibility to set
-
setNamePositionNorth
public void setNamePositionNorth(boolean namePositionNorth)
Sets the position of the text (if namePositionNorth is true, text is on the top of the macro otherwise it is on the side).- Parameters:
namePositionNorth
- namePositionNorth
-
isNamePositionNorth
public boolean isNamePositionNorth()
Returns the position of the text.- Returns:
- something
-
-