com.panayotis.gnuplot.layout
Class LayoutMetrics

java.lang.Object
  extended by com.panayotis.gnuplot.layout.LayoutMetrics
All Implemented Interfaces:
java.io.Serializable

public class LayoutMetrics
extends java.lang.Object
implements java.io.Serializable

Container of the metrics for a specific graph

See Also:
Serialized Form

Constructor Summary
LayoutMetrics()
          Set default position, covering the whole screen
LayoutMetrics(float x, float y, float width, float height)
          Set a specific position, in the area of 0,0-1,1 and with a minimum size
 
Method Summary
 float getHeight()
          Get height
 float getWidth()
          Get width
 float getX()
          Get horizontal position
 float getY()
          Get vertical position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutMetrics

public LayoutMetrics()
Set default position, covering the whole screen


LayoutMetrics

public LayoutMetrics(float x,
                     float y,
                     float width,
                     float height)
Set a specific position, in the area of 0,0-1,1 and with a minimum size

Parameters:
x - horizontal position
y - vertical position
width - width
height - height
Method Detail

getX

public float getX()
Get horizontal position

Returns:
horizontal position

getY

public float getY()
Get vertical position

Returns:
vertical position

getWidth

public float getWidth()
Get width

Returns:
width

getHeight

public float getHeight()
Get height

Returns:
height