com.ohrasys.cad.gds.dao
Class Path

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.Path
All Implemented Interfaces:
InfoProvider

public class Path
extends GeometryElement
implements InfoProvider

A path data access object


Field Summary
 
Fields inherited from class com.ohrasys.cad.gds.dao.Element
i18n
 
Constructor Summary
Path()
          Creates a new Path object.
Path(boolean external, boolean template, int group, int layer, int datatype, int pathtype, int width, int startExtension, int endExtension, java.awt.Point[] points)
          Creates a new Path object.
Path(int layer, int width, java.awt.Point[] points)
          Creates a new Path object.
 
Method Summary
 int getEndExtension()
          Getter for property endExtension.
 java.lang.String getInfo()
          Returns a textual representation of the path
 int getPathtype()
          Getter for property pathtype.
 int getStartExtension()
          Getter for property startExtension.
 int getWidth()
          Getter for property width.
 void setEndExtension(int endExtension)
          Setter for property endExtension.
 void setPathtype(int pathtype)
          Setter for property pathtype.
 void setStartExtension(int startExtension)
          Setter for property startExtension.
 void setWidth(int width)
          Setter for property width.
 java.lang.String toString()
          Returns a string representation of the path
 
Methods inherited from class com.ohrasys.cad.gds.dao.GeometryElement
getDatatype, 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
 

Constructor Detail

Path

public Path()
Creates a new Path object.


Path

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

Parameters:
layer - The layer of the path
width - The width of the path
points - The points defining the path

Path

public Path(boolean external,
            boolean template,
            int group,
            int layer,
            int datatype,
            int pathtype,
            int width,
            int startExtension,
            int endExtension,
            java.awt.Point[] points)
Creates a new Path object.

Parameters:
external - The path is external data
template - The path is template data
group - The object group of the path
layer - The layer of the path
datatype - The datatype of the path
pathtype - The pathtype of the path
width - The width of the path
startExtension - The start extension of the path
endExtension - The end extension of the path
points - The points defining the path
Method Detail

getEndExtension

public int getEndExtension()
Getter for property endExtension.

Returns:
Value of property endExtension.

getInfo

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

Specified by:
getInfo in interface InfoProvider
Overrides:
getInfo in class GeometryElement
Returns:
A textual representation of the path

getPathtype

public int getPathtype()
Getter for property pathtype.

Returns:
Value of property pathtype.

getStartExtension

public int getStartExtension()
Getter for property startExtension.

Returns:
Value of property startExtension.

getWidth

public int getWidth()
Getter for property width.

Returns:
Value of property width.

setEndExtension

public void setEndExtension(int endExtension)
Setter for property endExtension.

Parameters:
endExtension - New value of property endExtension.

setPathtype

public void setPathtype(int pathtype)
Setter for property pathtype.

Parameters:
pathtype - New value of property pathtype.

setStartExtension

public void setStartExtension(int startExtension)
Setter for property startExtension.

Parameters:
startExtension - New value of property startExtension.

setWidth

public void setWidth(int width)
Setter for property width.

Parameters:
width - New value of property width.

toString

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

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