|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.swingui.PlayPenComponent
ca.sqlpower.architect.swingui.ContainerPane<T,C>
ca.sqlpower.architect.swingui.olap.OLAPPane<MondrianModel.Dimension,OLAPObject>
ca.sqlpower.architect.swingui.olap.DimensionPane
public class DimensionPane
Visual representation of a dimension. It keeps its sections in sync with the hierarchies of the Dimension object, and the items in each section are the levels of the corresponding hierarchy.
| Nested Class Summary | |
|---|---|
class |
DimensionPane.HierarchySection
|
| Field Summary |
|---|
| Fields inherited from class ca.sqlpower.architect.swingui.olap.OLAPPane |
|---|
sections, selectedSections |
| Fields inherited from class ca.sqlpower.architect.swingui.ContainerPane |
|---|
ITEM_INDEX_NONE, ITEM_INDEX_TITLE, margin, model, selectedItems |
| Fields inherited from class ca.sqlpower.architect.swingui.PlayPenComponent |
|---|
backgroundColor, componentPreviouslySelected, foregroundColor, selected |
| Constructor Summary | |
|---|---|
DimensionPane(MondrianModel.Dimension m,
PlayPenContentPane parent)
|
|
| Method Summary | |
|---|---|
ca.sqlpower.swingui.DataEntryPanel |
createEditDialog(PlayPenCoordinate<MondrianModel.Dimension,OLAPObject> coord)
Creates a edit dialog for the OLAPObject that is at the location represented by the given coordinate. |
protected java.util.List<OLAPObject> |
filterDroppableItems(java.util.List<OLAPObject> items)
Accepts a clump of items that have been dragged from elsewhere (normally the tree or another pane). |
DimensionPane.HierarchySection |
findSection(MondrianModel.Hierarchy hierarchy)
Returns the HierarchySection that contains the given hierarchy. |
protected java.util.List<OLAPObject> |
getItems()
Returns a list of the items to be displayed with the model. |
protected java.util.List<OLAPObject> |
getItemsFromCoordinates(java.util.List<PlayPenCoordinate<? extends OLAPObject,? extends OLAPObject>> coords)
Returns a list of OLAPObjects that correspond to the given PlayPenCoordinates. |
java.util.List<MondrianModel.Level> |
getSelectedLevels()
Returns a list of levels which are selected. |
java.lang.String |
toString()
|
protected void |
transferInvalidIndexItem(OLAPObject item,
PaneSection<OLAPObject> insertSection)
Handle Drag and Drop transfer for items with invalid index. |
void |
updateUI()
|
| Methods inherited from class ca.sqlpower.architect.swingui.olap.OLAPPane |
|---|
bestImportFlavor, createTransferableForSelection, deselectSection, dndRemoveAndAdd, dragEnter, dragExit, dragOver, drop, dropActionChanged, getInboundEdges, getInsertionPoint, getName, getOutboundEdges, getPopup, getSections, getSelectedCoordinates, getSelectedSections, getUI, handleMouseEvent, isSectionSelected, pointToItemIndex, pointToPPCoordinate, selectNone, selectSection, setInsertionPoint |
| Methods inherited from class ca.sqlpower.architect.swingui.ContainerPane |
|---|
addItemSelectionListener, deSelectEverythingElse, deselectItem, deselectItem, dragDropEnd, dragEnter, dragExit, dragOver, dropActionChanged, fireItemsDeselected, fireItemsSelected, getLocationOnScreen, getMargin, getModel, getNodeName, getSelectedItemIndex, getSelectedItems, isDashed, isItemSelected, isItemSelected, isRounded, removeItemSelectionListener, selectItem, selectItem, setDashed, setMargin, setRounded, setSelected |
| Methods inherited from class ca.sqlpower.architect.swingui.PlayPenComponent |
|---|
addPropertyChangeListener, addPropertyChangeListener, addSelectionListener, contains, firePropertyChange, firePropertyChange, fireSelectionEvent, getBackgroundColor, getBounds, getBounds, getFont, getFontMetrics, getFontRenderContext, getForegroundColor, getHeight, getInsets, getLocation, getLocation, getParent, getPlayPen, getPreferredLocation, getPreferredSize, getSize, getToolTipText, getWidth, getX, getY, isOpaque, isSelected, paint, removePropertyChangeListener, removeSelectionListener, repaint, repaint, repaint, revalidate, setBackgroundColor, setBounds, setBoundsImpl, setForegroundColor, setInsets, setLocation, setLocation, setOpaque, setSize, setToolTipText, setUI, showPopup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ca.sqlpower.architect.layout.LayoutNode |
|---|
getBounds, getBounds, getHeight, getLocation, getWidth, getX, getY, setBounds, setLocation, setLocation |
| Constructor Detail |
|---|
public DimensionPane(MondrianModel.Dimension m,
PlayPenContentPane parent)
| Method Detail |
|---|
protected java.util.List<OLAPObject> getItems()
ContainerPane
getItems in class ContainerPane<MondrianModel.Dimension,OLAPObject>public void updateUI()
public java.lang.String toString()
toString in class java.lang.Object
public ca.sqlpower.swingui.DataEntryPanel createEditDialog(PlayPenCoordinate<MondrianModel.Dimension,OLAPObject> coord)
throws ArchitectException
OLAPPane
createEditDialog in class OLAPPane<MondrianModel.Dimension,OLAPObject>coord - Containas information about the OLAPObject that the edit
dialog should be created for.
ArchitectException - If creating an edit dialog failed.protected java.util.List<OLAPObject> filterDroppableItems(java.util.List<OLAPObject> items)
OLAPPaneThis method will always be called by the superclass in the context of a compound edit on the schema this pane's model belongs to.
filterDroppableItems in class OLAPPane<MondrianModel.Dimension,OLAPObject>items - The items that were dropped.
public DimensionPane.HierarchySection findSection(MondrianModel.Hierarchy hierarchy)
public java.util.List<MondrianModel.Level> getSelectedLevels()
protected java.util.List<OLAPObject> getItemsFromCoordinates(java.util.List<PlayPenCoordinate<? extends OLAPObject,? extends OLAPObject>> coords)
OLAPPane
getItemsFromCoordinates in class OLAPPane<MondrianModel.Dimension,OLAPObject>coords - The list of PlayPenCoordinates to convert.
protected void transferInvalidIndexItem(OLAPObject item,
PaneSection<OLAPObject> insertSection)
OLAPPane
transferInvalidIndexItem in class OLAPPane<MondrianModel.Dimension,OLAPObject>item - The item to be transferred.insertSection - The section to be inserted into.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||