choco.kernel.visu
Class AbstractVisuManager
java.lang.Object
choco.kernel.visu.AbstractVisuManager
- All Implemented Interfaces:
- IVisuManager
public abstract class AbstractVisuManager
- extends Object
- implements IVisuManager
Method Summary |
protected abstract boolean |
doExport(File file,
Object chart,
int width,
int height)
|
protected abstract boolean |
doShow(Object chart,
int width,
int height)
|
File |
export(File dir,
String name,
Object chart)
|
File |
export(File dir,
String name,
Object chart,
int width,
int height)
|
int |
getDefaultHeight()
|
int |
getDefaultWidth()
|
protected abstract String |
getFileExtension()
|
void |
setDefaultHeight(int defaultHeight)
|
void |
setDefaultWidth(int defaultWidth)
|
void |
show(Object chart)
|
void |
show(Object chart,
int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultWidth
protected int defaultWidth
defaultHeight
protected int defaultHeight
AbstractVisuManager
public AbstractVisuManager()
getDefaultWidth
public final int getDefaultWidth()
- Specified by:
getDefaultWidth
in interface IVisuManager
setDefaultWidth
public final void setDefaultWidth(int defaultWidth)
- Specified by:
setDefaultWidth
in interface IVisuManager
getDefaultHeight
public final int getDefaultHeight()
- Specified by:
getDefaultHeight
in interface IVisuManager
setDefaultHeight
public final void setDefaultHeight(int defaultHeight)
- Specified by:
setDefaultHeight
in interface IVisuManager
getFileExtension
protected abstract String getFileExtension()
doExport
protected abstract boolean doExport(File file,
Object chart,
int width,
int height)
throws IOException
- Throws:
IOException
doShow
protected abstract boolean doShow(Object chart,
int width,
int height)
export
public File export(File dir,
String name,
Object chart)
- Specified by:
export
in interface IVisuManager
export
public File export(File dir,
String name,
Object chart,
int width,
int height)
- Specified by:
export
in interface IVisuManager
show
public void show(Object chart)
- Specified by:
show
in interface IVisuManager
show
public void show(Object chart,
int width,
int height)
- Specified by:
show
in interface IVisuManager
Copyright © 2012. All Rights Reserved.