Style Intelligence v12.0

inetsoft.report.painter
Class BulletPainter

java.lang.Object
  extended by inetsoft.report.painter.BulletPainter
All Implemented Interfaces:
Painter, ScaledPainter, Serializable

public class BulletPainter
extends Object
implements ScaledPainter

A painter object than paints a bullet icon for the bullet list. It's used internally to implement the ReportSheet.addBullet() method. Since the addBullet() applies special logic to the bullet by adding a hanging indent to the bullet, it should be used under most circumstances.

See Also:
Serialized Form

Constructor Summary
BulletPainter()
          Create a default bullet painter.
BulletPainter(Image icon)
          Create a bullet painter with specified icon.
 
Method Summary
 Dimension getPreferredSize()
          Return the preferred size of this painter.
 Size getSize()
          Get the actual size of this bullet.
 boolean isScalable()
          The bullet should be scaled.
 void paint(Graphics g, int x, int y, int w, int h)
          Paint contents at the specified location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulletPainter

public BulletPainter()
Create a default bullet painter.


BulletPainter

public BulletPainter(Image icon)
Create a bullet painter with specified icon.

Parameters:
icon - image for bullet.
Method Detail

getPreferredSize

public Dimension getPreferredSize()
Return the preferred size of this painter.

Specified by:
getPreferredSize in interface Painter
Returns:
size.

getSize

public Size getSize()
Get the actual size of this bullet.

Specified by:
getSize in interface ScaledPainter
Returns:
size in inches.

isScalable

public boolean isScalable()
The bullet should be scaled.

Specified by:
isScalable in interface Painter
Returns:
scalable option.

paint

public void paint(Graphics g,
                  int x,
                  int y,
                  int w,
                  int h)
Paint contents at the specified location.

Specified by:
paint in interface Painter
Parameters:
g - graphical context.
x - x coordinate of the left edge of the paint area.
y - y coordinate of the upper edge of the paint area.
w - area width.
h - area height.

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