Package com.ribsapp
Class RBEditor
- java.lang.Object
- 
- java.awt.Component
- 
- java.awt.Container
- 
- javax.swing.JComponent
- 
- com.reportmill.RMViewer
- 
- com.reportmill.editor.RMEditor
- 
- com.ribsapp.RBEditor
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- RMDocument.DocListener,- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.io.Serializable
 
 public class RBEditor extends RMEditor This RMEditor subclass customizes RMEditor behavior for Ribs.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class com.reportmill.RMViewerGridColor, MarginColor, PRINT_MODE_RASTER, PRINT_MODE_VECTOR
 - 
Fields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
- 
 - 
Constructor SummaryConstructors Constructor Description RBEditor()Creates a new Ribs editor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy()Overrides RMEditor implementation to make sure shape/component hierarchy is sync'ed.voiddelete()Override RMEditor version to delete binder if one is selected.java.util.MapgetArchiverClassMap()Returns the Map of tags and classes to be used for unarchiving document shapes.RBDocumentgetDocumentRB()Returns this editor's document as an RBDocument.voidgetDragAndDrop()Overrides RMEditor version to install a drop listener for RBEditor.java.lang.StringgetFileDescription()Returns the description for the editor document for use in open/save panels.java.lang.StringgetFileExtension()Returns extension for editor document.java.awt.DimensiongetPreferredSize()Overrides viewer method to ensure editor is always at least 575x300.static RBEditormainEditorRB()Returns the main editor as an RBEditor.voidmousePressed(java.awt.event.MouseEvent anEvent)Override RMEditor method to clear binders.voidselectShapes(java.util.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, undo
 - 
Methods 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, zoomToggleLast
 - 
Methods 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, updateUI
 - 
Methods 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, validateTree
 - 
Methods 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
 
- 
 
- 
- 
- 
Method Detail- 
mainEditorRBpublic static RBEditor mainEditorRB() Returns the main editor as an RBEditor.
 - 
getFileExtensionpublic java.lang.String getFileExtension() Returns extension for editor document.- Overrides:
- getFileExtensionin class- RMEditor
 
 - 
getFileDescriptionpublic java.lang.String getFileDescription() Returns the description for the editor document for use in open/save panels.- Overrides:
- getFileDescriptionin class- RMEditor
 
 - 
getDocumentRBpublic RBDocument getDocumentRB() Returns this editor's document as an RBDocument.
 - 
selectShapespublic void selectShapes(java.util.List shapes) Override RMEditor method to clear binders.- Overrides:
- selectShapesin class- RMEditor
 
 - 
mousePressedpublic void mousePressed(java.awt.event.MouseEvent anEvent) Override RMEditor method to clear binders.- Overrides:
- mousePressedin class- RMEditor
 
 - 
getPreferredSizepublic java.awt.Dimension getPreferredSize() Overrides 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
 
 - 
getArchiverClassMappublic java.util.Map getArchiverClassMap() Returns the Map of tags and classes to be used for unarchiving document shapes.- Overrides:
- getArchiverClassMapin class- RMEditor
 
 
- 
 
-