com.davisor.graphics.chart
Class LayoutFactory.LayoutMetrics

java.lang.Object
  extended bycom.davisor.graphics.chart.ChartFactory.ChartMetrics
      extended bycom.davisor.graphics.chart.LayoutFactory.LayoutMetrics
Enclosing class:
LayoutFactory

public class LayoutFactory.LayoutMetrics
extends ChartFactory.ChartMetrics

Stores chart and legend metrics. Combines their ideal sizes.

See Also:
getSize()

Field Summary
 
Fields inherited from class com.davisor.graphics.chart.ChartFactory.ChartMetrics
M_height, M_width
 
Constructor Summary
LayoutFactory.LayoutMetrics(ChartFactory.ChartMetrics chartMetrics, ChartFactory.ChartMetrics legendMetrics, int legendAlignment)
          Stores chart and legend metrics and legend alignment in relation to chart.
 
Method Summary
 float[] getSize()
          Return the cumulative ideal size for chart and legend.
 void scale(float xFactor, float yFactor)
          Scale the chart size.
 
Methods inherited from class com.davisor.graphics.chart.ChartFactory.ChartMetrics
add, getHeight, getSize, getWidth, scale, scaleToSize, setHeight, setSize, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutFactory.LayoutMetrics

public LayoutFactory.LayoutMetrics(ChartFactory.ChartMetrics chartMetrics,
                                   ChartFactory.ChartMetrics legendMetrics,
                                   int legendAlignment)
Stores chart and legend metrics and legend alignment in relation to chart.

Parameters:
chartMetrics - main chart metrics
legendMetrics - legend chart metrics
legendAlignment - legendAlignment
Method Detail

getSize

public float[] getSize()
Return the cumulative ideal size for chart and legend.


scale

public void scale(float xFactor,
                  float yFactor)
Scale the chart size. Keep the current ratio between chart and legend.

Overrides:
scale in class ChartFactory.ChartMetrics
Parameters:
xFactor - horizontal scalar factor
yFactor - vertical scalar factor


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.