Constructor and Description |
---|
DrawObject() |
DrawObject(java.awt.Paint p) |
DrawObject(java.lang.String s) |
DrawObject(java.lang.String s,
java.awt.Paint p) |
Modifier and Type | Method and Description |
---|---|
abstract void |
draw(java.awt.Graphics2D g2) |
java.lang.String |
getName()
This gets the name of the curve.
|
java.awt.Paint |
getPaint()
This gets the color in which the curve is being painted.
|
double |
getXScale()
gets the scaling factor in the x direction
|
double |
getYScale()
gets the scaling factor in the Y direction
|
void |
reset()
This method will reset the curve to empty.
|
void |
setName(java.lang.String s)
This sets the name of the curve.
|
void |
setPaint(java.awt.Paint p) |
void |
setScale(double x,
double y)
Scale the graph.
|
public DrawObject()
public DrawObject(java.awt.Paint p)
p
- : color detailspublic DrawObject(java.lang.String s)
s
- : paint color detailspublic DrawObject(java.lang.String s, java.awt.Paint p)
public void setScale(double x, double y)
x
- : sets the x coordinatesy
- : seta the y coordinatespublic double getXScale()
public double getYScale()
public void reset()
public void setPaint(java.awt.Paint p)
p
- : This sets the color in which the curve should be painted.public java.awt.Paint getPaint()
public void setName(java.lang.String s)
s
- public java.lang.String getName()
public abstract void draw(java.awt.Graphics2D g2)
g2
-