Ontimize 5.2072EN

com.ontimize.report
Class ReportDesigner.AbstractReportComponent

java.lang.Object
  extended bycom.ontimize.report.ReportDesigner.AbstractReportComponent
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, ReportDesigner.ReportComponent
Direct Known Subclasses:
ReportDesigner.ReportLine, ReportDesigner.ReportRectangle
Enclosing class:
ReportDesigner

public abstract static class ReportDesigner.AbstractReportComponent
extends java.lang.Object
implements ReportDesigner.ReportComponent, java.lang.Comparable


Nested Class Summary
 
Nested classes inherited from class com.ontimize.report.ReportDesigner.ReportComponent
ReportDesigner.ReportComponent.ChangeListener
 
Field Summary
protected  java.awt.Color background
           
protected  java.lang.String backgroundNameColor
           
protected  java.util.ArrayList changeListeners
           
protected  java.awt.Color foreground
           
protected  java.lang.String foregroundNameColor
           
protected  int height
           
protected  boolean heightPercent
           
protected  java.lang.String name
           
static int RESIZE_PIXELS_DISTANCE
           
protected  ReportDesigner.ReportSection section
           
protected  boolean selected
           
protected  java.awt.Stroke stroke
           
protected  float weight
           
protected  int width
           
protected  boolean widthPercent
           
protected  int x1
           
protected  int x2
           
protected  int y1
           
protected  int y2
           
protected  int z
           
 
Constructor Summary
ReportDesigner.AbstractReportComponent(java.lang.String name)
           
 
Method Summary
 void addChangeListener(ReportDesigner.ReportComponent.ChangeListener l)
           
 java.lang.Object clone()
           
 int compareTo(java.lang.Object o)
           
protected  double distance(int x1, int y1, int x2, int y2, double Px, double Py)
           
protected  void firePropertiesChanged()
           
 java.awt.Color getBackground()
           
 java.lang.String getBackgroundColorName()
           
 java.awt.Color getForeground()
           
 java.lang.String getForegroundColorName()
           
 int getHeight()
           
 java.lang.String getName()
           
 ReportDesigner.ReportProperty[] getProperties()
           
 ReportDesigner.ReportSection getReportSection()
           
 float getWeight()
           
 int getWidth()
           
 int getX1()
           
 int getX2()
           
 int getY1()
           
 int getY2()
           
 int getZ()
           
 boolean isAtPoint(int x, int y)
           
 boolean isAtRectangle(java.awt.Rectangle r)
           
 boolean isHeightPercent()
           
 boolean isResizableAtPoint(int x, int y)
           
 boolean isSelected()
           
 boolean isWidthPercent()
           
 void removeChangeListener(ReportDesigner.ReportComponent.ChangeListener l)
           
 void setBackground(java.lang.String c)
           
 void setForeground(java.lang.String c)
           
 void setHeight(int h)
           
 void setHeightPercent(int heightPercent)
           
 void setName(java.lang.String n)
           
 void setReportSection(ReportDesigner.ReportSection section)
           
 void setSelected(boolean sel)
           
 void setWeight(float w)
           
 void setWidth(int w)
           
 void setWidthPercent(int widthPercent)
           
 void setX(int x1, int x2)
           
 void setX1(int x)
           
 void setX2(int x)
           
 void setY(int y1, int y2)
           
 void setY1(int y)
           
 void setY2(int y)
           
 void setZ(int z)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ontimize.report.ReportDesigner.ReportComponent
paintAt, resizeAtPoint
 

Field Detail

x1

protected int x1

y1

protected int y1

x2

protected int x2

y2

protected int y2

width

protected int width

height

protected int height

z

protected int z

RESIZE_PIXELS_DISTANCE

public static int RESIZE_PIXELS_DISTANCE

selected

protected boolean selected

foreground

protected java.awt.Color foreground

background

protected java.awt.Color background

foregroundNameColor

protected java.lang.String foregroundNameColor

backgroundNameColor

protected java.lang.String backgroundNameColor

weight

protected float weight

stroke

protected java.awt.Stroke stroke

section

protected ReportDesigner.ReportSection section

changeListeners

protected java.util.ArrayList changeListeners

name

protected java.lang.String name

widthPercent

protected boolean widthPercent

heightPercent

protected boolean heightPercent
Constructor Detail

ReportDesigner.AbstractReportComponent

public ReportDesigner.AbstractReportComponent(java.lang.String name)
Method Detail

setReportSection

public void setReportSection(ReportDesigner.ReportSection section)
Specified by:
setReportSection in interface ReportDesigner.ReportComponent

getReportSection

public ReportDesigner.ReportSection getReportSection()
Specified by:
getReportSection in interface ReportDesigner.ReportComponent

setWidthPercent

public void setWidthPercent(int widthPercent)
Specified by:
setWidthPercent in interface ReportDesigner.ReportComponent

setHeightPercent

public void setHeightPercent(int heightPercent)
Specified by:
setHeightPercent in interface ReportDesigner.ReportComponent

isWidthPercent

public boolean isWidthPercent()
Specified by:
isWidthPercent in interface ReportDesigner.ReportComponent

isHeightPercent

public boolean isHeightPercent()
Specified by:
isHeightPercent in interface ReportDesigner.ReportComponent

setName

public void setName(java.lang.String n)
Specified by:
setName in interface ReportDesigner.ReportComponent

toString

public java.lang.String toString()

getWidth

public int getWidth()
Specified by:
getWidth in interface ReportDesigner.ReportComponent

getHeight

public int getHeight()
Specified by:
getHeight in interface ReportDesigner.ReportComponent

setWidth

public void setWidth(int w)
Specified by:
setWidth in interface ReportDesigner.ReportComponent

setHeight

public void setHeight(int h)
Specified by:
setHeight in interface ReportDesigner.ReportComponent

addChangeListener

public void addChangeListener(ReportDesigner.ReportComponent.ChangeListener l)
Specified by:
addChangeListener in interface ReportDesigner.ReportComponent

getName

public java.lang.String getName()
Specified by:
getName in interface ReportDesigner.ReportComponent

removeChangeListener

public void removeChangeListener(ReportDesigner.ReportComponent.ChangeListener l)
Specified by:
removeChangeListener in interface ReportDesigner.ReportComponent

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

firePropertiesChanged

protected void firePropertiesChanged()

getWeight

public float getWeight()
Specified by:
getWeight in interface ReportDesigner.ReportComponent

setWeight

public void setWeight(float w)
Specified by:
setWeight in interface ReportDesigner.ReportComponent

getForegroundColorName

public java.lang.String getForegroundColorName()
Specified by:
getForegroundColorName in interface ReportDesigner.ReportComponent

getBackgroundColorName

public java.lang.String getBackgroundColorName()
Specified by:
getBackgroundColorName in interface ReportDesigner.ReportComponent

setForeground

public void setForeground(java.lang.String c)
Specified by:
setForeground in interface ReportDesigner.ReportComponent

setBackground

public void setBackground(java.lang.String c)
Specified by:
setBackground in interface ReportDesigner.ReportComponent

getForeground

public java.awt.Color getForeground()
Specified by:
getForeground in interface ReportDesigner.ReportComponent

getBackground

public java.awt.Color getBackground()
Specified by:
getBackground in interface ReportDesigner.ReportComponent

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getX1

public int getX1()
Specified by:
getX1 in interface ReportDesigner.ReportComponent

getY1

public int getY1()
Specified by:
getY1 in interface ReportDesigner.ReportComponent

getX2

public int getX2()
Specified by:
getX2 in interface ReportDesigner.ReportComponent

getY2

public int getY2()
Specified by:
getY2 in interface ReportDesigner.ReportComponent

getZ

public int getZ()
Specified by:
getZ in interface ReportDesigner.ReportComponent

setX

public void setX(int x1,
                 int x2)
Specified by:
setX in interface ReportDesigner.ReportComponent

setX1

public void setX1(int x)
Specified by:
setX1 in interface ReportDesigner.ReportComponent

setY

public void setY(int y1,
                 int y2)
Specified by:
setY in interface ReportDesigner.ReportComponent

setY1

public void setY1(int y)
Specified by:
setY1 in interface ReportDesigner.ReportComponent

setX2

public void setX2(int x)
Specified by:
setX2 in interface ReportDesigner.ReportComponent

setY2

public void setY2(int y)
Specified by:
setY2 in interface ReportDesigner.ReportComponent

setZ

public void setZ(int z)
Specified by:
setZ in interface ReportDesigner.ReportComponent

isSelected

public boolean isSelected()
Specified by:
isSelected in interface ReportDesigner.ReportComponent

setSelected

public void setSelected(boolean sel)
Specified by:
setSelected in interface ReportDesigner.ReportComponent

isResizableAtPoint

public boolean isResizableAtPoint(int x,
                                  int y)
Specified by:
isResizableAtPoint in interface ReportDesigner.ReportComponent

isAtRectangle

public boolean isAtRectangle(java.awt.Rectangle r)
Specified by:
isAtRectangle in interface ReportDesigner.ReportComponent

distance

protected double distance(int x1,
                          int y1,
                          int x2,
                          int y2,
                          double Px,
                          double Py)

isAtPoint

public boolean isAtPoint(int x,
                         int y)
Specified by:
isAtPoint in interface ReportDesigner.ReportComponent

getProperties

public ReportDesigner.ReportProperty[] getProperties()
Specified by:
getProperties in interface ReportDesigner.ReportComponent

Ontimize