|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.metaqtl.graph.AnchoredElement
org.metaqtl.graph.Layer
public abstract class Layer
Field Summary | |
---|---|
protected double |
height
The height of the layer. |
protected double |
width
The width of the layer. |
Fields inherited from class org.metaqtl.graph.AnchoredElement |
---|
x, y |
Constructor Summary | |
---|---|
Layer(double x,
double y)
Creates a layer without any width and heigth constraints which upper left corner will be located at the point (x,y). |
Method Summary | |
---|---|
abstract void |
attach(java.lang.Object object)
Attach the given object to the layer. |
abstract void |
build(java.awt.Graphics2D graph)
Build the layer. |
abstract void |
draw(java.awt.Graphics2D graph)
Draws the layer on the given graph context. |
double |
getHeight()
|
double |
getWidth()
|
abstract double |
getYMax()
|
abstract double |
getYMin()
|
Methods inherited from class org.metaqtl.graph.AnchoredElement |
---|
getX, getY, setX, setY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double width
protected double height
Constructor Detail |
---|
public Layer(double x, double y)
x
- the abscisse of the upper left corner of the layer.y
- the ordinate of the upper left corner of the layer.Method Detail |
---|
public abstract void attach(java.lang.Object object)
object
to the layer.
object
- the object to attach to the layer.public abstract void build(java.awt.Graphics2D graph)
public abstract void draw(java.awt.Graphics2D graph)
graph
context.
graph
- public double getHeight()
public double getWidth()
public abstract double getYMin()
public abstract double getYMax()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |