|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.askalon.graph.chart.viewer.ChartPanel
public abstract class ChartPanel
this class represents a wrapper for the GUI component supporting the actual rendering process.
Constructor Summary | |
---|---|
ChartPanel()
internal constructor |
Method Summary | |
---|---|
abstract void |
addFPSListener(org.askalon.graph.utilities.FPSListener f)
|
void |
addPanelListener(ChartPanelListener listener)
register a new chart panel listener to this component. |
boolean |
chartAutofit()
|
abstract void |
cleanUp()
this method is called when finishing up this object |
abstract void |
enableFPSCounter(boolean b)
|
Chart |
getChart()
get the chart installed in this panel |
ChartConfiguration |
getChartConfiguration()
|
ViewPosition |
getCurrentView()
|
abstract BufferedImage |
getImage()
this method should provide a image showing the current rendering output. |
Component |
getPanelComponent()
this method should provide the actual rendering panel |
JMenu |
getRenderOptionMenu()
This method provides a JMenu listing all kind of rendering options supported by this ChartPanel. |
String |
getXAxisText()
|
String |
getYAxisText()
|
boolean |
isCoordinateGridVisible()
|
boolean |
isDescriptionsVisible()
check if descriptions are currently visible |
boolean |
isFloorVisible()
|
boolean |
isKeyBehaviourEnabled()
|
boolean |
isMousePanEnabled()
|
boolean |
isMouseRotateEnabled()
|
boolean |
isMouseZoomEnabled()
|
boolean |
isRotationInverted()
|
boolean |
isRotationRestricted()
|
void |
refreshConfiguration()
|
abstract void |
removeFPSListener(org.askalon.graph.utilities.FPSListener f)
|
void |
removePanelListener(ChartPanelListener listener)
unregister a chart listener from this component. |
void |
resetConfiguration()
reset current configuration of this Chart Panel |
void |
setChart(Chart chart)
exchange the chart currently rendered. |
void |
setChartAutofit(boolean autofit)
|
void |
setCoordinateGridVisible(boolean cgVisible)
|
void |
setDescriptionsVisible(boolean b)
|
void |
setFloorVisible(boolean floorVisible)
|
void |
setKeyBehaviourEnabled(boolean keyhandling)
|
void |
setMousePanEnabled(boolean mousePan)
|
void |
setMouseRotateEnabled(boolean mouseRotate)
|
void |
setMouseZoomEnabled(boolean mouseZoom)
|
void |
setRotationInverted(boolean invertRotation)
|
void |
setRotationRestricted(boolean restrict)
|
void |
setViewPosition(ViewPosition cv)
|
void |
setXAxisText(String x)
|
void |
setYAxisText(String y)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartPanel()
Method Detail |
---|
public void addPanelListener(ChartPanelListener listener)
listener
- the new listenerpublic void removePanelListener(ChartPanelListener listener)
listener
- the listener to removepublic void resetConfiguration()
public void refreshConfiguration()
public Chart getChart()
public ChartConfiguration getChartConfiguration()
public boolean isMousePanEnabled()
public void setMousePanEnabled(boolean mousePan)
public boolean isMouseZoomEnabled()
public void setMouseZoomEnabled(boolean mouseZoom)
public boolean isMouseRotateEnabled()
public void setMouseRotateEnabled(boolean mouseRotate)
public boolean isRotationInverted()
public void setRotationInverted(boolean invertRotation)
public boolean isKeyBehaviourEnabled()
public void setKeyBehaviourEnabled(boolean keyhandling)
public boolean chartAutofit()
public void setChartAutofit(boolean autofit)
public boolean isRotationRestricted()
public void setRotationRestricted(boolean restrict)
public boolean isDescriptionsVisible()
public void setDescriptionsVisible(boolean b)
public boolean isCoordinateGridVisible()
public void setCoordinateGridVisible(boolean cgVisible)
public boolean isFloorVisible()
public void setFloorVisible(boolean floorVisible)
public void setChart(Chart chart) throws IllegalArgumentException
chart
- the new chart to render
IllegalArgumentException
- if this type of chart is not supportedpublic abstract void cleanUp()
public Component getPanelComponent()
public ViewPosition getCurrentView()
public void setXAxisText(String x)
public void setYAxisText(String y)
public String getYAxisText()
public String getXAxisText()
public abstract BufferedImage getImage()
public JMenu getRenderOptionMenu()
public void setViewPosition(ViewPosition cv)
public abstract void addFPSListener(org.askalon.graph.utilities.FPSListener f)
public abstract void removeFPSListener(org.askalon.graph.utilities.FPSListener f)
public abstract void enableFPSCounter(boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Part of: |
ASKALON Visualisation Diagrams |