Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel
Class ChiselPane  view ChiselPane download ChiselPane.java

java.lang.Object
  extended bycom.trapezium.chisel.GuiAdapter
      extended bycom.trapezium.chisel.ChiselPane
All Implemented Interfaces:
com.trapezium.chisel.gui.DisplayConstants, java.awt.LayoutManager, ProcessedFileViewer
Direct Known Subclasses:
ChiselTableStack, ChiselViewer, ChiselWorkspace, Table, TableRow

public class ChiselPane
extends GuiAdapter
implements ProcessedFileViewer

A top-level non-generic gui component of Chisel


Field Summary
 
Fields inherited from class com.trapezium.chisel.GuiAdapter
stretchLast
 
Fields inherited from interface com.trapezium.chisel.gui.DisplayConstants
BOTTOM_MARGIN, DEFAULT_ACTIVECOLOR, DEFAULT_BGCOLOR, DEFAULT_BORDERCOLOR, DEFAULT_CONTROLCOLOR, DEFAULT_DECAL, DEFAULT_FADEDTEXTCOLOR, DEFAULT_FRAMECOLOR, DEFAULT_GROOVECOLOR, DEFAULT_INACTIVECOLOR, DEFAULT_LITESHADOWCOLOR, DEFAULT_PANECOLOR, DEFAULT_POPUPCOLOR, DEFAULT_POPUPTEXTCOLOR, DEFAULT_PROGRESSBARCOLOR, DEFAULT_ROWHEADERCOLOR, DEFAULT_RULECOLOR, DEFAULT_SELECTEDCOLOR, DEFAULT_SELECTEDTEXTCOLOR, DEFAULT_SHADOWCOLOR, DEFAULT_STATUSBARCOLOR, DEFAULT_TABLECOLOR, DEFAULT_TEXTCOLOR, DEFAULT_TILE, DEFAULT_TILEX, DEFAULT_TILEY, DEFAULT_TITLETEXTCOLOR, DEFAULT_TOOLBARCOLOR, DEFAULT_TOOLTIPCOLOR, DEFAULT_TOPTABLECOLOR, DEFAULT_WORKSPACECOLOR, FRAMED_BORDER, HGAP, LEFT_MARGIN, LOWERED_BORDER, NO_BORDER, RAISED_BORDER, RIGHT_MARGIN, THICK_BORDER, THIN_BORDER, TOP_MARGIN, VGAP
 
Constructor Summary
  ChiselPane()
          create a pane with a generic gui implementation
  ChiselPane(boolean scrollable)
          create a generic scrollable pane
  ChiselPane(java.awt.Component pane)
          create a pane with a specific gui implementation
private ChiselPane(java.awt.Component pane, boolean scrollable)
          create a scrollable pane with a specific gui implementation
 
Method Summary
 void dump()
          dump the current document to the console
 void empty()
          remove the current document from the viewer and display an empty document
 void fileDone(ProcessedFile data)
          load an object into the viewer
 void fileUpdated(ProcessedFile data)
          update the display if the object belongs to this viewer or is null
 ProcessedFile getProcessedFile()
          get the ProcessedFile being viewed
 void save()
          save the current document.
 void setProcessedFile(ProcessedFile data)
          set the ProcessedFile being viewed
 
Methods inherited from class com.trapezium.chisel.GuiAdapter
addLayoutComponent, getComponent, getContainer, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setComponent, setContainer, setStretchLast, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.trapezium.chisel.ProcessedFileViewer
getComponent
 

Constructor Detail

ChiselPane

public ChiselPane()
create a pane with a generic gui implementation


ChiselPane

public ChiselPane(boolean scrollable)
create a generic scrollable pane


ChiselPane

public ChiselPane(java.awt.Component pane)
create a pane with a specific gui implementation


ChiselPane

private ChiselPane(java.awt.Component pane,
                   boolean scrollable)
create a scrollable pane with a specific gui implementation

Method Detail

fileUpdated

public void fileUpdated(ProcessedFile data)
update the display if the object belongs to this viewer or is null

Specified by:
fileUpdated in interface ProcessedFileViewer

fileDone

public void fileDone(ProcessedFile data)
load an object into the viewer

Specified by:
fileDone in interface ProcessedFileViewer

save

public void save()
save the current document. Prompts for filename if the document was not loaded from disk or previously saved.

Specified by:
save in interface ProcessedFileViewer

empty

public void empty()
remove the current document from the viewer and display an empty document

Specified by:
empty in interface ProcessedFileViewer

getProcessedFile

public ProcessedFile getProcessedFile()
get the ProcessedFile being viewed

Specified by:
getProcessedFile in interface ProcessedFileViewer

setProcessedFile

public void setProcessedFile(ProcessedFile data)
set the ProcessedFile being viewed

Specified by:
setProcessedFile in interface ProcessedFileViewer

dump

public void dump()
dump the current document to the console

Specified by:
dump in interface ProcessedFileViewer