Style Intelligence v12.0

inetsoft.report
Interface Paintable

All Superinterfaces:
Serializable

public interface Paintable
extends Serializable

The Paintable interface encapsulates the printing of an element in a StylePage. A StylePage is consisted of a collection of Paintable objects. The Paintable objects are added to a StylePage during the printNext() call.


Method Summary
 Rectangle getBounds()
          Return the bounds of this paintable area.
 ReportElement getElement()
          Get the report element that this paintable area corresponds to.
 Point getLocation()
          Get the location of this paintable.
 void paint(Graphics g)
          Paint the element on to a page.
 void parseXML(Element elem)
          Reads in the properties from the specified XML Element.
 void setLocation(Point loc)
          Set the location of this paintable area.
 void writeXML(PrintWriter writer)
          Writes this object as an XML entity to the specified print writer.
 

Method Detail

paint

void paint(Graphics g)
Paint the element on to a page.


getBounds

Rectangle getBounds()
Return the bounds of this paintable area.

Returns:
area bounds or null if element does not occupy an area.

setLocation

void setLocation(Point loc)
Set the location of this paintable area. This is used internally for small adjustments during printing.

Parameters:
loc - new location for this paintable.

getLocation

Point getLocation()
Get the location of this paintable.


getElement

ReportElement getElement()
Get the report element that this paintable area corresponds to.

Returns:
report element.

writeXML

void writeXML(PrintWriter writer)
Writes this object as an XML entity to the specified print writer.


parseXML

void parseXML(Element elem)
              throws Exception
Reads in the properties from the specified XML Element.

Throws:
Exception

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.