|
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
This class should be used as the abstract super class of all Part
s.
It basically holds the chart context and implements some members of the Part
interface.
Part
,
Chart
Field Summary | |
static java.lang.Object |
BACKGROUND
Equal to ChartConstants.BACKGROUND |
static java.lang.Object |
FOREGROUND
Equal to ChartConstants.FOREGROUND |
static java.lang.Object |
PERSPECTIVE
Equal to ChartConstants.PERSPECTIVE |
Constructor Summary | |
AbstractPart()
Constructs a new instance of an AbstractPart using null as chart context. |
Method Summary | |
Chart |
getChart()
Returns the chart context. |
java.lang.Object |
getPerspective()
Returns the perspective position of this part. |
void |
invalidate()
Calls invalidate() on the chart context if it's not null . |
void |
setChart(Chart chart)
Sets the container of this part. |
void |
setPerspective(java.lang.Object perspective)
Sets the perspective position of this part. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface li.netcat.chart.Part |
getLayout |
Field Detail |
public static final java.lang.Object FOREGROUND
ChartConstants.FOREGROUND
public static final java.lang.Object BACKGROUND
ChartConstants.BACKGROUND
public static final java.lang.Object PERSPECTIVE
ChartConstants.PERSPECTIVE
Constructor Detail |
public AbstractPart()
AbstractPart
using null
as chart context.
Method Detail |
public void invalidate()
invalidate()
on the chart context if it's not null
.
public Chart getChart()
Chart
.
null
if this Part
is not added to a Chart
.public java.lang.Object getPerspective()
FOREGROUND
will paint this part in the front of a perspective view, BACKGROUND
in the
back and PERSPECTIVE
will foreshorten it.
FOREGROUND
, BACKGROUND
, PERSPECTIVE
or an other custom value.PerspectivePart
public void setPerspective(java.lang.Object perspective)
FOREGROUND
will paint this part in the front of a perspective view, BACKGROUND
in the
back and PERSPECTIVE
will foreshorten it.
perspective
- The perspective position of this part. Might be FOREGROUND
, BACKGROUND
, PERSPECTIVE
or an other custom value.PerspectivePart
public void setChart(Chart chart)
Part
Part
is added to a chart by calling
chart.setContent(part);
. Implementers of parts must keep this reference
and invoke for example chart.invalidate()
when a property in this part changes.
setChart
in interface Part
chart
- The new chart container, can also be null.
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |