Style Intelligence v12.0

inetsoft.report
Class PageLayout.Shape

java.lang.Object
  extended by inetsoft.report.PageLayout.Shape
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
PageLayout.InfoShape, PageLayout.Line, PageLayout.Oval, PageLayout.Rectangle
Enclosing class:
PageLayout

public abstract static class PageLayout.Shape
extends Object
implements Cloneable, Serializable

This class defines a shape on a page.

See Also:
Serialized Form

Constructor Summary
PageLayout.Shape()
           
 
Method Summary
 Object clone()
          Clone a shape.
abstract  boolean contains(int x, int y)
          Check if the point falls inside the shape.
 boolean contains(Rectangle rect)
          Check if a rectangle is completely contained in the shape.
 void copy(PageLayout.Shape shape)
          Copy the attributes of the shape into this shape.
abstract  Rectangle getBounds()
          Get the bounding box of this paintable.
 Color getColor()
          Get the color of this shape.
 int getStyle()
          Get the line style of this shape.
 double getXScale()
          Get the X direction scaling factor.
 double getYScale()
          Get the Y direction scaling factor.
abstract  void move(double x, double y)
          Move the shape by the specified x/y amount.
abstract  void paint(Graphics g)
          Paint this shape.
 void setColor(Color color)
          Set the color of this shape.
 void setScale(double xs, double ys)
          Scale the shape.
 void setStyle(int style)
          Set the line style of this shape.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLayout.Shape

public PageLayout.Shape()
Method Detail

setColor

public void setColor(Color color)
Set the color of this shape.


getColor

public Color getColor()
Get the color of this shape.


setStyle

public void setStyle(int style)
Set the line style of this shape.


getStyle

public int getStyle()
Get the line style of this shape.


setScale

public void setScale(double xs,
                     double ys)
Scale the shape.

Parameters:
xs - x scale 0 to 1.
ys - y scale 0 to 1.

getXScale

public double getXScale()
Get the X direction scaling factor.


getYScale

public double getYScale()
Get the Y direction scaling factor.


getBounds

public abstract Rectangle getBounds()
Get the bounding box of this paintable.


move

public abstract void move(double x,
                          double y)
Move the shape by the specified x/y amount.


contains

public abstract boolean contains(int x,
                                 int y)
Check if the point falls inside the shape.


contains

public boolean contains(Rectangle rect)
Check if a rectangle is completely contained in the shape.


paint

public abstract void paint(Graphics g)
Paint this shape.


clone

public Object clone()
Clone a shape.

Overrides:
clone in class Object

copy

public void copy(PageLayout.Shape shape)
Copy the attributes of the shape into this shape.


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