public class GLine extends DrawObject
| Constructor and Description | 
|---|
| GLine() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(Marker mrk) | 
| void | addXShift(double x)This method adds the specified shift to the existing one | 
| void | addYShift(double y)This method adds the specified shift tp the existing one | 
| boolean | contains(Marker mrk) | 
| void | draw(java.awt.Graphics2D g2)(non-Javadoc) | 
| Marker | get(int i) | 
| double | getXShift() | 
| double | getYShift() | 
| int | indexOf(Marker mrk) | 
| boolean | isEmpty() | 
| void | remove(Marker mrk) | 
| void | reset()This will delete all the points and reset the paramneters to its default
 values. | 
| void | setXShift(double x)This method sets parameter which determines by how much the whole line
 should be shifted by along the x axis. | 
| void | setYShift(double y)This method sets parameter which determines by how much the whole line
 should be shifted by along the y axis. | 
| int | size() | 
public void add(Marker mrk)
mrk - : marker details storedpublic Marker get(int i)
i - : loop controllerpublic void setXShift(double x)
x - public void addXShift(double x)
x - public double getXShift()
public void setYShift(double y)
y - public void addYShift(double y)
y - public double getYShift()
public void reset()
reset in class DrawObjectpublic boolean contains(Marker mrk)
mrk - public int indexOf(Marker mrk)
mrk - public boolean isEmpty()
public void remove(Marker mrk)
mrk - public int size()
public void draw(java.awt.Graphics2D g2)
draw in class DrawObjectgraph.DrawObject#draw(java.awt.Graphics2D)