ChartCat 1.2

li.netcat.chart.util
Class AbstractPart

java.lang.Object
  extended byli.netcat.chart.util.AbstractPart
All Implemented Interfaces:
Part
Direct Known Subclasses:
BorderPart, GraphPart, GridPart, PanelPart, PerspectivePart, TextPart

public abstract class AbstractPart
extends java.lang.Object
implements Part

This class should be used as the abstract super class of all Parts. It basically holds the chart context and implements some members of the Part interface.

Author:
Arthur Marxer
See Also:
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

FOREGROUND

public static final java.lang.Object FOREGROUND
Equal to ChartConstants.FOREGROUND


BACKGROUND

public static final java.lang.Object BACKGROUND
Equal to ChartConstants.BACKGROUND


PERSPECTIVE

public static final java.lang.Object PERSPECTIVE
Equal to ChartConstants.PERSPECTIVE

Constructor Detail

AbstractPart

public AbstractPart()
Constructs a new instance of an AbstractPart using null as chart context.

Method Detail

invalidate

public void invalidate()
Calls invalidate() on the chart context if it's not null.


getChart

public Chart getChart()
Returns the chart context. The chart context is set when the part is added to a Chart.

Returns:
The current chart context, or null if this Part is not added to a Chart.

getPerspective

public java.lang.Object getPerspective()
Returns the perspective position of this part. The value FOREGROUND will paint this part in the front of a perspective view, BACKGROUND in the back and PERSPECTIVE will foreshorten it.

Returns:
The perspective position of this part. Might be FOREGROUND, BACKGROUND, PERSPECTIVE or an other custom value.
See Also:
PerspectivePart

setPerspective

public void setPerspective(java.lang.Object perspective)
Sets the perspective position of this part. The value FOREGROUND will paint this part in the front of a perspective view, BACKGROUND in the back and PERSPECTIVE will foreshorten it.

Parameters:
perspective - The perspective position of this part. Might be FOREGROUND, BACKGROUND, PERSPECTIVE or an other custom value.
See Also:
PerspectivePart

setChart

public void setChart(Chart chart)
Description copied from interface: Part
Sets the container of this part. This method should not be called by custom code. It gets called when this 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.

Specified by:
setChart in interface Part
Parameters:
chart - The new chart container, can also be null.

ChartCat 1.2

Copyright © 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print