net.refractions.udig.printing.model
Interface Element

All Known Subinterfaces:
Box, Connection, DecoratorBox, Page

public interface Element

An Element object represents an item of the printing framework and has the following characteristics:

Each object to be included in a Page must implement this interface.

Since:
0.3
Author:
Richard Gould

Method Summary
 Point getLocation()
           
 Dimension getSize()
          The size is calculated in pixels, and represent coordinates on a page.
 void setLocation(Point value)
          Sets the value of the 'Location' attribute.
 void setSize(Dimension value)
          Sets the value of the 'Size' attribute.
 

Method Detail

getLocation

Point getLocation()
Returns:
this element's location (x, y)
See Also:
Point

setLocation

void setLocation(Point value)
Sets the value of the 'Location' attribute. Sets this element's location to the provided value

Parameters:
value - the new value of the 'Location' attribute.
See Also:
getLocation()

getSize

Dimension getSize()
The size is calculated in pixels, and represent coordinates on a page.

Returns:
this element's size (width, height)
See Also:
Dimension

setSize

void setSize(Dimension value)
Sets the value of the 'Size' attribute. Set this element's size to the provided value The size is expected in pixels, and represent coordinates on the page.

Parameters:
value - the new value of the 'Size' attribute.
See Also:
getSize()