Style Intelligence v12.0

inetsoft.report
Class PageLayout.Line

java.lang.Object
  extended by inetsoft.report.PageLayout.Shape
      extended by inetsoft.report.PageLayout.Line
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
PageLayout

public static class PageLayout.Line
extends PageLayout.Shape

A line shape.

See Also:
Serialized Form

Constructor Summary
PageLayout.Line()
           
PageLayout.Line(double x1, double y1, double x2, double y2)
          Create a line shape.
 
Method Summary
 boolean contains(int x, int y)
          Check if the point falls inside the shape.
 void copy(PageLayout.Shape shape)
          Copy the attributes of the shape into this shape.
 int getArrowLocation()
           
 Rectangle getBounds()
          Get the bounding box of this paintable.
 double getX1()
          Get the starting point x position.
 double getX2()
          Get the ending point x position.
 double getY1()
          Get the starting point y position.
 double getY2()
          Get the ending point y position.
 boolean isArrow()
           
 void move(double x, double y)
          Move the shape by the specified x/y amount.
 void paint(Graphics g)
          Paint this shape.
 void setArrow(boolean isArrow)
           
 void setArrowLocation(int location)
           
 void setX1(double x)
          Set the starting point x position.
 void setX2(double x)
          Set the ending point x position.
 void setY1(double y)
          Set the starting point y position.
 void setY2(double y)
          Set the ending point y position.
 
Methods inherited from class inetsoft.report.PageLayout.Shape
clone, contains, getColor, getStyle, getXScale, getYScale, setColor, setScale, setStyle
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLayout.Line

public PageLayout.Line()

PageLayout.Line

public PageLayout.Line(double x1,
                       double y1,
                       double x2,
                       double y2)
Create a line shape. The x and y coordinates are specified as points relative to the left-upper cornor of the page. All position and length are specified as points (1/72 inch).

Method Detail

setX1

public void setX1(double x)
Set the starting point x position.


getX1

public double getX1()
Get the starting point x position.


setY1

public void setY1(double y)
Set the starting point y position.


getY1

public double getY1()
Get the starting point y position.


setX2

public void setX2(double x)
Set the ending point x position.


getX2

public double getX2()
Get the ending point x position.


setY2

public void setY2(double y)
Set the ending point y position.


getY2

public double getY2()
Get the ending point y position.


paint

public void paint(Graphics g)
Paint this shape.

Specified by:
paint in class PageLayout.Shape

getBounds

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

Specified by:
getBounds in class PageLayout.Shape

move

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

Specified by:
move in class PageLayout.Shape

setArrow

public void setArrow(boolean isArrow)

isArrow

public boolean isArrow()

setArrowLocation

public void setArrowLocation(int location)

getArrowLocation

public int getArrowLocation()

contains

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

Specified by:
contains in class PageLayout.Shape

copy

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

Overrides:
copy in class PageLayout.Shape

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