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.RMViewer
GridColor, MarginColor, PRINT_MODE_RASTER, PRINT_MODE_VECTOR
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description RBEditor()
Creates a new Ribs editor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copy()
Overrides RMEditor implementation to make sure shape/component hierarchy is sync'ed.void
delete()
Override RMEditor version to delete binder if one is selected.java.util.Map
getArchiverClassMap()
Returns the Map of tags and classes to be used for unarchiving document shapes.RBDocument
getDocumentRB()
Returns this editor's document as an RBDocument.void
getDragAndDrop()
Overrides RMEditor version to install a drop listener for RBEditor.java.lang.String
getFileDescription()
Returns the description for the editor document for use in open/save panels.java.lang.String
getFileExtension()
Returns extension for editor document.java.awt.Dimension
getPreferredSize()
Overrides viewer method to ensure editor is always at least 575x300.static RBEditor
mainEditorRB()
Returns the main editor as an RBEditor.void
mousePressed(java.awt.event.MouseEvent anEvent)
Override RMEditor method to clear binders.void
selectShapes(java.util.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, undo
-
Methods 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, zoomToggleLast
-
Methods 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, updateUI
-
Methods 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, validateTree
-
Methods 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
-
-
-
-
Method Detail
-
mainEditorRB
public static RBEditor mainEditorRB()
Returns the main editor as an RBEditor.
-
getFileExtension
public java.lang.String getFileExtension()
Returns extension for editor document.- Overrides:
getFileExtension
in classRMEditor
-
getFileDescription
public java.lang.String getFileDescription()
Returns the description for the editor document for use in open/save panels.- Overrides:
getFileDescription
in classRMEditor
-
getDocumentRB
public RBDocument getDocumentRB()
Returns this editor's document as an RBDocument.
-
selectShapes
public void selectShapes(java.util.List shapes)
Override RMEditor method to clear binders.- Overrides:
selectShapes
in classRMEditor
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent anEvent)
Override RMEditor method to clear binders.- Overrides:
mousePressed
in classRMEditor
-
getPreferredSize
public java.awt.Dimension getPreferredSize()
Overrides viewer method to ensure editor is always at least 575x300.- Overrides:
getPreferredSize
in 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:
getDragAndDrop
in classRMEditor
-
getArchiverClassMap
public java.util.Map getArchiverClassMap()
Returns the Map of tags and classes to be used for unarchiving document shapes.- Overrides:
getArchiverClassMap
in classRMEditor
-
-