java.lang.Object
com.trapezium.chisel.GuiAdapter
com.trapezium.chisel.ChiselPane
com.trapezium.chisel.ChiselWorkspace
- All Implemented Interfaces:
- com.trapezium.chisel.gui.DisplayConstants, com.trapezium.factory.FactoryResponseListener, java.awt.LayoutManager, ProcessedFileViewer
- public class ChiselWorkspace
- extends ChiselPane
- implements com.trapezium.factory.FactoryResponseListener
A ChiselWorkspace holds an arbitrary number of ChiselViewers
| 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 |
| Methods inherited from class com.trapezium.chisel.GuiAdapter |
addLayoutComponent, getComponent, getContainer, 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 |
viewers
ViewerVector viewers
selectedViewer
int selectedViewer
xOpen
int xOpen
yOpen
int yOpen
dxOpen
int dxOpen
dyOpen
int dyOpen
widthOpen
int widthOpen
heightOpen
int heightOpen
workspaceListener
com.trapezium.chisel.gui.WorkspaceListener workspaceListener
nextListener
com.trapezium.chisel.gui.WorkspaceListener nextListener
workspace
Workspace workspace
chiselTableStack
ChiselTableStack chiselTableStack
ChiselWorkspace
public ChiselWorkspace(ChiselTableStack tables)
setErrorMarks
public void setErrorMarks(ProcessedFile pf,
java.util.BitSet errorMarks,
java.util.BitSet warningMarks,
java.util.BitSet nonconformanceMarks)
paste
public void paste()
cut
public void cut()
copy
public void copy()
undo
public void undo()
redo
public void redo()
nextError
public void nextError()
prevError
public void prevError()
setSelection
public void setSelection(ProcessedFile file)
setSelection
public void setSelection(java.lang.String url)
setSelection
public void setSelection(java.awt.Component c)
getSelection
public java.awt.Component getSelection()
close
public void close(java.awt.Component c)
moveToFront
public void moveToFront(java.awt.Component c)
moveToBack
public void moveToBack(java.awt.Component c)
addWorkspaceListener
public void addWorkspaceListener(com.trapezium.chisel.gui.WorkspaceListener l)
contains
public boolean contains(ProcessedFile data)
- determine if a file is currently being viewed
open
public void open(ProcessedFile data)
setNextViewerBounds
protected void setNextViewerBounds(java.awt.Component viewer)
add
public void add(ProcessedFileViewer viewer)
remove
public void remove(ProcessedFileViewer viewer)
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- Overrides:
fileUpdated in class ChiselPane
done
public void done(com.trapezium.factory.FactoryData data)
- load an object into the viewer
- Specified by:
done in interface com.trapezium.factory.FactoryResponseListener
getViewer
public ProcessedFileViewer getViewer(ProcessedFile pf)
update
public void update(com.trapezium.factory.FactoryData result)
- Specified by:
update in interface com.trapezium.factory.FactoryResponseListener
setNumberOfLines
public void setNumberOfLines(int n)
- Specified by:
setNumberOfLines in interface com.trapezium.factory.FactoryResponseListener
setPolygonCount
public void setPolygonCount(int n)
- Specified by:
setPolygonCount in interface com.trapezium.factory.FactoryResponseListener
setAction
public void setAction(java.lang.String action)
- Specified by:
setAction in interface com.trapezium.factory.FactoryResponseListener
setText
public void setText(java.lang.String text)
- Specified by:
setText in interface com.trapezium.factory.FactoryResponseListener
setFactoryData
public void setFactoryData(com.trapezium.factory.FactoryData fd)
- Specified by:
setFactoryData in interface com.trapezium.factory.FactoryResponseListener
setLinePercent
public void setLinePercent(int n)
- Specified by:
setLinePercent in interface com.trapezium.factory.FactoryResponseListener
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- Overrides:
save in class ChiselPane
empty
public void empty()
- remove the current document from the viewer and display an empty document
- Specified by:
empty in interface ProcessedFileViewer- Overrides:
empty in class ChiselPane
getProcessedFile
public ProcessedFile getProcessedFile()
- get the ProcessedFile being viewed
- Specified by:
getProcessedFile in interface ProcessedFileViewer- Overrides:
getProcessedFile in class ChiselPane
setProcessedFile
public void setProcessedFile(ProcessedFile data)
- set the ProcessedFile being viewed
- Specified by:
setProcessedFile in interface ProcessedFileViewer- Overrides:
setProcessedFile in class ChiselPane
getActiveViewer
public ProcessedFileViewer getActiveViewer()
- get the ProcessedFile being viewed
layoutContainer
public void layoutContainer(java.awt.Container target)
- The default layout behavior for a workspace leaves all the windows where they are.
- Specified by:
layoutContainer in interface java.awt.LayoutManager- Overrides:
layoutContainer in class GuiAdapter
dump
public void dump()
- dump the current document to the console
- Specified by:
dump in interface ProcessedFileViewer- Overrides:
dump in class ChiselPane