org.norther.tammi.sprig.chart.layout
Class ChartLayoutAdapter

java.lang.Object
  extended by org.norther.tammi.sprig.chart.layout.ChartLayoutAdapter
All Implemented Interfaces:
ChartLayout

public abstract class ChartLayoutAdapter
extends Object
implements ChartLayout

An abstract chart layout adapter.

Author:
Ilkka Priha

Field Summary
 
Fields inherited from interface org.norther.tammi.sprig.chart.layout.ChartLayout
AREA_CHART, BAR_3D_CHART, BAR_CHART, BOTTOM, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER, CORNER, DATE_AREA_CHART, DATE_LINE_CHART, HORIZONTAL, LEFT, LINE_3D_CHART, LINE_CHART, MULTI_PIE_3D_CHART, MULTI_PIE_CHART, PIE_3D_CHART, PIE_CHART, RIGHT, STACKED_AREA_CHART, STACKED_BAR_3D_CHART, STACKED_BAR_CHART, STACKED_DATE_AREA_CHART, STACKED_XY_AREA_CHART, TOP, TOP_LEFT, TOP_RIGHT, VERTICAL, XY_AREA_CHART, XY_LINE_CHART
 
Constructor Summary
ChartLayoutAdapter(int type, Object chart)
          Constructs a new adapter.
 
Method Summary
 Object getChart()
          Gets the implementation specific chart.
 int getChartType()
          Gets the type of the chart.
 String getFontFace()
          Gets the font face.
 int getFontSize()
          Gets the font size.
 int getHeight()
          Gets the height.
 int getWidth()
          Gets the width.
 void setFontFace(String fn)
          Sets the font face.
 void setFontSize(int fs)
          Sets the font size.
 void setHeight(int h)
          Sets the height.
 void setWidth(int w)
          Sets the width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.sprig.chart.layout.ChartLayout
addLabel, addLabel, addLabel, clearLabels, columnAxisCount, getBackgroundPaint, getBackgroundTransparency, getBorderPaint, getColumnAxis, getColumnAxisPosition, getExplodePercent, getForegroundTransparency, getGridPaint, getLinePaint, getLineStroke, getPanelPaint, getRowAxis, getRowAxisPosition, getTitle, isBorderVisible, isGridVisible, isLinesVisible, isLinesVisible, isLinesVisible, isShapesVisible, isShapesVisible, isShapesVisible, rowAxisCount, setBackgroundPaint, setBackgroundTransparency, setBorderPaint, setBorderVisible, setColumnAxis, setColumnAxisPosition, setExplodePercent, setForegroundTransparency, setGridPaint, setGridVisible, setLinePaint, setLinePaint, setLinePaint, setLineStroke, setLineStroke, setLineStroke, setLinesVisible, setLinesVisible, setLinesVisible, setModelColumnAxis, setModelRowAxis, setPanelPaint, setRowAxis, setRowAxisPosition, setShapesVisible, setShapesVisible, setShapesVisible, setTitle, setTitle, setTitle
 

Constructor Detail

ChartLayoutAdapter

public ChartLayoutAdapter(int type,
                          Object chart)
Constructs a new adapter.

Parameters:
type - the chart type.
chart - the chart adaptee.
Method Detail

getChart

public Object getChart()
Description copied from interface: ChartLayout
Gets the implementation specific chart.

Specified by:
getChart in interface ChartLayout
Returns:
the chart instance.

getChartType

public int getChartType()
Description copied from interface: ChartLayout
Gets the type of the chart.

Specified by:
getChartType in interface ChartLayout
Returns:
the chart type.

getWidth

public int getWidth()
Description copied from interface: ChartLayout
Gets the width.

Specified by:
getWidth in interface ChartLayout
Returns:
the width.

setWidth

public void setWidth(int w)
Description copied from interface: ChartLayout
Sets the width.

Specified by:
setWidth in interface ChartLayout
Parameters:
w - the width.

getHeight

public int getHeight()
Description copied from interface: ChartLayout
Gets the height.

Specified by:
getHeight in interface ChartLayout
Returns:
the height.

setHeight

public void setHeight(int h)
Description copied from interface: ChartLayout
Sets the height.

Specified by:
setHeight in interface ChartLayout
Parameters:
h - the height.

getFontFace

public String getFontFace()
Description copied from interface: ChartLayout
Gets the font face.

Specified by:
getFontFace in interface ChartLayout
Returns:
the font name.

setFontFace

public void setFontFace(String fn)
Description copied from interface: ChartLayout
Sets the font face.

Specified by:
setFontFace in interface ChartLayout
Parameters:
fn - the font name.

getFontSize

public int getFontSize()
Description copied from interface: ChartLayout
Gets the font size.

Specified by:
getFontSize in interface ChartLayout
Returns:
the font size in points.

setFontSize

public void setFontSize(int fs)
Description copied from interface: ChartLayout
Sets the font size.

Specified by:
setFontSize in interface ChartLayout
Parameters:
fs - the font size in points.


Copyright © 2004 The Norther Organization. All rights reserved.