ca.sqlpower.architect.swingui
Class PlayPenContentPane

java.lang.Object
  extended by ca.sqlpower.architect.swingui.PlayPenContentPane

public class PlayPenContentPane
extends java.lang.Object


Field Summary
protected  PlayPen owner
           
 
Constructor Summary
PlayPenContentPane(PlayPen owner)
           
 
Method Summary
 void add(PlayPenComponent c, int i)
          Add a new component to the content pane.
 void addPlayPenContentListener(PlayPenContentListener listener)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener l)
           
 boolean contains(int x, int y)
           
 boolean contains(java.awt.Point p)
           
 PlayPenComponent getComponent(int i)
          Get a component at position i.
 PlayPenComponent getComponentAt(java.awt.Point p)
          Allows you to return the component that is at point p.
 int getComponentCount()
          get the total number of components
 int getFirstRelationIndex()
          Get the index of the first relation
 PlayPen getOwner()
          Returns the PlayPen that this content pane belongs to.
 java.lang.String getToolTipText(java.awt.event.MouseEvent e)
          Looks for tooltip text in the component under the pointer, respecting the current zoom level.
 boolean isValidateRoot()
          Returns true.
 void remove(int j)
          removes the component at index j
 void remove(PlayPenComponent c)
           
 void removePlayPenContentListener(PlayPenContentListener listener)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

protected PlayPen owner
Constructor Detail

PlayPenContentPane

public PlayPenContentPane(PlayPen owner)
Method Detail

getOwner

public PlayPen getOwner()
Returns the PlayPen that this content pane belongs to.


contains

public boolean contains(java.awt.Point p)

contains

public boolean contains(int x,
                        int y)

isValidateRoot

public boolean isValidateRoot()
Returns true.


getToolTipText

public java.lang.String getToolTipText(java.awt.event.MouseEvent e)
Looks for tooltip text in the component under the pointer, respecting the current zoom level.


getComponentAt

public PlayPenComponent getComponentAt(java.awt.Point p)
Allows you to return the component that is at point p. Since relations are always last If a non-relationship is at the same point it gets picked first.


getFirstRelationIndex

public int getFirstRelationIndex()
Get the index of the first relation


getComponentCount

public int getComponentCount()
get the total number of components


getComponent

public PlayPenComponent getComponent(int i)
Get a component at position i. Note: All relations are at the end of the list


add

public void add(PlayPenComponent c,
                int i)
Add a new component to the content pane. Note relations must be added after getFirstrelaationIndex and all others before


remove

public void remove(int j)
removes the component at index j


remove

public void remove(PlayPenComponent c)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

addPlayPenContentListener

public void addPlayPenContentListener(PlayPenContentListener listener)

removePlayPenContentListener

public void removePlayPenContentListener(PlayPenContentListener listener)


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca