Style Intelligence v12.0

inetsoft.report.painter
Class RotatedPainter

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

public class RotatedPainter
extends Object
implements Painter

This painter rotated a painter output 90 degrees clockwise.

See Also:
Serialized Form

Constructor Summary
RotatedPainter(Component comp)
          Create a rotated painter from a component.
RotatedPainter(Image image)
          Create a rotated image.
RotatedPainter(Painter painter)
          Create a rotated painter from another painter.
RotatedPainter(Painter painter, int rotation)
          Create a rotated painter from another painter.
 
Method Summary
 Dimension getPreferredSize()
          Return the preferred size of this painter.
 boolean isScalable()
          Same as Painter scalable.
 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

RotatedPainter

public RotatedPainter(Component comp)
Create a rotated painter from a component.

Parameters:
comp - component to paint.

RotatedPainter

public RotatedPainter(Image image)
Create a rotated image.

Parameters:
image - original image.

RotatedPainter

public RotatedPainter(Painter painter)
Create a rotated painter from another painter.

Parameters:
painter - area to be rotated and painted.

RotatedPainter

public RotatedPainter(Painter painter,
                      int rotation)
Create a rotated painter from another painter.

Parameters:
painter - area to be rotated and painted.
rotation - degrees to rotate, 90 or 270.
Method Detail

getPreferredSize

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

Specified by:
getPreferredSize in interface Painter
Returns:
size.

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.

isScalable

public boolean isScalable()
Same as Painter scalable.

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

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