Package com.ribsapp
Class RBEditor
- All Implemented Interfaces:
- RMDocument.DocListener,- ImageObserver,- MenuContainer,- Serializable
This RMEditor subclass customizes RMEditor behavior for Ribs.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class javax.swing.JComponentJComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.ContainerContainer.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.ComponentComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
- 
Field SummaryFields inherited from class com.reportmill.RMViewerGridColor, MarginColor, PRINT_MODE_RASTER, PRINT_MODE_VECTORFields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.ComponentaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcopy()Overrides RMEditor implementation to make sure shape/component hierarchy is sync'ed.voiddelete()Override RMEditor version to delete binder if one is selected.Returns the Map of tags and classes to be used for unarchiving document shapes.Returns this editor's document as an RBDocument.voidOverrides RMEditor version to install a drop listener for RBEditor.Returns the description for the editor document for use in open/save panels.Returns extension for editor document.Overrides viewer method to ensure editor is always at least 575x300.static RBEditorReturns the main editor as an RBEditor.voidmousePressed(MouseEvent anEvent) Override RMEditor method to clear binders.voidselectShapes(List shapes) Override RMEditor method to clear binders.Methods inherited from class com.reportmill.editor.RMEditoraddPage, addPage, addPagePrevious, addShapesToShape, addShapeToSelectedShapes, cut, docUndoerAddDirtyObject, firstSuperSelectedShapeThatAcceptsChildren, firstSuperSelectedShapeThatAcceptsChildrenAtPoint, firstSuperSelectedShapeThatAcceptsChildrenOrChildrenSuperSelectImmediately, flushEditingChanges, getChildShapeAtPoint, getCurrentTool, getDataSource, getDataSourceDataset, getEditorShapePainter, getEvents, getSelectedOrSuperSelectedShape, getSelectedOrSuperSelectedShape, getSelectedOrSuperSelectedShapeCount, getSelectedShape, getSelectedShape, getSelectedShapeCount, getSelectedShapes, getSelectedShapesOrSuperSelectedShape, getShapeAtPoint, getSuperSelectedShape, getSuperSelectedShape, getSuperSelectedShapeCount, getSuperSelectedShapes, getTextEditor, getTextEditor, getTextEditor, getValueIsAdjusting, getWindow, isCurrentToolSelectTool, isCurrentToolSelectToolAndSelecting, isManagingFocus, isPreview, mainEditor, mouseDragged, mouseMoved, mouseReleased, paintComponentAbove, paintViewportAbove, paste, popSelection, processKeyEvent, processKeyEventSuper, redo, removePage, removePage, removeShapeFromSelectedShapes, resetCurrentTool, selectAll, selectShape, setCurrentTool, setCurrentTool, setCurrentToolToSelectTool, setDataSource, setDocument, setPreview, setSelectedPageIndex, setZoomFactor, superSelect, superSelectShape, undoMethods inherited from class com.reportmill.RMViewerconvertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, docShapeBoundsChanged, docShapeNeedsRepaint, drawsBackground, flushGraphics, getBook, getDirtyRect, getDocument, getDocumentBounds, getFilename, getMinimumSize, getPageBounds, getPageLayout, getPrintingDPI, getPrintingMode, getRenderingHints, getSelectedPage, getSelectedPageIndex, getShapeAtPoint, getShapePainter, getShapeRepaintEnabled, getTransformFromShape, getUndoer, getZoomFactor, pageBack, pageForward, paintComponent, performActionURLClick, print, print, print2, print2, processMouseEvent, processMouseMotionEvent, repaint, runZoomPanel, setPrintingDPI, setPrintingMode, setShapePainter, setShapeRepaintEnabled, setZoomForScreenResolution, undoerAddChildToShape, undoerDisable, undoerEnable, undoerHasUndos, undoerSetCoalesce, undoerSetUndoTitle, updateShapeUnderStack, zoomToggleLastMethods inherited from class javax.swing.JComponentaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIMethods inherited from class java.awt.Containeradd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
- 
Constructor Details- 
RBEditorpublic RBEditor()Creates a new Ribs editor.
 
- 
- 
Method Details- 
mainEditorRBReturns the main editor as an RBEditor.
- 
getFileExtensionReturns extension for editor document.- Overrides:
- getFileExtensionin class- RMEditor
 
- 
getFileDescriptionReturns the description for the editor document for use in open/save panels.- Overrides:
- getFileDescriptionin class- RMEditor
 
- 
getDocumentRBReturns this editor's document as an RBDocument.
- 
selectShapesOverride RMEditor method to clear binders.- Overrides:
- selectShapesin class- RMEditor
 
- 
mousePressedOverride RMEditor method to clear binders.- Overrides:
- mousePressedin class- RMEditor
 
- 
getPreferredSizeOverrides viewer method to ensure editor is always at least 575x300.- Overrides:
- getPreferredSizein class- RMEditor
 
- 
copypublic void copy()Overrides RMEditor implementation to make sure shape/component hierarchy is sync'ed.
- 
deletepublic void delete()Override RMEditor version to delete binder if one is selected.
- 
getDragAndDroppublic void getDragAndDrop()Overrides RMEditor version to install a drop listener for RBEditor.- Overrides:
- getDragAndDropin class- RMEditor
 
- 
getArchiverClassMapReturns the Map of tags and classes to be used for unarchiving document shapes.- Overrides:
- getArchiverClassMapin class- RMEditor
 
 
-