|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jimm.datavision.layout.LayoutEngine jimm.datavision.layout.swing.SwingLE
public class SwingLE
SwingLE
is a layout engine that creates a Swing window.
The window can be printed by selecting the appropriate menu item.
SwingPageContents
,
SwingPage
,
SwingField
,
SwingPrintBook
Field Summary | |
---|---|
protected javax.swing.JPanel |
cardPanel
|
protected javax.swing.Action |
closeAction
|
protected int |
displayPageNum
|
protected static java.lang.String |
EXPORT_ICON
|
protected javax.swing.Action |
exportAction
|
protected static java.lang.String |
FIRST_ICON
|
protected javax.swing.JFrame |
frame
|
protected javax.swing.Action |
goFirstAction
|
protected javax.swing.Action |
goLastAction
|
protected javax.swing.Action |
goNextAction
|
protected javax.swing.Action |
goPrevAction
|
protected static java.lang.String |
LAST_ICON
|
protected static java.lang.String |
NEXT_ICON
|
protected SwingPageContents |
pageBeingBuilt
|
protected java.util.ArrayList |
pageContents
|
protected javax.swing.JLabel |
pageCountLabel
|
protected java.awt.Dimension |
pageDim
|
protected static java.lang.String |
PREV_ICON
|
protected static java.lang.String |
PRINT_ICON
|
protected javax.swing.Action |
printAction
|
protected javax.swing.JScrollPane |
scroller
|
protected static java.awt.Dimension |
WINDOW_START_SIZE
|
Fields inherited from class jimm.datavision.layout.LayoutEngine |
---|
currentSection, newPage, out, pageHeight, pageHeightUsed, pageNumber, pageWidth, POINTS_PER_INCH, previousSectionArea, report, SECT_DETAIL, SECT_GROUP_FOOTER, SECT_GROUP_HEADER, SECT_PAGE_FOOTER, SECT_PAGE_HEADER, SECT_REPORT_FOOTER, SECT_REPORT_HEADER, wantsMoreData |
Constructor Summary | |
---|---|
SwingLE()
Constructor. |
Method Summary | |
---|---|
void |
cancel()
Called by someone else running the report to cancel all the hard work this layout engine has performed. |
void |
close()
Closes this window. |
protected void |
displayFirstPage()
Performs the "First Page" command. |
protected void |
displayLastPage()
Performs the "Last Page" command. |
protected void |
displayNextPage()
Performs the "Next Page" command. |
protected void |
displayPage(int num)
Fills the window with the contents of the specified page. |
protected void |
displayPrevPage()
Performs the "Previous Page" command. |
protected void |
doEnd()
Done loading report. |
protected void |
doEndPage()
At the end of the first page, starts building it in a separate thread. |
protected void |
doOutputField(Field field)
Creates a new SwingField and adds it to the current page. |
protected void |
doOutputImage(ImageField image)
Called by outputImage as a chance to insert behavior
when a image is output. |
protected void |
doOutputLine(Line line)
Creates a new line. |
protected void |
doStart()
Creates window and displays a blank page. |
protected void |
doStartPage()
Creates a new page. |
protected void |
export()
Opens the report export dialog. |
javax.swing.JFrame |
getJFrame()
|
protected void |
makeActions()
Creates the actions used by menu items and toolbar widgets. |
protected void |
makeMenu(javax.swing.JFrame frame)
Creates the window menu. |
protected javax.swing.JToolBar |
makeToolbar()
Creates and returns a new tool bar. |
void |
printReport()
Prints the report. |
protected void |
updateNavActions()
Updates the navigation buttons based on number of pages and the current display page. |
protected void |
updatePageCountLabel()
Updates the page count label based on the current page number and the total number of pages. |
Methods inherited from class jimm.datavision.layout.LayoutEngine |
---|
calcDetailHeight, calcPageFooterHeight, calcReportFooterHeight, calcSectionHeights, checkRemainingPageLength, closeOutput, currentSectionTypeAsString, detail, doOutputSection, end, endPage, groupFooters, groupHeaders, outputField, outputImage, outputLine, outputSection, pageHeight, pageNumber, pageWidth, setReport, start, startPage, wantsMoreData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.awt.Dimension WINDOW_START_SIZE
protected static final java.lang.String PRINT_ICON
protected static final java.lang.String EXPORT_ICON
protected static final java.lang.String FIRST_ICON
protected static final java.lang.String PREV_ICON
protected static final java.lang.String NEXT_ICON
protected static final java.lang.String LAST_ICON
protected javax.swing.JFrame frame
protected java.awt.Dimension pageDim
protected javax.swing.JPanel cardPanel
protected javax.swing.JScrollPane scroller
protected int displayPageNum
protected java.util.ArrayList pageContents
protected SwingPageContents pageBeingBuilt
protected javax.swing.JLabel pageCountLabel
protected javax.swing.Action printAction
protected javax.swing.Action closeAction
protected javax.swing.Action exportAction
protected javax.swing.Action goFirstAction
protected javax.swing.Action goPrevAction
protected javax.swing.Action goNextAction
protected javax.swing.Action goLastAction
Constructor Detail |
---|
public SwingLE()
Method Detail |
---|
public void cancel()
LayoutEngine
cancel
in class LayoutEngine
public javax.swing.JFrame getJFrame()
protected void doStart()
doStart
in class LayoutEngine
protected void doEnd()
doEnd
in class LayoutEngine
protected void makeActions()
protected void makeMenu(javax.swing.JFrame frame)
frame
- the window that will contain the menuprotected javax.swing.JToolBar makeToolbar()
protected void doStartPage()
doStartPage
in class LayoutEngine
protected void doEndPage()
doEndPage
in class LayoutEngine
public void close()
System.exit
.
protected void export()
protected void updateNavActions()
protected void updatePageCountLabel()
protected void displayFirstPage()
protected void displayNextPage()
protected void displayPrevPage()
protected void displayLastPage()
protected void displayPage(int num)
num
- page number, starting at 1SwingPageContents
protected void doOutputField(Field field)
SwingField
and adds it to the current page.
doOutputField
in class LayoutEngine
field
- the report fieldprotected void doOutputImage(ImageField image)
LayoutEngine
outputImage
as a chance to insert behavior
when a image is output.
doOutputImage
in class LayoutEngine
image
- an image fieldprotected void doOutputLine(Line line)
doOutputLine
in class LayoutEngine
line
- a linepublic void printReport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |