com.ohrasys.cad.gds.dao
Class Box

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

public class Box
extends GeometryElement
implements InfoProvider

A box element data access object


Field Summary
 
Fields inherited from class com.ohrasys.cad.gds.dao.Element
i18n
 
Constructor Summary
Box()
          Creates a new instance of Boundary
Box(boolean external, boolean template, int group, int layer, int datatype, java.awt.Point[] points)
          Creates a new Box object.
Box(int layer, java.awt.Point[] points)
          Creates a new Box object.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of the box
 
Methods inherited from class com.ohrasys.cad.gds.dao.GeometryElement
getDatatype, getInfo, getLayer, setDatatype, setLayer
 
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
 
Methods inherited from interface com.ohrasys.cad.gds.dao.InfoProvider
getInfo
 

Constructor Detail

Box

public Box()
Creates a new instance of Boundary


Box

public Box(int layer,
           java.awt.Point[] points)
Creates a new Box object.

Parameters:
layer - The layer of the box
points - The points defining the box

Box

public Box(boolean external,
           boolean template,
           int group,
           int layer,
           int datatype,
           java.awt.Point[] points)
Creates a new Box object.

Parameters:
external - The box is external data
template - The box is template data
group - The object group the box belongs to
layer - The layer of the box
datatype - The data type of the box
points - The points defining the box
Method Detail

toString

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

Overrides:
toString in class GeometryElement
Returns:
A string representation of the box