|
ChartCat 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectli.netcat.chart.util.AbstractPart
li.netcat.chart.util.GridPart
li.netcat.chart.util.CartesianGridPart
Represents a Cartesian grid that looks for example like this:
It is possible to specify, what lines and marks should be painted. The look of the lines can be modified in the super class.
| Field Summary |
| Fields inherited from class li.netcat.chart.util.AbstractPart |
BACKGROUND, FOREGROUND, PERSPECTIVE |
| Constructor Summary | |
CartesianGridPart(CartesianGraphPart part)
Constructs a new CartesianGridPart using the given CartesianGraphPart. |
|
| Method Summary | |
void |
flipFlags()
Flips all flags, to be specific, mirrors the flags relative to x=y. |
java.lang.Object |
getBottomBorderPerspective()
Returns the perspective position of the bottom border. |
java.lang.Object |
getBottomMarkPerspective()
Returns the perspective position of the bottom marks. |
CartesianGraphPart |
getCartesianGraphPart()
Returns the graph part that defines the dimensions of this grid. |
int |
getGridIntervalX()
Returns the grid interval in X-direction. |
int |
getGridIntervalY()
Returns the grid interval in Y-direction. |
java.lang.Object |
getHorizontalLinesPerspective()
Returns the perspective position of the horizontal lines. |
Layout |
getLayout(java.awt.Graphics g)
Returns an instance of a layout that is able to report the bounds of this part and is able to paint this part. |
java.lang.Object |
getLeftBorderPerspective()
Returns the perspective position of the left border. |
java.lang.Object |
getLeftMarkPerspective()
Returns the perspective position of the left marks. |
boolean |
getPaintBottomBorder()
Returns the paint bottom border flag. |
boolean |
getPaintBottomMarks()
Returns the paint bottom marks flag. |
boolean |
getPaintHorizontalLines()
Returns the paint horizontal lines flag. |
boolean |
getPaintLeftBorder()
Returns the paint left border flag. |
boolean |
getPaintLeftMarks()
Returns the paint left marks flag. |
boolean |
getPaintRightBorder()
Returns the paint right border flag. |
boolean |
getPaintRightMarks()
Returns the paint right marks flag. |
boolean |
getPaintTopBorder()
Returns the paint top border flag. |
boolean |
getPaintTopMarks()
Returns the paint top marks flag. |
boolean |
getPaintVerticalLines()
Returns the paint vertical lines flag. |
java.lang.Object |
getRightBorderPerspective()
Returns the perspective position of the right border. |
java.lang.Object |
getRightMarkPerspective()
Returns the perspective position of the right marks. |
java.lang.Object |
getTopBorderPerspective()
Returns the perspective position of the top border. |
java.lang.Object |
getTopMarkPerspective()
Returns the perspective position of the top marks. |
java.lang.Object |
getVerticalLinesPerspective()
Returns the perspective position of the vertical lines. |
void |
setBottomBorderPerspective(java.lang.Object perspective)
Sets the perspective position of the bottom border. |
void |
setBottomMarkPerspective(java.lang.Object perspective)
Sets the perspective position of the bottom marks. |
void |
setCartesianGraphPart(CartesianGraphPart part)
Sets the graph part that defines the dimensions of this grid. |
void |
setGridIntervalX(int interval)
Sets the grid interval in X-direction. |
void |
setGridIntervalY(int interval)
Sets the grid interval in Y-direction. |
void |
setHorizontalLinesPerspective(java.lang.Object perspective)
Sets the perspective position of the horizontal lines. |
void |
setLeftBorderPerspective(java.lang.Object perspective)
Sets the perspective position of the left border. |
void |
setLeftMarkPerspective(java.lang.Object perspective)
Sets the perspective position of the left marks. |
void |
setPaintBorderFlags(boolean top,
boolean left,
boolean bottom,
boolean right)
Sets the paint flags of the border. |
void |
setPaintHorizontalLines(boolean flag)
Sets the paint horizontal lines flag. |
void |
setPaintMarksFlags(boolean top,
boolean left,
boolean bottom,
boolean right)
Sets the paint flags of the marks. |
void |
setPaintVerticalLines(boolean flag)
Sets the paint vertical lines flag. |
void |
setRightBorderPerspective(java.lang.Object perspective)
Sets the perspective position of the right border. |
void |
setRightMarkPerspective(java.lang.Object perspective)
Sets the perspective position of the right marks. |
void |
setTopBorderPerspective(java.lang.Object perspective)
Sets the perspective position of the top border. |
void |
setTopMarkPerspective(java.lang.Object perspective)
Sets the perspective position of the top marks. |
void |
setVerticalLinesPerspective(java.lang.Object perspective)
Sets the perspective position of the vertical lines. |
| Methods inherited from class li.netcat.chart.util.AbstractPart |
getChart, getPerspective, invalidate, setChart, setPerspective |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CartesianGridPart(CartesianGraphPart part)
CartesianGridPart using the given CartesianGraphPart.
part - The relevant CartesianGraphPart or null if no part is currently available.
In that case, this grid part will not be visible.| Method Detail |
public CartesianGraphPart getCartesianGraphPart()
public void setCartesianGraphPart(CartesianGraphPart part)
part - The relevant CartesianGraphPart or null if no part is currently available.
In that case, this grid part will not be visible.public boolean getPaintTopBorder()
public boolean getPaintLeftBorder()
public boolean getPaintBottomBorder()
public boolean getPaintRightBorder()
public void setPaintBorderFlags(boolean top,
boolean left,
boolean bottom,
boolean right)
true to paint the corresponding border.
top - The top border paint flag.left - The left border paint flag.bottom - The top border bottom flag.right - The right border paint flag.public java.lang.Object getTopBorderPerspective()
PerspectivePartpublic void setTopBorderPerspective(java.lang.Object perspective)
perspective - The perspective position of the top border.PerspectivePartpublic java.lang.Object getLeftBorderPerspective()
PerspectivePartpublic void setLeftBorderPerspective(java.lang.Object perspective)
perspective - The perspective position of the left border.PerspectivePartpublic java.lang.Object getBottomBorderPerspective()
PerspectivePartpublic void setBottomBorderPerspective(java.lang.Object perspective)
perspective - The perspective position of the bottom border.PerspectivePartpublic java.lang.Object getRightBorderPerspective()
PerspectivePartpublic void setRightBorderPerspective(java.lang.Object perspective)
perspective - The perspective position of the right border.PerspectivePartpublic boolean getPaintTopMarks()
public boolean getPaintLeftMarks()
public boolean getPaintBottomMarks()
public boolean getPaintRightMarks()
public void setPaintMarksFlags(boolean top,
boolean left,
boolean bottom,
boolean right)
true to paint the corresponding marks.
top - The top marks paint flag.left - The left marks paint flag.bottom - The top marks bottom flag.right - The right marks paint flag.public java.lang.Object getTopMarkPerspective()
PerspectivePartpublic void setTopMarkPerspective(java.lang.Object perspective)
perspective - The perspective position of the top marks.PerspectivePartpublic java.lang.Object getLeftMarkPerspective()
PerspectivePartpublic void setLeftMarkPerspective(java.lang.Object perspective)
perspective - The perspective position of the left marks.PerspectivePartpublic java.lang.Object getBottomMarkPerspective()
PerspectivePartpublic void setBottomMarkPerspective(java.lang.Object perspective)
perspective - The perspective position of the bottom marks.PerspectivePartpublic java.lang.Object getRightMarkPerspective()
PerspectivePartpublic void setRightMarkPerspective(java.lang.Object perspective)
perspective - The perspective position of the right marks.PerspectivePartpublic boolean getPaintHorizontalLines()
public void setPaintHorizontalLines(boolean flag)
flag - Specify true to paint the horizontal lines.public java.lang.Object getHorizontalLinesPerspective()
PerspectivePartpublic void setHorizontalLinesPerspective(java.lang.Object perspective)
perspective - The perspective position of the horizontal lines.PerspectivePartpublic boolean getPaintVerticalLines()
public void setPaintVerticalLines(boolean flag)
flag - Specify true to paint the vertical lines.public java.lang.Object getVerticalLinesPerspective()
PerspectivePartpublic void setVerticalLinesPerspective(java.lang.Object perspective)
perspective - The perspective position of the vertical lines.PerspectivePartpublic void flipFlags()
public int getGridIntervalX()
public void setGridIntervalX(int interval)
interval - The new interval, must be >=1.public int getGridIntervalY()
public void setGridIntervalY(int interval)
interval - The new interval, must be >=1.public Layout getLayout(java.awt.Graphics g)
Part
g - The relevant graphics object.
null.
|
ChartCat 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||