ca.sqlpower.architect.swingui.olap
Class OLAPEditSession

java.lang.Object
  extended by ca.sqlpower.architect.swingui.olap.OLAPEditSession
All Implemented Interfaces:
OLAPChildListener

public class OLAPEditSession
extends java.lang.Object
implements OLAPChildListener


Field Summary
static double ZOOM_STEP
           
 
Constructor Summary
OLAPEditSession(ArchitectSwingSession swingSession, OLAPSession olapSession)
          Creates a new editor for the given OLAP schema.
 
Method Summary
 void close()
          Cleans up all resources this session was using.
 AutoLayoutAction getAutoLayoutAction()
           
 CreateCubeAction getCreateCubeAction()
           
 CreateDimensionAction getCreateDimensionAction()
           
 CreateDimensionUsageAction getCreateDimensionUsageAction()
           
 CreateHierarchyAction getCreateHierarchyAction()
           
 CreateLevelAction getCreateLevelAction()
           
 CreateMeasureAction getCreateMeasureAction()
           
 CreateVirtualCubeAction getCreateVirtualCubeAction()
           
 ExportSchemaAction getExportSchemaAction()
           
 javax.swing.JFrame getFrame()
          Returns the OLAP Schema Editor dialog.
 OLAPDeleteSelectedAction getOLAPDeleteSelectedAction()
           
 PlayPen getOlapPlayPen()
          Returns the playpen used within OLAP Schema Editor
 OLAPSession getOlapSession()
          Returns the OLAPSession this this edit session edits.
 OLAPTree getOlapTree()
           
 javax.swing.JScrollPane getPPScrollPane()
          Returns the scroll pane that the PlayPen is in.
 ZoomAction getZoomInAction()
           
 ZoomResetAction getZoomNormalAction()
           
 ZoomAction getZoomOutAction()
           
 ZoomToFitAction getZoomToFitAction()
           
 boolean isModified()
          returns true if any aspect of this session has been modified since it was created or since the last time saveNotify() was called, whichever is more recent.
 void olapChildAdded(OLAPChildEvent e)
          Called just after a new child is added to an OLAPObject.
 void olapChildRemoved(OLAPChildEvent e)
          Called just after a child is removed from an OLAPObject.
 void saveNotify()
          This method must be called just after this session has been saved with the project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZOOM_STEP

public static final double ZOOM_STEP
See Also:
Constant Field Values
Constructor Detail

OLAPEditSession

public OLAPEditSession(ArchitectSwingSession swingSession,
                       OLAPSession olapSession)
Creates a new editor for the given OLAP schema. The schema's OLAPObjects should all belong to the given session's dbtree and playpen. This should only be called by the ArchitectSwingSession, see ArchitectSwingSession.getOLAPEditSession(OLAPSession).

Parameters:
session - The architect swing session this editor and the given schema belong to.
olapSession - The OLAPSession of the schema to edit
Method Detail

getFrame

public javax.swing.JFrame getFrame()
Returns the OLAP Schema Editor dialog. It does not come with location and visibility set.


getOlapPlayPen

public PlayPen getOlapPlayPen()
Returns the playpen used within OLAP Schema Editor


getOlapTree

public OLAPTree getOlapTree()

getPPScrollPane

public javax.swing.JScrollPane getPPScrollPane()
Returns the scroll pane that the PlayPen is in.


close

public void close()
Cleans up all resources this session was using. This method will be called automatically when the Architect swing session closes.


saveNotify

public void saveNotify()
This method must be called just after this session has been saved with the project. It resets the save state, and might do other stuff that client code shouldn't care about.


isModified

public boolean isModified()
returns true if any aspect of this session has been modified since it was created or since the last time saveNotify() was called, whichever is more recent.


getOlapSession

public OLAPSession getOlapSession()
Returns the OLAPSession this this edit session edits.


getCreateDimensionAction

public CreateDimensionAction getCreateDimensionAction()

getCreateCubeAction

public CreateCubeAction getCreateCubeAction()

getCreateVirtualCubeAction

public CreateVirtualCubeAction getCreateVirtualCubeAction()

getCreateMeasureAction

public CreateMeasureAction getCreateMeasureAction()

getCreateHierarchyAction

public CreateHierarchyAction getCreateHierarchyAction()

getCreateLevelAction

public CreateLevelAction getCreateLevelAction()

getExportSchemaAction

public ExportSchemaAction getExportSchemaAction()

getOLAPDeleteSelectedAction

public OLAPDeleteSelectedAction getOLAPDeleteSelectedAction()

getAutoLayoutAction

public AutoLayoutAction getAutoLayoutAction()

olapChildAdded

public void olapChildAdded(OLAPChildEvent e)
Description copied from interface: OLAPChildListener
Called just after a new child is added to an OLAPObject.

Specified by:
olapChildAdded in interface OLAPChildListener
Parameters:
e - The event describing the addition. The event's source will be the parent object which got the new child.

olapChildRemoved

public void olapChildRemoved(OLAPChildEvent e)
Description copied from interface: OLAPChildListener
Called just after a child is removed from an OLAPObject.

Specified by:
olapChildRemoved in interface OLAPChildListener
Parameters:
e - The event describing the removal. The event's source will be the parent object which lost the child.

getZoomInAction

public ZoomAction getZoomInAction()

getZoomOutAction

public ZoomAction getZoomOutAction()

getZoomNormalAction

public ZoomResetAction getZoomNormalAction()

getZoomToFitAction

public ZoomToFitAction getZoomToFitAction()

getCreateDimensionUsageAction

public CreateDimensionUsageAction getCreateDimensionUsageAction()


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