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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.trapezium.chisel.GuiAdapter
      extended bycom.trapezium.chisel.ChiselPane
          extended bycom.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


Nested Class Summary
(package private)  class ChiselWorkspace.ChiselWorkspaceListener
           
(package private)  class ChiselWorkspace.WorkspacePane
           
 
Field Summary
(package private)  ChiselTableStack chiselTableStack
           
(package private)  int dxOpen
           
(package private)  int dyOpen
           
(package private)  int heightOpen
           
(package private)  com.trapezium.chisel.gui.WorkspaceListener nextListener
           
(package private)  int selectedViewer
           
(package private)  ViewerVector viewers
           
(package private)  int widthOpen
           
(package private)  Workspace workspace
           
(package private)  com.trapezium.chisel.gui.WorkspaceListener workspaceListener
           
(package private)  int xOpen
           
(package private)  int yOpen
           
 
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
ChiselWorkspace(ChiselTableStack tables)
           
 
Method Summary
 void add(ProcessedFileViewer viewer)
           
 void addWorkspaceListener(com.trapezium.chisel.gui.WorkspaceListener l)
           
 void close(java.awt.Component c)
           
 boolean contains(ProcessedFile data)
          determine if a file is currently being viewed
 void copy()
           
 void cut()
           
 void done(com.trapezium.factory.FactoryData data)
          load an object into the viewer
 void dump()
          dump the current document to the console
 void empty()
          remove the current document from the viewer and display an empty document
 void fileUpdated(ProcessedFile data)
          update the display if the object belongs to this viewer or is null
 ProcessedFileViewer getActiveViewer()
          get the ProcessedFile being viewed
 ProcessedFile getProcessedFile()
          get the ProcessedFile being viewed
 java.awt.Component getSelection()
           
 ProcessedFileViewer getViewer(ProcessedFile pf)
           
 void layoutContainer(java.awt.Container target)
          The default layout behavior for a workspace leaves all the windows where they are.
 void moveToBack(java.awt.Component c)
           
 void moveToFront(java.awt.Component c)
           
 void nextError()
           
 void open(ProcessedFile data)
           
 void paste()
           
 void prevError()
           
 void redo()
           
 void remove(ProcessedFileViewer viewer)
           
 void save()
          save the current document.
 void setAction(java.lang.String action)
           
 void setErrorMarks(ProcessedFile pf, java.util.BitSet errorMarks, java.util.BitSet warningMarks, java.util.BitSet nonconformanceMarks)
           
 void setFactoryData(com.trapezium.factory.FactoryData fd)
           
 void setLinePercent(int n)
           
protected  void setNextViewerBounds(java.awt.Component viewer)
           
 void setNumberOfLines(int n)
           
 void setPolygonCount(int n)
           
 void setProcessedFile(ProcessedFile data)
          set the ProcessedFile being viewed
 void setSelection(java.awt.Component c)
           
 void setSelection(ProcessedFile file)
           
 void setSelection(java.lang.String url)
           
 void setText(java.lang.String text)
           
 void undo()
           
 void update(com.trapezium.factory.FactoryData result)
           
 
Methods inherited from class com.trapezium.chisel.ChiselPane
fileDone
 
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
 
Methods inherited from interface com.trapezium.chisel.ProcessedFileViewer
getComponent
 

Field Detail

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
Constructor Detail

ChiselWorkspace

public ChiselWorkspace(ChiselTableStack tables)
Method Detail

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