|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--SSspreadPanel
Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
(package private) java.awt.Font |
buttonFont
ARG: cell label font |
(package private) java.awt.Font |
cellDataFont
ARG: cell data font |
(package private) int[] |
cellFormat
ARG: cell type fields[0:cols-1] one of CELL_NOP,CELL_URL, CELL_EXPR_PROFILE in user data space... |
(package private) SStextArray |
cells
the array of SStextCell cells |
(package private) java.awt.Font |
cellUrlFont
ARG: cell URL font |
(package private) int |
currentValueH
|
(package private) int |
currentValueV
|
(package private) java.awt.Font |
dataFontSize
Calculated default or overidden |
(package private) java.lang.String[][] |
dataURL
opt. |
(package private) int |
fontSize
ARG: only if no fonts specified |
(package private) int |
headerClickedCol
|
(package private) java.awt.Font |
headerFontSize
Calculated default or overidden |
(package private) int[] |
index
for sorting |
(package private) java.awt.GridLayout |
lay
|
(package private) int |
locCol
|
(package private) int |
locRow
|
(package private) MAExplorer |
mae
|
(package private) int |
offSet
|
(package private) int |
oldPosition
keep track of col last clicked |
private int |
positionX
ULHC base address starting at (1,1) |
private int |
positionY
ULHC base address starting at (1,1) |
(package private) int |
prepCols
ARG: user data size |
(package private) java.lang.String[][] |
prepDataEdit
"virt. |
(package private) java.lang.String[][] |
prepDataOrig
ARG orig. |
(package private) int |
prepRows
ARG: user data size |
(package private) SSscrollHorizontal |
sh
|
(package private) boolean |
sortAsendDesendFlag
keep track of desend/ascending |
(package private) ShowSpreadsheetPopup |
ssp
pass down globals |
(package private) SSstatusBar |
status
[RC] & full cell contents displayed @top |
(package private) SSscrollVertical |
sv
scroll bars |
(package private) boolean |
urlPopupFlag
popup browser flag |
(package private) int |
virCols
ARG: "virtual screen" size |
(package private) int |
virRows
ARG: "virtual screen" size that is visible |
Fields inherited from class java.awt.Panel |
base, nameCounter, serialVersionUID |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads |
Fields inherited from class java.awt.Component |
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
(package private) |
SSspreadPanel(MAExplorer mae,
int virRows,
int virCols,
java.lang.String[][] prepDataOrig,
int prepRows,
int prepCols,
int fontSize,
java.awt.Font cellDataFont,
java.awt.Font buttonFont)
SSspreadPanel() - constructor, inits the grid with values without the URL font and fields. |
(package private) |
SSspreadPanel(java.lang.String[][] prepDataOrig,
ShowSpreadsheetPopup ssp,
MAExplorer mae,
int virRows,
int virCols,
int prepRows,
int prepCols,
int fontSize,
java.awt.Font cellUrlFont,
java.awt.Font cellDataFont,
java.awt.Font buttonFont,
int[] cellFormat,
java.lang.String[][] dataURL)
SSspreadPanel() - constructor, panel holding (row,col) matrix of TextFields with the URL font and fields. |
Method Summary | |
(package private) void |
cellAdjust(java.awt.event.MouseEvent e)
cellAdjust() - take action for mouse clicks on individual cells |
(package private) void |
deleteColumn(int k)
deleteColumn() - delete the k-th col |
private void |
doSSspreadPanel()
doSSspreadPanel() - actually build the spreadsheet panel |
(package private) java.lang.String |
getValue(int i,
int j)
getValue() - get a single value from prepDataEdit cell(i,j) |
(package private) java.lang.String[][] |
getValues()
getValues() - get all values in a String[][] array |
(package private) void |
initValues()
initValues() - show prepDataEdit inside the grid in U.L.H.C. |
(package private) void |
initValues(java.lang.String[][] data)
initValues() - show prepDataEdit inside grid in U.L.H.C. |
(package private) void |
insertColumn(int k)
insertColumn() - insert a row at k'th row |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
mousePressed() - handle mouse Press events |
void |
mouseReleased(java.awt.event.MouseEvent e)
|
private boolean |
moveColHeader(int diff)
moveColHeader() - move the head of cols use negative ints for moving left. |
(package private) void |
moveDown(int diff)
moveDown() - move diff cells down |
(package private) void |
moveLeft(int diff)
moveLeft() - move diff cells to the left |
(package private) void |
moveRight(int diff)
moveRight() - move diff cells to the right |
private boolean |
moveRowHeader(int diff)
moveRowHeader() - move first cell of rows use negative ints for moving down. |
(package private) void |
moveUp(int diff)
moveUp() - move diff cells up |
private void |
setCellFontAndColor(int r,
int c)
setCellFontAndColor() - use dataFont or cellUrlFont depending on cell(r,c) |
(package private) java.lang.String[][] |
sortSpreadsheet(int oldPosition,
int colToSort,
int prepCols,
int prepRows,
java.lang.String[][] unsortedData)
sortSpreadsheet() - sort entire spread sheet based on column clicked. |
Methods inherited from class java.awt.Panel |
|
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paint, paintComponents, paintHeavyweightComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, setLayout, transferFocus, update, validate, validateTree, writeObject |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
MAExplorer mae
SStextArray cells
int currentValueV
int currentValueH
private int positionX
private int positionY
SSscrollVertical sv
SSscrollHorizontal sh
SSstatusBar status
java.awt.Font dataFontSize
java.awt.Font headerFontSize
int headerClickedCol
int[] index
int virRows
int virCols
int prepRows
int prepCols
int fontSize
java.lang.String[][] dataURL
java.lang.String[][] prepDataEdit
java.lang.String[][] prepDataOrig
java.awt.Font cellUrlFont
java.awt.Font cellDataFont
java.awt.Font buttonFont
int locRow
int locCol
int oldPosition
int offSet
int[] cellFormat
ShowSpreadsheetPopup ssp
boolean urlPopupFlag
boolean sortAsendDesendFlag
java.awt.GridLayout lay
Constructor Detail |
SSspreadPanel(java.lang.String[][] prepDataOrig, ShowSpreadsheetPopup ssp, MAExplorer mae, int virRows, int virCols, int prepRows, int prepCols, int fontSize, java.awt.Font cellUrlFont, java.awt.Font cellDataFont, java.awt.Font buttonFont, int[] cellFormat, java.lang.String[][] dataURL)
prepDataOrig
- is user data[0:usrRawData][]ssp
- is instance of ShowSpreadsheetPopupmae
- is instance of MAExplorervirRows
- is # of virtual rows i.e. size of prepDataEdit[][]virCols
- is # of virtual columns i.e. size of prepDataEdit[][]prepRows
- is the size of prepDataOrigprepCols
- is the size of prepDataOrigfontSize
- is 8, 10, 12, 14cellUrlFont
- is the cell URL fontcellDataFont
- is the cell data fontbuttonFont
- is the cell label fontcellFormat[]
- is the cell type fieldsdataURL[][]
- is the data for URLs if not nulldoSSspreadPanel()
SSspreadPanel(MAExplorer mae, int virRows, int virCols, java.lang.String[][] prepDataOrig, int prepRows, int prepCols, int fontSize, java.awt.Font cellDataFont, java.awt.Font buttonFont)
mae
- is instance of MAExplorervirRows
- is # of virtual rows i.e. size of prepDataEdit[][]virCols
- is # of virtual columns i.e. size of prepDataEdit[][]prepDataOrig
- is user data[0:usrRawData][]prepRows
- is the size of prepDataOrigprepCols
- is the size of prepDataOrigfontSize
- is 8, 10, 12, 14cellDataFont
- is the cell data fontbuttonFont
- is the cell label fontdoSSspreadPanel()
,
initValues()
Method Detail |
private void doSSspreadPanel()
SSscrollHorizontal
,
SSscrollVertical
,
SSstatusBar
,
SStextArray
,
SStextArray.getTextField(int, int)
private void setCellFontAndColor(int r, int c)
r
- is row of cellc
- is column of cellSStextArray.getTextField(int, int)
java.lang.String[][] sortSpreadsheet(int oldPosition, int colToSort, int prepCols, int prepRows, java.lang.String[][] unsortedData)
oldPosition
- colToSort
- column to sortprepCols
- is # actual data colsprepRows
- is # actual data colsunsortedData
- is unsorted data to be stroedSortMAE.bubbleSortIndex(java.lang.String[], int, boolean)
,
Util.cvs2f(java.lang.String)
void initValues()
SStextArray.getTextField(int, int)
void initValues(java.lang.String[][] data)
data
- to useinitValues()
java.lang.String getValue(int i, int j)
i
- coordinate of cellj
- coordinate of celljava.lang.String[][] getValues()
private boolean moveColHeader(int diff)
diff
- is amount to move the column headerSStextArray.getTextField(int, int)
private boolean moveRowHeader(int diff)
diff
- is amount to move the row headervoid moveUp(int diff)
diff
- is amount to move the cells upSStextArray.getTextField(int, int)
,
moveRowHeader(int)
void moveDown(int diff)
diff
- is amount to move the cells downSStextArray.getTextField(int, int)
,
moveRowHeader(int)
void moveRight(int diff)
diff
- is amount to move the cells rightSStextArray.getTextField(int, int)
,
moveColHeader(int)
,
setCellFontAndColor(int, int)
void moveLeft(int diff)
diff
- is amount to move the cells leftSStextArray.getTextField(int, int)
,
moveColHeader(int)
,
setCellFontAndColor(int, int)
void deleteColumn(int k)
k
- is column to deleteinitValues()
void insertColumn(int k)
k
- is column to insertinitValues()
void cellAdjust(java.awt.event.MouseEvent e)
e
- is MouseEventFileIO.logMsgln(java.lang.String)
,
SStextArray.getTextField(int, int)
,
moveUp(int)
,
Component.repaint()
,
sortSpreadsheet(int, int, int, int, java.lang.String[][])
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
cellAdjust(java.awt.event.MouseEvent)
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
public void mouseDragged(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |