com.ohrasys.cad.gds.dao
Class Element

java.lang.Object
  extended by com.ohrasys.cad.gds.dao.Element
All Implemented Interfaces:
InfoProvider
Direct Known Subclasses:
GeometryElement, ReferenceElement

public class Element
extends java.lang.Object
implements InfoProvider

An element data access object


Field Summary
protected  java.util.ResourceBundle i18n
          The resource bundle
 
Constructor Summary
Element()
          Creates a new instance of Element
Element(boolean isExternal, boolean isTemplate, int group, java.awt.Point[] points)
          Creates a new Element object.
 
Method Summary
 int getGroup()
          Getter for property group.
 java.lang.String getInfo()
          Returns a textual representation of the element
 java.awt.Point[] getPoints()
          Getter for property points.
 Property[] getProperties()
          Getter for property properties.
 boolean isExternal()
          Getter for property external.
 boolean isTemplate()
          Getter for property template.
 void setExternal(boolean external)
          Setter for property external.
 void setGroup(int group)
          Setter for property group.
 void setPoints(java.awt.Point[] points)
          Setter for property points.
 void setProperties(Property[] properties)
          Setter for property properties.
 void setTemplate(boolean template)
          Setter for property template.
 java.lang.String toString()
          Returns a string representation of the element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

i18n

protected java.util.ResourceBundle i18n
The resource bundle

Constructor Detail

Element

public Element()
Creates a new instance of Element


Element

public Element(boolean isExternal,
               boolean isTemplate,
               int group,
               java.awt.Point[] points)
Creates a new Element object.

Parameters:
isExternal - The element is external data
isTemplate - The element is template data
group - The object group the element belongs to
points - The points defining the location of the object
Method Detail

getGroup

public int getGroup()
Getter for property group.

Returns:
Value of property group.

getInfo

public java.lang.String getInfo()
Returns a textual representation of the element

Specified by:
getInfo in interface InfoProvider
Returns:
A textual representation of the element

getPoints

public java.awt.Point[] getPoints()
Getter for property points.

Returns:
Value of property points.

getProperties

public Property[] getProperties()
Getter for property properties.

Returns:
Value of property properties.

isExternal

public boolean isExternal()
Getter for property external.

Returns:
Value of property external.

isTemplate

public boolean isTemplate()
Getter for property template.

Returns:
Value of property template.

setExternal

public void setExternal(boolean external)
Setter for property external.

Parameters:
external - New value of property external.

setGroup

public void setGroup(int group)
Setter for property group.

Parameters:
group - New value of property group.

setPoints

public void setPoints(java.awt.Point[] points)
Setter for property points.

Parameters:
points - New value of property points.

setProperties

public void setProperties(Property[] properties)
Setter for property properties.

Parameters:
properties - New value of property properties.

setTemplate

public void setTemplate(boolean template)
Setter for property template.

Parameters:
template - New value of property template.

toString

public java.lang.String toString()
Returns a string representation of the element

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the element