Package docking.widgets.fieldpanel
Class FieldPanel
- java.lang.Object
- 
- java.awt.Component
- 
- java.awt.Container
- 
- javax.swing.JComponent
- 
- javax.swing.JPanel
- 
- docking.widgets.fieldpanel.FieldPanel
 
 
 
 
 
- 
- All Implemented Interfaces:
- LayoutModelListener,- IndexedScrollable,- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.io.Serializable,- java.util.EventListener,- javax.accessibility.Accessible,- javax.swing.event.ChangeListener
 
 public class FieldPanel extends javax.swing.JPanel implements IndexedScrollable, LayoutModelListener, javax.swing.event.ChangeListener - See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classFieldPanel.BigFieldPanelMouseWheelListenerclassFieldPanel.CursorHandlerclassFieldPanel.FieldPanelFocusListenerclassFieldPanel.FieldPanelMouseAdapterclassFieldPanel.FieldPanelMouseMotionAdapterclassFieldPanel.MouseHandler- 
Nested classes/interfaces inherited from class javax.swing.JPaneljavax.swing.JPanel.AccessibleJPanel
 - 
Nested classes/interfaces inherited from class javax.swing.JComponentjavax.swing.JComponent.AccessibleJComponent
 
- 
 - 
Field Summary- 
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 FieldPanel(LayoutModel model)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFieldInputListener(FieldInputListener listener)voidaddFieldLocationListener(FieldLocationListener listener)voidaddFieldMouseListener(FieldMouseListener listener)voidaddFieldSelectionListener(FieldSelectionListener listener)voidaddHighlightListener(FieldSelectionListener listener)voidaddIndexScrollListener(IndexScrollListener listener)voidaddLayoutListener(LayoutListener listener)voidaddViewListener(ViewListener listener)voidcenter(FieldLocation location)voidclearHighlight()Clears the marked area highlight;voidclearSelection()Clears the selection;voidcursorBottomOfFile()voidcursorDown()voidcursorEnd()Moves the cursor to the end of the line.voidcursorHome()Moves the cursor to the beginning of the line.voidcursorLeft()voidcursorRight()voidcursorTopOfFile()voidcursorUp()voiddataChanged(java.math.BigInteger start, java.math.BigInteger end)Called when the data at an index or range of indexes changes.voiddispose()Cleans up resources when this FieldPanel is no longer needed.voidenableSelection(boolean b)java.awt.ColorgetBackground()java.awt.ColorgetBackgroundColor()Returns the default background color.java.awt.ColorgetBackgroundColor(java.math.BigInteger index)FieldgetCurrentField()java.awt.RectanglegetCursorBounds()FieldLocationgetCursorLocation()intgetCursorOffset()Returns the offset of the cursor from the top of the screenjava.awt.PointgetCursorPoint()Returns the point in pixels of where the cursor is located.FieldgetFieldAt(int x, int y, FieldLocation loc)Returns the Field at the given x,y coordinates.java.awt.ColorgetFocusedCursorColor()Returns the current cursor color.java.awt.ColorgetForegroundColor()Returns the foreground color.intgetHeight(java.math.BigInteger index)FieldSelectiongetHighlight()Returns the current highlight (marked area).java.awt.ColorgetHighlightColor()Returns the color color used as the background for highlighted items.HoverHandlergetHoverHandler()Returns the class responsible for triggering popups for this field panel.java.math.BigIntegergetIndexAfter(java.math.BigInteger index)java.math.BigIntegergetIndexBefore(java.math.BigInteger index)java.math.BigIntegergetIndexCount()LayoutModelgetLayoutModel()java.awt.ColorgetNonFocusCursorColor()intgetOffset(FieldLocation location)java.awt.DimensiongetPreferredSize()FieldSelectiongetSelection()Returns the current selection.java.awt.ColorgetSelectionColor()Returns the color used as the background for selected items.ViewerPositiongetViewerPosition()Returns a ViewerPosition object which contains the top of screen information.AnchoredLayoutgetVisibleEndLayout()Returns the last visible layout or null if there are no visible layoutsjava.util.List<AnchoredLayout>getVisibleLayouts()AnchoredLayoutgetVisibleStartLayout()Returns the first visible layout or null if there are no visible layoutsvoidgoTo(java.math.BigInteger index, int fieldNum, int row, int col, boolean alwaysCenterCursor)Sets the cursor to the given Field location and attempts to show that location in the center of the screen.protected voidgoTo(java.math.BigInteger index, int fieldNum, int row, int col, boolean alwaysCenterCursor, EventTrigger trigger)booleanisCursorOn()Returns the state of the cursor.booleanisFocused()booleanisLocationVisible(FieldLocation location)Returns true if the given field location is rendered on the screen; false if scrolled offscreenbooleanisStartDragOK()booleanisUniformIndex()voidmodelSizeChanged(IndexMapper indexMapper)Called whenever the number of indexes changedvoidpageDown()voidpageUp()protected voidpaintComponent(java.awt.Graphics g)voidpositionCursor(int offset)Scrolls the view so that the cursor is at the given offset from the top of the screenvoidremoveFieldInputListener(FieldInputListener listener)voidremoveFieldLocationListener(FieldLocationListener listener)voidremoveFieldMouseListener(FieldMouseListener listener)voidremoveFieldSelectionListener(FieldSelectionListener listener)voidremoveHighlightListener(FieldSelectionListener listener)voidremoveIndexScrollListener(IndexScrollListener listener)voidremoveLayoutListener(LayoutListener listener)voidremoveViewListener(ViewListener listener)voidrepaint()voidscrollLineDown()voidscrollLineUp()voidscrollPageDown()voidscrollPageUp()voidscrollTo(FieldLocation fieldLocation)voidscrollToCursor()voidscrollView(int viewAmount)voidsetBackgroundColor(java.awt.Color c)Sets the default background colorvoidsetBackgroundColorModel(BackgroundColorModel model)voidsetBlinkCursor(java.lang.Boolean blinkCursor)voidsetBounds(int x, int y, int width, int height)voidsetCursorOn(boolean cursorOn)Sets the cursor on or off.booleansetCursorPosition(java.math.BigInteger index, int fieldNum, int row, int col)Sets the cursorPosition to the given location.protected booleansetCursorPosition(java.math.BigInteger index, int fieldNum, int row, int col, EventTrigger trigger)voidsetFocusedCursorColor(java.awt.Color color)Sets the cursor color for when this component has focus.voidsetHighlight(FieldSelection sel)Sets the current highlight to the specified field selection.voidsetHighlightColor(java.awt.Color color)Sets the highlight colorvoidsetHorizontalScrollingEnabled(boolean enabled)voidsetHoverProvider(HoverProvider hoverProvider)Add a new hover service to be managed.voidsetLayoutModel(LayoutModel model)Sets the layout model for this field panelvoidsetNonFocusCursorColor(java.awt.Color color)Sets the cursor color for when this component does not have focus.voidsetSelection(FieldSelection sel)Sets the current selection.voidsetSelectionColor(java.awt.Color color)Sets the selection colorvoidsetViewerPosition(java.math.BigInteger index, int xPos, int yPos)Scrolls the display to show the layout specified by index at the vertical position specified by yPos.voidshowIndex(java.math.BigInteger layoutIndex, int verticalOffset)voidstateChanged(javax.swing.event.ChangeEvent e)voidtakeFocus()Tell the panel to grab the keyboard input focus.- 
Methods inherited from class javax.swing.JPanelgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 - 
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, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, 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
 - 
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
- 
 
- 
- 
- 
Constructor Detail- 
FieldPanelpublic FieldPanel(LayoutModel model) 
 
- 
 - 
Method Detail- 
showIndexpublic void showIndex(java.math.BigInteger layoutIndex, int verticalOffset)- Specified by:
- showIndexin interface- IndexedScrollable
 
 - 
scrollViewpublic void scrollView(int viewAmount) 
 - 
scrollTopublic void scrollTo(FieldLocation fieldLocation) 
 - 
centerpublic void center(FieldLocation location) 
 - 
scrollLineDownpublic void scrollLineDown() - Specified by:
- scrollLineDownin interface- IndexedScrollable
 
 - 
scrollLineUppublic void scrollLineUp() - Specified by:
- scrollLineUpin interface- IndexedScrollable
 
 - 
scrollPageDownpublic void scrollPageDown() - Specified by:
- scrollPageDownin interface- IndexedScrollable
 
 - 
scrollPageUppublic void scrollPageUp() - Specified by:
- scrollPageUpin interface- IndexedScrollable
 
 - 
pageUppublic void pageUp() 
 - 
pageDownpublic void pageDown() 
 - 
getHeightpublic int getHeight(java.math.BigInteger index) - Specified by:
- getHeightin interface- IndexedScrollable
 
 - 
getIndexAfterpublic java.math.BigInteger getIndexAfter(java.math.BigInteger index) - Specified by:
- getIndexAfterin interface- IndexedScrollable
 
 - 
getIndexBeforepublic java.math.BigInteger getIndexBefore(java.math.BigInteger index) - Specified by:
- getIndexBeforein interface- IndexedScrollable
 
 - 
getIndexCountpublic java.math.BigInteger getIndexCount() - Specified by:
- getIndexCountin interface- IndexedScrollable
 
 - 
isUniformIndexpublic boolean isUniformIndex() - Specified by:
- isUniformIndexin interface- IndexedScrollable
 
 - 
cursorUppublic void cursorUp() 
 - 
cursorDownpublic void cursorDown() 
 - 
cursorLeftpublic void cursorLeft() 
 - 
cursorRightpublic void cursorRight() 
 - 
cursorHomepublic void cursorHome() Moves the cursor to the beginning of the line.
 - 
cursorTopOfFilepublic void cursorTopOfFile() 
 - 
cursorBottomOfFilepublic void cursorBottomOfFile() 
 - 
cursorEndpublic void cursorEnd() Moves the cursor to the end of the line.
 - 
getVisibleLayoutspublic java.util.List<AnchoredLayout> getVisibleLayouts() 
 - 
isLocationVisiblepublic boolean isLocationVisible(FieldLocation location) Returns true if the given field location is rendered on the screen; false if scrolled offscreen- Parameters:
- location- the location to check
- Returns:
- true if the location is on the screen
 
 - 
getVisibleStartLayoutpublic AnchoredLayout getVisibleStartLayout() Returns the first visible layout or null if there are no visible layouts- Returns:
- the first visible layout
 
 - 
getVisibleEndLayoutpublic AnchoredLayout getVisibleEndLayout() Returns the last visible layout or null if there are no visible layouts- Returns:
- the last visible layout
 
 - 
repaintpublic void repaint() - Overrides:
- repaintin class- java.awt.Component
 
 - 
getPreferredSizepublic java.awt.Dimension getPreferredSize() - Overrides:
- getPreferredSizein class- javax.swing.JComponent
 
 - 
stateChangedpublic void stateChanged(javax.swing.event.ChangeEvent e) - Specified by:
- stateChangedin interface- javax.swing.event.ChangeListener
 
 - 
setBoundspublic void setBounds(int x, int y, int width, int height)- Overrides:
- setBoundsin class- java.awt.Component
 
 - 
setBlinkCursorpublic void setBlinkCursor(java.lang.Boolean blinkCursor) 
 - 
enableSelectionpublic void enableSelection(boolean b) 
 - 
setHorizontalScrollingEnabledpublic void setHorizontalScrollingEnabled(boolean enabled) 
 - 
getBackgroundColorpublic java.awt.Color getBackgroundColor() Returns the default background color.
 - 
getBackgroundpublic java.awt.Color getBackground() - Overrides:
- getBackgroundin class- java.awt.Component
 
 - 
setBackgroundColorpublic void setBackgroundColor(java.awt.Color c) Sets the default background color- Parameters:
- c- the color to use for the background.
 
 - 
getBackgroundColorpublic java.awt.Color getBackgroundColor(java.math.BigInteger index) 
 - 
setBackgroundColorModelpublic void setBackgroundColorModel(BackgroundColorModel model) 
 - 
getForegroundColorpublic java.awt.Color getForegroundColor() Returns the foreground color.
 - 
getSelectionColorpublic java.awt.Color getSelectionColor() Returns the color used as the background for selected items.
 - 
getHighlightColorpublic java.awt.Color getHighlightColor() Returns the color color used as the background for highlighted items.
 - 
getFocusedCursorColorpublic java.awt.Color getFocusedCursorColor() Returns the current cursor color.
 - 
getNonFocusCursorColorpublic java.awt.Color getNonFocusCursorColor() 
 - 
isFocusedpublic boolean isFocused() 
 - 
disposepublic void dispose() Cleans up resources when this FieldPanel is no longer needed.
 - 
getCursorPointpublic java.awt.Point getCursorPoint() Returns the point in pixels of where the cursor is located.
 - 
getCursorBoundspublic java.awt.Rectangle getCursorBounds() 
 - 
getCursorLocationpublic FieldLocation getCursorLocation() 
 - 
getCurrentFieldpublic Field getCurrentField() 
 - 
addIndexScrollListenerpublic void addIndexScrollListener(IndexScrollListener listener) - Specified by:
- addIndexScrollListenerin interface- IndexedScrollable
 
 - 
removeIndexScrollListenerpublic void removeIndexScrollListener(IndexScrollListener listener) - Specified by:
- removeIndexScrollListenerin interface- IndexedScrollable
 
 - 
addFieldSelectionListenerpublic void addFieldSelectionListener(FieldSelectionListener listener) 
 - 
removeFieldSelectionListenerpublic void removeFieldSelectionListener(FieldSelectionListener listener) 
 - 
addHighlightListenerpublic void addHighlightListener(FieldSelectionListener listener) 
 - 
removeHighlightListenerpublic void removeHighlightListener(FieldSelectionListener listener) 
 - 
addFieldMouseListenerpublic void addFieldMouseListener(FieldMouseListener listener) 
 - 
removeFieldMouseListenerpublic void removeFieldMouseListener(FieldMouseListener listener) 
 - 
addFieldInputListenerpublic void addFieldInputListener(FieldInputListener listener) 
 - 
removeFieldInputListenerpublic void removeFieldInputListener(FieldInputListener listener) 
 - 
addFieldLocationListenerpublic void addFieldLocationListener(FieldLocationListener listener) 
 - 
removeFieldLocationListenerpublic void removeFieldLocationListener(FieldLocationListener listener) 
 - 
addLayoutListenerpublic void addLayoutListener(LayoutListener listener) 
 - 
removeLayoutListenerpublic void removeLayoutListener(LayoutListener listener) 
 - 
addViewListenerpublic void addViewListener(ViewListener listener) 
 - 
removeViewListenerpublic void removeViewListener(ViewListener listener) 
 - 
setHoverProviderpublic void setHoverProvider(HoverProvider hoverProvider) Add a new hover service to be managed.- Parameters:
- hoverService- the new hover service to be managed.
 
 - 
getHoverHandlerpublic HoverHandler getHoverHandler() Returns the class responsible for triggering popups for this field panel.- Returns:
- the hover handler.
 
 - 
getFieldAtpublic Field getFieldAt(int x, int y, FieldLocation loc) Returns the Field at the given x,y coordinates. Note the x,y must currently be visible on the screen or else this method will return null.- Parameters:
- x- the x mouse coordinate in the component.
- y- the y mouse coordinate in the component.
- loc- will be filled in with the FieldLocation for the given point. Values will be undefined if the Field return value is null.
- Returns:
- Field the Field object the point is over.
 
 - 
clearSelectionpublic void clearSelection() Clears the selection;
 - 
clearHighlightpublic void clearHighlight() Clears the marked area highlight;
 - 
setFocusedCursorColorpublic void setFocusedCursorColor(java.awt.Color color) Sets the cursor color for when this component has focus.- Parameters:
- color- Color to use for the cursor when this component has keyboard focus.
 
 - 
setNonFocusCursorColorpublic void setNonFocusCursorColor(java.awt.Color color) Sets the cursor color for when this component does not have focus.- Parameters:
- color- Color to use for the cursor when this component does not have keyboard focus.
 
 - 
getSelectionpublic FieldSelection getSelection() Returns the current selection.
 - 
getHighlightpublic FieldSelection getHighlight() Returns the current highlight (marked area).
 - 
setSelectionpublic void setSelection(FieldSelection sel) Sets the current selection.- Parameters:
- sel- the selection to set.
 
 - 
setHighlightpublic void setHighlight(FieldSelection sel) Sets the current highlight to the specified field selection.- Parameters:
- sel- the selection to set as the highlight.
 
 - 
setCursorPositionpublic boolean setCursorPosition(java.math.BigInteger index, int fieldNum, int row, int col)Sets the cursorPosition to the given location.- Parameters:
- index- the index of the Layout on which to place the cursor.
- fieldNum- the index of the field within its layout on which to place the cursor.
- row- the row within the field to place the cursor.
- col- the col within the row to place the cursor.
- Returns:
- true if the cursor changed
 
 - 
setCursorPositionprotected boolean setCursorPosition(java.math.BigInteger index, int fieldNum, int row, int col, EventTrigger trigger)
 - 
setCursorOnpublic void setCursorOn(boolean cursorOn) Sets the cursor on or off. When the cursor is turned off, there is no visible cursor displayed on the screen.- Parameters:
- cursorOn- true turns the cursor on, false turns it off.
 
 - 
isCursorOnpublic boolean isCursorOn() Returns the state of the cursor. True if on, false if off.
 - 
scrollToCursorpublic void scrollToCursor() 
 - 
goTopublic void goTo(java.math.BigInteger index, int fieldNum, int row, int col, boolean alwaysCenterCursor)Sets the cursor to the given Field location and attempts to show that location in the center of the screen.- Parameters:
- index- the index of the line to go to.
- fieldNum- the field on the line to go to.
- row- the row in the field to go to.
- col- the column in the field to go to.
- alwaysCenterCursor- if true, centers cursor on screen. Otherwise, only centers cursor if cursor is offscreen.
 
 - 
goToprotected void goTo(java.math.BigInteger index, int fieldNum, int row, int col, boolean alwaysCenterCursor, EventTrigger trigger)
 - 
takeFocuspublic void takeFocus() Tell the panel to grab the keyboard input focus.
 - 
positionCursorpublic void positionCursor(int offset) Scrolls the view so that the cursor is at the given offset from the top of the screen- Parameters:
- offset- the pixel distance from the top of the screen at which to scroll the display such that the cursor is at that offset.
 
 - 
isStartDragOKpublic boolean isStartDragOK() 
 - 
setSelectionColorpublic void setSelectionColor(java.awt.Color color) Sets the selection color- Parameters:
- color- the color to use for selection.
 
 - 
setHighlightColorpublic void setHighlightColor(java.awt.Color color) Sets the highlight color- Parameters:
- color- the color to use for highlights.
 
 - 
getViewerPositionpublic ViewerPosition getViewerPosition() Returns a ViewerPosition object which contains the top of screen information. The ViewerPosition will have the index of the layout at the top of the screen and the yPos of that layout. For example, if the layout is completely displayed, yPos will be 0. If part of the layout is off the top off the screen, then yPos will have a negative value (indicating that it begins above the displayable part of the screen.
 - 
setViewerPositionpublic void setViewerPosition(java.math.BigInteger index, int xPos, int yPos)Scrolls the display to show the layout specified by index at the vertical position specified by yPos. Generally, the index will be layout at the top of the screen and the yPos will be <= 0, meaning the layout may be partially off the top of the screen.- Parameters:
- index- the index of the layout to show at the top of the screen.
- yPos- the position to show the layout.
 
 - 
getLayoutModelpublic LayoutModel getLayoutModel() 
 - 
setLayoutModelpublic void setLayoutModel(LayoutModel model) Sets the layout model for this field panel- Parameters:
- model- the layout model to use.
 
 - 
dataChangedpublic void dataChanged(java.math.BigInteger start, java.math.BigInteger end)Description copied from interface:LayoutModelListenerCalled when the data at an index or range of indexes changes.- Specified by:
- dataChangedin interface- LayoutModelListener
- Parameters:
- start- the starting index for the region of data changes.
- end- the ending index (inclusive) for the region of data changes.
 
 - 
modelSizeChangedpublic void modelSizeChanged(IndexMapper indexMapper) Description copied from interface:LayoutModelListenerCalled whenever the number of indexes changed- Specified by:
- modelSizeChangedin interface- LayoutModelListener
- Parameters:
- indexMapper- Maps indexes from before the model size change to indexes after the model size changed.
 
 - 
paintComponentprotected void paintComponent(java.awt.Graphics g) - Overrides:
- paintComponentin class- javax.swing.JComponent
 
 - 
getOffsetpublic int getOffset(FieldLocation location) 
 - 
getCursorOffsetpublic int getCursorOffset() Returns the offset of the cursor from the top of the screen
 
- 
 
-