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 Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class com.reportmill.RMViewer
GridColor, MarginColor, PRINT_MODE_RASTER, PRINT_MODE_VECTORFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier 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.RMEditor
addPage, 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.RMViewer
convertPointFromShape, 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.JComponent
addAncestorListener, 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.Container
add, 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.Component
action, 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
-
RBEditor
public RBEditor()Creates a new Ribs editor.
-
-
Method Details
-
mainEditorRB
Returns the main editor as an RBEditor. -
getFileExtension
Returns extension for editor document.- Overrides:
getFileExtensionin classRMEditor
-
getFileDescription
Returns the description for the editor document for use in open/save panels.- Overrides:
getFileDescriptionin classRMEditor
-
getDocumentRB
Returns this editor's document as an RBDocument. -
selectShapes
Override RMEditor method to clear binders.- Overrides:
selectShapesin classRMEditor
-
mousePressed
Override RMEditor method to clear binders.- Overrides:
mousePressedin classRMEditor
-
getPreferredSize
Overrides viewer method to ensure editor is always at least 575x300.- Overrides:
getPreferredSizein classRMEditor
-
copy
public void copy()Overrides RMEditor implementation to make sure shape/component hierarchy is sync'ed. -
delete
public void delete()Override RMEditor version to delete binder if one is selected. -
getDragAndDrop
public void getDragAndDrop()Overrides RMEditor version to install a drop listener for RBEditor.- Overrides:
getDragAndDropin classRMEditor
-
getArchiverClassMap
Returns the Map of tags and classes to be used for unarchiving document shapes.- Overrides:
getArchiverClassMapin classRMEditor
-