|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.olduvai.accordiondrawer.GridCell
public class GridCell
A class representing a cell, which is a rectangular region between 2 pairs of split lines in an Accordion Drawer. A GridCell contains information about split lines on four sides of it.
AccordionDrawer
,
GridCell
Field Summary | |
---|---|
AccordionDrawer |
drawer
The accordoin drawer for this grid cell. |
protected int |
drawnFrame
Cache the last drawn frame for detecting determining when this cell was last drawn in. |
protected SplitLine[] |
maxLine
Split Lines below [ AccordionDrawer.X ] or to the right [ AccordionDrawer.Y ] of me. |
protected SplitLine[] |
minLine
Split Lines above [ AccordionDrawer.X ] or to the left [ AccordionDrawer.Y ] of me. |
Constructor Summary | |
---|---|
GridCell(AccordionDrawer drawer)
Default constructor for grid cells, sets the min and max lines to null and initializes drawer. |
Method Summary | |
---|---|
int |
getDrawnFrame()
Accessor for the last drawn frame for this cell. |
SplitLine |
getMaxLine(int xy)
Return the minimum split line in the given dimension. |
double |
getMaxSplitAbsolute(int xy)
Gets the world-space position of the maximum split line for this cell, in X or Y. |
SplitLine |
getMinLine(int xy)
Return the minimum split line in the given dimension. |
double |
getMinSplitAbsolute(int xy)
Gets the world-space position of the minimum split line for this cell, in X or Y. |
double |
getSize(int xy)
Returns the world-space size in X or Y for this cell. |
void |
setDrawBackground(boolean on)
Sets the value of AccordionDrawer.drawBackground to the parameter value. |
void |
setDrawnFrame(int i)
Updates the drawn frame drawnFrame to the given value. |
void |
setMaxLine(SplitLine maxline,
int xy)
Sets the maximum split line in the given dimension. |
void |
setMinLine(SplitLine minline,
int xy)
Sets the minimum split line in the given dimension. |
java.lang.String |
toString()
Returns a string representation for objects of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public AccordionDrawer drawer
protected SplitLine[] minLine
AccordionDrawer.X
] or to the left [ AccordionDrawer.Y
] of me.
protected SplitLine[] maxLine
AccordionDrawer.X
] or to the right [ AccordionDrawer.Y
] of me.
protected int drawnFrame
Constructor Detail |
---|
public GridCell(AccordionDrawer drawer)
drawer
- The drawer for this grid cell.Method Detail |
---|
public void setDrawBackground(boolean on)
AccordionDrawer.drawBackground
to the parameter value.
on
- The new value of AccordionDrawer.drawBackground
public double getMinSplitAbsolute(int xy)
xy
- Either AccordionDrawer.X
or AccordionDrawer.Y
.
public double getMaxSplitAbsolute(int xy)
xy
- Either AccordionDrawer.X
or AccordionDrawer.Y
.
public double getSize(int xy)
xy
- Either AccordionDrawer.X
or AccordionDrawer.Y
.
public SplitLine getMinLine(int xy)
xy
- Either AccordionDrawer.X
or AccordionDrawer.Y
.
public SplitLine getMaxLine(int xy)
xy
- Either AccordionDrawer.X
or AccordionDrawer.Y
.
public void setMaxLine(SplitLine maxline, int xy)
maxline
- The new split line for maxLine
in xyxy
- Either AccordionDrawer.X
or AccordionDrawer.Y
.public void setMinLine(SplitLine minline, int xy)
minline
- The new split line for minLine
in xyxy
- Either AccordionDrawer.X
or AccordionDrawer.Y
.public int getDrawnFrame()
drawnFrame
, the last known drawn frame for this cell.public void setDrawnFrame(int i)
drawnFrame
to the given value.
i
- The new value for drawnFrame
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |