|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.swingui.ContainerPaneUI
ca.sqlpower.architect.swingui.olap.OLAPPaneUI<T,C>
public abstract class OLAPPaneUI<T extends OLAPObject,C extends OLAPObject>
Does all of the generic painting and event handling that applies to all "pane" type components in the OLAP play pen.
Our plan is to eventually move all the generic stuff up into ContainerPaneUI so that BasicTablePaneUI can get simpler.
| Field Summary | |
|---|---|
protected ca.sqlpower.architect.swingui.olap.OLAPPaneUI.ModelEventHandler |
modelEventHandler
|
protected OLAPPane<T,C> |
olapPane
|
protected ca.sqlpower.architect.swingui.olap.OLAPPaneUI.PaneEventHandler |
paneEventHandler
|
| Constructor Summary | |
|---|---|
OLAPPaneUI()
|
|
| Method Summary | |
|---|---|
boolean |
contains(java.awt.Point p)
|
int |
firstItemIndex(PaneSection<? extends C> sect)
Returns the index of the first item in the given section. |
java.awt.Dimension |
getPreferredSize()
Calculates and returns the ideal size for this OLAPPane. |
void |
installUI(PlayPenComponent c)
|
void |
paint(java.awt.Graphics2D g2)
|
int |
pointToItemIndex(java.awt.Point p)
Deprecated. |
PlayPenCoordinate<T,C> |
pointToPPCoordinate(java.awt.Point p)
Translates the given point into a PlayPenCoordinate. |
void |
revalidate()
|
PaneSection<? extends C> |
toSectionLocation(java.awt.Point point,
boolean editPoint)
Looks up the section that the given point resides in, and may translate the given point so that it is relative to the top left corner of the returned section. |
void |
uninstallUI(PlayPenComponent c)
|
| Methods inherited from class ca.sqlpower.architect.swingui.ContainerPaneUI |
|---|
paintInsertionPoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OLAPPane<T extends OLAPObject,C extends OLAPObject> olapPane
protected final ca.sqlpower.architect.swingui.olap.OLAPPaneUI.ModelEventHandler modelEventHandler
protected final ca.sqlpower.architect.swingui.olap.OLAPPaneUI.PaneEventHandler paneEventHandler
| Constructor Detail |
|---|
public OLAPPaneUI()
| Method Detail |
|---|
public java.awt.Dimension getPreferredSize()
paint(Graphics2D) or
#drawSection(PaneSection, Graphics2D, ContainerPane, int)
methods, you will have to override this method as well to compensate.
public void installUI(PlayPenComponent c)
public void uninstallUI(PlayPenComponent c)
public void paint(java.awt.Graphics2D g2)
public boolean contains(java.awt.Point p)
public void revalidate()
public PaneSection<? extends C> toSectionLocation(java.awt.Point point,
boolean editPoint)
p will not have been modified.
point - The point in overall component coordinates. This point will
be modified if this method returns non-null and editPoint
is true.editPoint - If the given point should be edited or not.
@Deprecated public int pointToItemIndex(java.awt.Point p)
ContainerPaneUIOLAPPane.pointToItemIndex(Point)
Subclass of DimensionPaneUI will implement this method to calculate column index
given a point on the playpenComponent.
pointToItemIndex in class ContainerPaneUIpublic PlayPenCoordinate<T,C> pointToPPCoordinate(java.awt.Point p)
PlayPenCoordinate.
p - The point to be translated.
public int firstItemIndex(PaneSection<? extends C> sect)
sect - A section in this pane.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||