com.ohrasys.cad.gds.dao
Class StructureReference

java.lang.Object
  extended by com.ohrasys.cad.gds.dao.Element
      extended by com.ohrasys.cad.gds.dao.ReferenceElement
          extended by com.ohrasys.cad.gds.dao.StructureReference
All Implemented Interfaces:
InfoProvider

public class StructureReference
extends ReferenceElement
implements InfoProvider

A structure reference data access object


Field Summary
 
Fields inherited from class com.ohrasys.cad.gds.dao.Element
i18n
 
Constructor Summary
StructureReference()
          Creates a new StructureReference object.
StructureReference(boolean external, boolean template, int group, java.lang.String name, Transform transform, java.awt.Point[] points)
          Creates a new instance of StrucureReference
StructureReference(java.lang.String name, java.awt.Point[] points)
          Creates a new StructureReference object.
StructureReference(java.lang.String name, Transform transform, java.awt.Point[] points)
          Creates a new StructureReference object.
 
Method Summary
 java.lang.String getInfo()
          Returns a textual representation of the structure reference
 java.lang.String toString()
          Returns a string representation of the structure reference
 
Methods inherited from class com.ohrasys.cad.gds.dao.ReferenceElement
getName, getTransform, setName, setTransform
 
Methods inherited from class com.ohrasys.cad.gds.dao.Element
getGroup, getPoints, getProperties, isExternal, isTemplate, setExternal, setGroup, setPoints, setProperties, setTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructureReference

public StructureReference()
Creates a new StructureReference object.


StructureReference

public StructureReference(java.lang.String name,
                          java.awt.Point[] points)
Creates a new StructureReference object.

Parameters:
name - The name of the structure reference
points - The points that define the structure reference

StructureReference

public StructureReference(java.lang.String name,
                          Transform transform,
                          java.awt.Point[] points)
Creates a new StructureReference object.

Parameters:
name - The name of the strucutre reference
transform - The transform of the structure reference
points - The points defining the structure refernce

StructureReference

public StructureReference(boolean external,
                          boolean template,
                          int group,
                          java.lang.String name,
                          Transform transform,
                          java.awt.Point[] points)
Creates a new instance of StrucureReference

Parameters:
external - The structure reference is external data
template - The structure reference is template data
group - The object group the structure reference belongs to
name - The name of the structure reference
transform - The transform of the structure reference
points - The points defining the strucutre reference
Method Detail

getInfo

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

Specified by:
getInfo in interface InfoProvider
Overrides:
getInfo in class ReferenceElement
Returns:
A textual representation of the structure reference

toString

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

Overrides:
toString in class ReferenceElement
Returns:
A string representation of the structure reference