|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.SimpleRootEditPart
org.eclipse.gef.editparts.FreeformGraphicalRootEditPart
org.eclipse.gef.editparts.ScalableFreeformRootEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramRootEditPart
RootEditPart which manages the Diagram's layers and creates the discrete zoom
levels for the ZoomManager.
| Nested Class Summary | |
protected static class |
DiagramRootEditPart.DiagramScalableFreeformLayeredPane
|
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider |
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractEditPart |
AbstractEditPart.EditPolicyIterator |
| Nested classes inherited from class org.eclipse.gef.editparts.LayerManager |
LayerManager.Helper |
| Field Summary | |
static java.lang.String |
DECORATION_PRINTABLE_LAYER
Identifies the layers containing printable decoration layer. |
static java.lang.String |
DECORATION_UNPRINTABLE_LAYER
Identifies the layers containing Unprintable decoration layer. |
static java.lang.String |
PAGE_BREAKS_LAYER
Identifies the layer containing the page breaks figure. |
| Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
figure, sourceConnections, targetConnections |
| Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart |
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG |
| Fields inherited from interface org.eclipse.gef.LayerConstants |
CONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYER |
| Fields inherited from interface org.eclipse.gef.editparts.LayerManager |
ID |
| Fields inherited from interface org.eclipse.gef.EditPart |
SELECTED, SELECTED_NONE, SELECTED_PRIMARY |
| Fields inherited from interface org.eclipse.gef.RequestConstants |
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER |
| Constructor Summary | |
DiagramRootEditPart()
Default constructor |
|
DiagramRootEditPart(MeasurementUnit mu)
|
|
| Method Summary | |
void |
activate()
Adds a listener to the workspace preference store for changes related to the page breaks and diagram grid. |
protected GridLayer |
createGridLayer()
|
protected GridLayer |
createGridLayer(int r,
int g,
int b)
|
protected LayeredPane |
createPrintableLayers()
|
protected ScalableFreeformLayeredPane |
createScalableFreeformLayeredPane()
Creates the ScalableFreeformLayeredPane. |
protected ScalableFreeformLayeredPane |
createScaledLayers()
Creates and returns the scalable layers of this EditPart |
void |
deactivate()
|
double |
getGridSpacing()
Get the Grid Spacing from the Plug-ins preference store |
org.eclipse.gmf.runtime.diagram.ui.internal.ruler.DiagramRuler |
getHorizontalRuler()
|
protected ScalableFreeformLayeredPane |
getLayers()
Accessor for scalable layers. |
org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode |
getMapMode()
Clients must define the measurement unit in the Diagram notation
object for their editor to affect this mapping mode object value. |
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.PageBreakEditPart |
getPageBreakEditPart()
Returns the PageBreakEditPart controlled by this RootEditPart. |
PreferencesHint |
getPreferencesHint()
Gets the preferences hint that is to be used to find the appropriate preference store from which to retrieve diagram preference values. |
org.eclipse.gmf.runtime.diagram.ui.internal.ruler.DiagramRuler |
getVerticalRuler()
|
protected IPreferenceStore |
getWorkspaceViewerPreferences()
Convience method to access the workspace viewer preferences. |
ZoomManager |
getZoomManager()
Override to set a non-default zoom levels |
protected void |
moveGridLayer(boolean inFront)
|
void |
performRequest(Request request)
This is a workspace property request. |
protected void |
refreshEnableAntiAlias()
Refreshes anti-alias status on the diagram |
protected void |
refreshPageBreaks()
Refreshes the page breaks. |
protected void |
refreshRulerUnits()
Refreshes ruler units on the diagram |
void |
refreshVisuals()
Refresh visuals in order to enable anti-aliasing |
void |
setGridColor(java.lang.Integer rgbValue)
Sets the grid line color. |
void |
setGridSpacing(double gridSpacing)
This method is called to set the grid spacing. |
void |
setGridStyle(int style)
Sets the grid line style. |
protected void |
setLayers(ScalableFreeformLayeredPane layers)
|
void |
setPreferencesHint(PreferencesHint preferenceHint)
Sets the preferences hint that is to be used to find the appropriate preference store from which to retrieve diagram preference values. |
void |
zoomIn()
zoomIn Method will zoom in the EditPart to the next available level |
void |
zoomIn(Point center)
zoomIn Method will zoom in the EditPart to the next available level centered around a given point |
void |
zoomOut()
zoomOut Method will zoom out the EditPart to the next available level |
void |
zoomOut(Point center)
zoomOut Method will zoom out the EditPart to the next available level centered around a given point |
void |
zoomTo(double zoom,
Point center)
zoomTo This method allows implementators to zoom to a certain level centered around a given point. |
void |
zoomTo(Rectangle rect)
zoomTo This method allows implementors to zoom into or out to a rectangular area. |
| Methods inherited from class org.eclipse.gef.editparts.ScalableFreeformRootEditPart |
createLayers, getLayer, getScaledLayers, register, unregister |
| Methods inherited from class org.eclipse.gef.editparts.FreeformGraphicalRootEditPart |
createFigure, getAdapter, getContentPane, getDragTracker, getModel, getPrintableLayers, refreshGridLayer |
| Methods inherited from class org.eclipse.gef.editparts.SimpleRootEditPart |
createEditPolicies, getCommand, getContents, getRoot, getViewer, refreshChildren, setContents, setViewer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.gef.EditPart |
addEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getChildren, getEditPolicy, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
| Field Detail |
public static final java.lang.String PAGE_BREAKS_LAYER
public static final java.lang.String DECORATION_PRINTABLE_LAYER
public static final java.lang.String DECORATION_UNPRINTABLE_LAYER
| Constructor Detail |
public DiagramRootEditPart()
public DiagramRootEditPart(MeasurementUnit mu)
mu - the MeasurementUnit that is used to display all contents
within the root edit part.| Method Detail |
protected LayeredPane createPrintableLayers()
protected void moveGridLayer(boolean inFront)
protected ScalableFreeformLayeredPane createScaledLayers()
protected ScalableFreeformLayeredPane createScalableFreeformLayeredPane()
ScalableFreeformLayeredPane.
ScalableFreeformLayeredPanepublic ZoomManager getZoomManager()
public void zoomTo(double zoom,
Point center)
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPart
zoomTo in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPartzoom - double value where 1.0 represents 100%.center - Point around which the zoom will be centered in absolute coordinatespublic void zoomTo(Rectangle rect)
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPart
zoomTo in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPartrect - Rectangle that the edit part will zoom into our out to in absolute coordinates.public void zoomIn()
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPart
zoomIn in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPartpublic void zoomIn(Point center)
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPart
zoomIn in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPartcenter - Point around which the zoom will be centered in absolute coordinatespublic void zoomOut()
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPart
zoomOut in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPartpublic void zoomOut(Point center)
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPart
zoomOut in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ZoomableEditPartcenter - Point around which the zoom will be centered in absolute coordinatesprotected IPreferenceStore getWorkspaceViewerPreferences()
public double getGridSpacing()
public void setGridStyle(int style)
style - public void setGridColor(java.lang.Integer rgbValue)
public void setGridSpacing(double gridSpacing)
gridSpacing - public org.eclipse.gmf.runtime.diagram.ui.internal.editparts.PageBreakEditPart getPageBreakEditPart()
PageBreakEditPartprotected void refreshPageBreaks()
public void refreshVisuals()
protected void refreshEnableAntiAlias()
protected void refreshRulerUnits()
public void performRequest(Request request)
Command
to execute since it does not change the model.
performRequest in interface EditPartrequest - public void activate()
activate in interface EditPartpublic void deactivate()
deactivate in interface EditPartprotected ScalableFreeformLayeredPane getLayers()
protected void setLayers(ScalableFreeformLayeredPane layers)
public void setPreferencesHint(PreferencesHint preferenceHint)
IDiagramPreferenceSupport
setPreferencesHint in interface IDiagramPreferenceSupportpublic PreferencesHint getPreferencesHint()
IDiagramPreferenceSupport
getPreferencesHint in interface IDiagramPreferenceSupportpublic final org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode getMapMode()
Diagram notation
object for their editor to affect this mapping mode object value.
IMapMode that is the coordinate mapping for the Editor from device to
logical coordinates.public org.eclipse.gmf.runtime.diagram.ui.internal.ruler.DiagramRuler getHorizontalRuler()
public org.eclipse.gmf.runtime.diagram.ui.internal.ruler.DiagramRuler getVerticalRuler()
protected GridLayer createGridLayer()
protected GridLayer createGridLayer(int r,
int g,
int b)
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.