public abstract class Layer
extends java.lang.Object
Constructor and Description |
---|
Layer() |
Modifier and Type | Method and Description |
---|---|
void |
add(DrawObject crv) |
void |
clear() |
boolean |
contains(DrawObject crv) |
void |
draw(java.awt.Graphics2D g2) |
DrawObject |
get(int index) |
java.awt.Stroke |
getStroke() |
boolean |
getVisible() |
double |
getXScale()
gets the scaling factor in the x direction
|
double |
getYScale()
gets the scaling factor in the Y direction
|
boolean |
isEmpty() |
DrawObject |
remove(int index) |
void |
setScale(double x,
double y)
Scale the graph.
|
void |
setStroke(java.awt.Stroke s) |
void |
setVisible(boolean b) |
int |
size() |
public void add(DrawObject crv)
crv
- public void clear()
public boolean contains(DrawObject crv)
crv
- public DrawObject get(int index)
index
- public boolean isEmpty()
public DrawObject remove(int index)
index
- public int size()
public void setScale(double x, double y)
x
- y
- public double getXScale()
public double getYScale()
public void setStroke(java.awt.Stroke s)
s
- public java.awt.Stroke getStroke()
public void setVisible(boolean b)
b
- public boolean getVisible()
public void draw(java.awt.Graphics2D g2)
g2
-