org.das2.graph
Class DasCanvas

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JLayeredPane
                  extended by org.das2.graph.DasCanvas
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.io.Serializable, javax.accessibility.Accessible, javax.swing.Scrollable, Editable, FormComponent

public class DasCanvas
extends javax.swing.JLayeredPane
implements java.awt.print.Printable, Editable, FormComponent, javax.swing.Scrollable

Canvas for das2 graphics. The DasCanvas contains any number of DasCanvasComponents such as axes, plots, colorbars, etc.

See Also:
Serialized Form

Nested Class Summary
protected static class DasCanvas.CanvasAction
           
static class DasCanvas.Cell
          TODO
static class DasCanvas.GlassPane
          JPanel that lives above all other components, and is capable of blocking keyboard and mouse input from all components underneath.
static class DasCanvas.HotLine
          TODO
protected static class DasCanvas.RowColumnLayout
          Layout manager for managing the Row, Column layout implemented by swing.
 
Nested classes/interfaces inherited from class javax.swing.JLayeredPane
javax.swing.JLayeredPane.AccessibleJLayeredPane
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static javax.swing.Action ABOUT_ACTION
           
static java.lang.Integer ANNOTATION_LAYER
          Z-Layer
static java.lang.Integer AXIS_LAYER
          Z-Layer
static java.lang.Integer DEFAULT_LAYER
          Default drawing layer of the JLayeredPane
static javax.swing.Action EDIT_DAS_PROPERTIES_ACTION
           
static java.lang.Integer GLASS_PANE_LAYER
          Z-Layer
static java.lang.Integer HORIZONTAL_AXIS_LAYER
          Z-Layer
static java.lang.Integer PLOT_LAYER
          Z-Layer for drawing the plot.
static javax.swing.Action PRINT_ACTION
           
 javax.swing.Action PROPERTIES_ACTION
           
static javax.swing.Action REFRESH_ACTION
           
static javax.swing.Action SAVE_AS_PDF_ACTION
           
static javax.swing.Action SAVE_AS_PNG_ACTION
           
static javax.swing.Action SAVE_AS_SVG_ACTION
           
static java.lang.Integer VERTICAL_AXIS_LAYER
          Z-Layer for vertical axis.
 
Fields inherited from class javax.swing.JLayeredPane
DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DasCanvas()
          Creates a new instance of DasCanvas TODO
DasCanvas(int width, int height)
          Creates a new instance of DasCanvas with the specified width and height TODO
 
Method Summary
 void add(DasCanvasComponent c, DasRow row, DasColumn column)
          This methods adds the specified DasCanvasComponent to this canvas.
protected  void addImpl(java.awt.Component comp, java.lang.Object constraints, int index)
          TODO
 void changePerformed(java.lang.Object client, java.lang.Object lockObject)
           
static DasCanvas createFormCanvas(java.lang.String name, int width, int height)
           
 void deregisterComponent()
           
static javax.swing.Action[] getActions()
           
 DasApplication getApplication()
           
 java.awt.Font getBaseFont()
          TODO
 DasCanvasComponent getCanvasComponentAt(int x, int y)
          Returns the DasCanvasComponent that contains the (x, y) location.
 DasCanvasComponent[] getCanvasComponents()
           
 DasCanvasComponent getCanvasComponents(int index)
           
 DasCanvas.Cell getCellAt(int x, int y)
          TODO
 DasApplication getDasApplication()
           
 java.lang.String getDasName()
          TODO
 java.util.List getDevicePositionList()
          TODO
 DnDSupport getDnDSupport()
          TODO
 org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
          TODO
 boolean getEditingMode()
          TODO
 FormBase getForm()
          TODO
 java.awt.Component getGlassPane()
          returns the GlassPane above all other components.
 java.awt.Image getImage(int width, int height)
          Creates a BufferedImage by blocking until the image is ready.
 DasCanvas.HotLine getLineAt(int x, int y)
          TODO
 java.awt.Dimension getMaximumSize()
          simply returns getPreferredSize().
 java.awt.Dimension getPreferredScrollableViewportSize()
           
 java.awt.print.Printable getPrintable()
          Returns an instance of java.awt.print.Printable that can be used to render this canvas to a printer.
 java.lang.String getPrintingTag()
          printingTag is the DateFormat string to use to tag printed images.
 int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
           
 boolean getScrollableTracksViewportHeight()
           
 boolean getScrollableTracksViewportWidth()
           
 int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
           
 void invalidate()
           
 boolean isAntiAlias()
          Getter for property antiAlias.
 boolean isDirty()
          returns true if work needs to be done to make the canvas clean.
 boolean isFitted()
          If true, and the canvas was added to a scrollpane, the canvas will size itself to fit within the scrollpane.
 boolean isPendingChanges()
           
protected  boolean isPrintingThread()
           
 boolean isTextAntiAlias()
          Getter for property textAntiAlias.
protected  void paintComponent(java.awt.Graphics g1)
          paints the canvas itself.
 void performingChange(java.lang.Object client, java.lang.Object lockObject)
           
 void prepareForOutput(int width, int height)
          resets the width and height, then waits for all update messages to be processed.
 void print(java.awt.Graphics g)
           
 int print(java.awt.Graphics printGraphics, java.awt.print.PageFormat format, int pageIndex)
          Prints the canvas, scaling and possibly rotating it to improve fit.
static DasCanvas processCanvasElement(org.w3c.dom.Element element, FormBase form)
          Process a <canvas> element.
 void registerComponent()
           
 void registerPendingChange(java.lang.Object client, java.lang.Object lockObject)
           
 void remove(int index)
          Removes the component, specified by index, from this container.
 void removepwDevicePosition(DasDevicePosition position)
          TODO
 void resizeAllComponents()
          introduced as a kludgy way for clients to force the canvas to resize all of its components.
 void setAntiAlias(boolean antiAlias)
          Setter for property antiAlias.
 void setApplication(DasApplication application)
           
 void setBaseFont(java.awt.Font font)
          The base font is the font from which all other fonts should be derived.
 void setBounds(int x, int y, int width, int height)
           
 void setDasName(java.lang.String name)
          TODO
 void setEditingMode(boolean b)
          TODO
 void setFitted(boolean fitted)
           
 void setPreferredHeight(int height)
          Sets the preferred height of the canvas to the specified height.
 void setPreferredWidth(int width)
          Sets the preferred width of the canvas to the specified width.
 void setPrintingTag(java.lang.String printingTag)
          printingTag is the DateFormat string to use to tag printed images.
 void setTextAntiAlias(boolean textAntiAlias)
          Setter for property textAntiAlias.
 boolean startDrag(int x, int y, int action, java.awt.event.MouseEvent evt)
          TODO
 java.lang.String toString()
           
 void waitUntilIdle()
          Blocks the caller's thread until all events have been dispatched from the awt event thread, and then waits for the RequestProcessor to finish all tasks with this canvas as the lock object.
 void writeToGraphicsOutput(java.io.OutputStream out, GraphicsOutput go)
          write to various graphics devices such as png, pdf and svg.
 void writeToGraphicsOutput(java.lang.String filename, java.lang.String graphicsOutput)
           
protected  void writeToImageImmediately(java.awt.Image image)
          TODO
 void writeToPDF(java.lang.String filename)
           
 void writeToPng(java.lang.String filename)
          uses getImage to get an image of the canvas and encodes it as a png.
 void writeToSVG(java.lang.String filename)
           
 
Methods inherited from class javax.swing.JLayeredPane
getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, paramString, putLayer, removeAll, setLayer, setLayer, setPosition
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_LAYER

public static final java.lang.Integer DEFAULT_LAYER
Default drawing layer of the JLayeredPane


PLOT_LAYER

public static final java.lang.Integer PLOT_LAYER
Z-Layer for drawing the plot.


VERTICAL_AXIS_LAYER

public static final java.lang.Integer VERTICAL_AXIS_LAYER
Z-Layer for vertical axis. Presently lower than the horizontal axis, presumably to remove ambiguity


HORIZONTAL_AXIS_LAYER

public static final java.lang.Integer HORIZONTAL_AXIS_LAYER
Z-Layer


AXIS_LAYER

public static final java.lang.Integer AXIS_LAYER
Z-Layer


ANNOTATION_LAYER

public static final java.lang.Integer ANNOTATION_LAYER
Z-Layer


GLASS_PANE_LAYER

public static final java.lang.Integer GLASS_PANE_LAYER
Z-Layer


SAVE_AS_PNG_ACTION

public static final javax.swing.Action SAVE_AS_PNG_ACTION

SAVE_AS_SVG_ACTION

public static final javax.swing.Action SAVE_AS_SVG_ACTION

SAVE_AS_PDF_ACTION

public static final javax.swing.Action SAVE_AS_PDF_ACTION

EDIT_DAS_PROPERTIES_ACTION

public static final javax.swing.Action EDIT_DAS_PROPERTIES_ACTION

PRINT_ACTION

public static final javax.swing.Action PRINT_ACTION

REFRESH_ACTION

public static final javax.swing.Action REFRESH_ACTION

ABOUT_ACTION

public static final javax.swing.Action ABOUT_ACTION

PROPERTIES_ACTION

public final javax.swing.Action PROPERTIES_ACTION
Constructor Detail

DasCanvas

public DasCanvas()
Creates a new instance of DasCanvas TODO


DasCanvas

public DasCanvas(int width,
                 int height)
Creates a new instance of DasCanvas with the specified width and height TODO

Parameters:
width - The width of the DasCanvas
height - The height of the DasCanvas
Method Detail

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Overrides:
setBounds in class java.awt.Component

invalidate

public void invalidate()
Overrides:
invalidate in class java.awt.Container

getActions

public static javax.swing.Action[] getActions()

getGlassPane

public java.awt.Component getGlassPane()
returns the GlassPane above all other components. This is used for drawing dragRenderers, etc.

Returns:

getDevicePositionList

public java.util.List getDevicePositionList()
TODO

Returns:

getApplication

public DasApplication getApplication()

setApplication

public void setApplication(DasApplication application)

getMaximumSize

public java.awt.Dimension getMaximumSize()
simply returns getPreferredSize().

Overrides:
getMaximumSize in class javax.swing.JComponent
Returns:
getPreferredSize()

paintComponent

protected void paintComponent(java.awt.Graphics g1)
paints the canvas itself. If printing, stamps the date on it as well.

Overrides:
paintComponent in class javax.swing.JComponent
Parameters:
gl - the Graphics object

print

public int print(java.awt.Graphics printGraphics,
                 java.awt.print.PageFormat format,
                 int pageIndex)
Prints the canvas, scaling and possibly rotating it to improve fit.

Specified by:
print in interface java.awt.print.Printable
Parameters:
printGraphics - the Graphics object.
format - the PageFormat object.
pageIndex - should be 0, since the image will be on one page.
Returns:
Printable.PAGE_EXISTS or Printable.NO_SUCH_PAGE

isPrintingThread

protected final boolean isPrintingThread()
Returns:
true if the current thread is registered as the one printing this component.

print

public void print(java.awt.Graphics g)
Overrides:
print in class javax.swing.JComponent

getPrintable

public java.awt.print.Printable getPrintable()
Returns an instance of java.awt.print.Printable that can be used to render this canvas to a printer. The current implementation returns a reference to this canvas. This method is provided so that in the future, the canvas can delegate it's printing to another object.

Returns:
a Printable instance for rendering this component.

writeToPng

public void writeToPng(java.lang.String filename)
                throws java.io.IOException
uses getImage to get an image of the canvas and encodes it as a png. TODO: this should take an output stream, and then a helper class manages the file. (e.g. web servers)

Parameters:
filename - the specified filename
Throws:
java.io.IOException - if there is an error opening the file for writing

writeToPDF

public void writeToPDF(java.lang.String filename)
                throws java.io.IOException
Throws:
java.io.IOException

writeToGraphicsOutput

public void writeToGraphicsOutput(java.io.OutputStream out,
                                  GraphicsOutput go)
                           throws java.io.IOException,
                                  java.lang.IllegalAccessException
write to various graphics devices such as png, pdf and svg. This handles the synchronization and parameter settings.

Parameters:
out - OutputStream to receive the data
go - GraphicsOutput object.
Throws:
java.io.IOException
java.lang.IllegalAccessException

writeToGraphicsOutput

public void writeToGraphicsOutput(java.lang.String filename,
                                  java.lang.String graphicsOutput)
                           throws java.io.IOException,
                                  java.lang.ClassNotFoundException,
                                  java.lang.InstantiationException,
                                  java.lang.IllegalAccessException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

writeToSVG

public void writeToSVG(java.lang.String filename)
                throws java.io.IOException
Parameters:
filename - the specified filename
Throws:
java.io.IOException - if there is an error opening the file for writing

isDirty

public boolean isDirty()
returns true if work needs to be done to make the canvas clean. This checks each component's isDirty.

Returns:

waitUntilIdle

public void waitUntilIdle()
                   throws java.lang.InterruptedException
Blocks the caller's thread until all events have been dispatched from the awt event thread, and then waits for the RequestProcessor to finish all tasks with this canvas as the lock object.

Throws:
java.lang.InterruptedException

resizeAllComponents

public void resizeAllComponents()
introduced as a kludgy way for clients to force the canvas to resize all of its components. validate or revalidate should probably do this.


prepareForOutput

public void prepareForOutput(int width,
                             int height)
resets the width and height, then waits for all update messages to be processed. In headless mode, the gui components are validated. This must not be called from the event queue, because it uses eventQueueBlocker!

Parameters:
width - the width of the output in pixels.
height - the width of the output in pixels.
Throws:
java.lang.IllegalStateException - if called from the event queue.

getImage

public java.awt.Image getImage(int width,
                               int height)
Creates a BufferedImage by blocking until the image is ready. This includes waiting for datasets to load, etc. Works by submitting an invokeAfter request to the RequestProcessor that calls writeToImageImmediately(Image).

Parameters:
width -
height -
Returns:

writeToImageImmediately

protected void writeToImageImmediately(java.awt.Image image)
TODO

Parameters:
image -

add

public void add(DasCanvasComponent c,
                DasRow row,
                DasColumn column)
This methods adds the specified DasCanvasComponent to this canvas.

Parameters:
c - the component to be added to this canvas Note that the canvas will need to be revalidated after the component is added.
row - DasRow specifying the layout of the component.
column - DasColumn specifying the layout of the component.

addImpl

protected void addImpl(java.awt.Component comp,
                       java.lang.Object constraints,
                       int index)
TODO

Overrides:
addImpl in class javax.swing.JLayeredPane
Parameters:
comp -
constraints -
index -

setPreferredWidth

public void setPreferredWidth(int width)
Sets the preferred width of the canvas to the specified width.

Parameters:
width - the specified width.

setPreferredHeight

public void setPreferredHeight(int height)
Sets the preferred height of the canvas to the specified height.

Parameters:
height - the specified height

getBaseFont

public java.awt.Font getBaseFont()
TODO

Returns:

setBaseFont

public void setBaseFont(java.awt.Font font)
The base font is the font from which all other fonts should be derived. When the canvas is resized, the base font size is scaled.

Parameters:
font - the font used to derive all other fonts.

getDOMElement

public org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
TODO

Specified by:
getDOMElement in interface FormComponent
Parameters:
document -
Returns:

processCanvasElement

public static DasCanvas processCanvasElement(org.w3c.dom.Element element,
                                             FormBase form)
                                      throws DasPropertyException,
                                             DasNameException,
                                             DasException,
                                             ParsedExpressionException,
                                             java.text.ParseException
Process a <canvas> element.

Parameters:
form -
element - The DOM tree node that represents the element
Returns:
Throws:
DasPropertyException
DasNameException
ParsedExpressionException
DasException
java.text.ParseException

createFormCanvas

public static DasCanvas createFormCanvas(java.lang.String name,
                                         int width,
                                         int height)
Parameters:
name -
width -
height -
Returns:
DasCanvas with a name.

getCanvasComponentAt

public DasCanvasComponent getCanvasComponentAt(int x,
                                               int y)
Returns the DasCanvasComponent that contains the (x, y) location. If there is no component at that location, this method returns null

Parameters:
x - the x coordinate
y - the y coordinate
Returns:
the component at the specified point, or null

remove

public void remove(int index)
Removes the component, specified by index, from this container.

Overrides:
remove in class javax.swing.JLayeredPane
Parameters:
index - the index of the component to be removed.

getLineAt

public DasCanvas.HotLine getLineAt(int x,
                                   int y)
TODO

Parameters:
x -
y -
Returns:

getCellAt

public DasCanvas.Cell getCellAt(int x,
                                int y)
TODO

Parameters:
x -
y -
Returns:

removepwDevicePosition

public void removepwDevicePosition(DasDevicePosition position)
TODO

Parameters:
position -

getForm

public FormBase getForm()
TODO

Specified by:
getForm in interface FormComponent
Returns:

getEditingMode

public boolean getEditingMode()
TODO

Specified by:
getEditingMode in interface FormComponent
Returns:

setEditingMode

public void setEditingMode(boolean b)
TODO

Specified by:
setEditingMode in interface FormComponent
Parameters:
b -

getDnDSupport

public DnDSupport getDnDSupport()
TODO

Specified by:
getDnDSupport in interface FormComponent
Returns:

startDrag

public boolean startDrag(int x,
                         int y,
                         int action,
                         java.awt.event.MouseEvent evt)
TODO

Specified by:
startDrag in interface FormComponent
Parameters:
x -
y -
action -
evt -
Returns:

getDasName

public java.lang.String getDasName()
TODO

Specified by:
getDasName in interface FormComponent
Returns:

setDasName

public void setDasName(java.lang.String name)
                throws DasNameException
TODO

Specified by:
setDasName in interface FormComponent
Parameters:
name -
Throws:
DasNameException

deregisterComponent

public void deregisterComponent()
Specified by:
deregisterComponent in interface FormComponent

getDasApplication

public DasApplication getDasApplication()
Specified by:
getDasApplication in interface FormComponent

registerComponent

public void registerComponent()
                       throws DasException
Specified by:
registerComponent in interface FormComponent
Throws:
DasException

getCanvasComponents

public DasCanvasComponent getCanvasComponents(int index)

getCanvasComponents

public DasCanvasComponent[] getCanvasComponents()

toString

public java.lang.String toString()
Overrides:
toString in class java.awt.Component

getPrintingTag

public java.lang.String getPrintingTag()
printingTag is the DateFormat string to use to tag printed images.

Returns:
Value of property printingTag.

setPrintingTag

public void setPrintingTag(java.lang.String printingTag)
printingTag is the DateFormat string to use to tag printed images.

Parameters:
printingTag - New value of property printingTag.

isTextAntiAlias

public boolean isTextAntiAlias()
Getter for property textAntiAlias.

Returns:
Value of property textAntiAlias.

setTextAntiAlias

public void setTextAntiAlias(boolean textAntiAlias)
Setter for property textAntiAlias.

Parameters:
textAntiAlias - New value of property textAntiAlias.

isAntiAlias

public boolean isAntiAlias()
Getter for property antiAlias.

Returns:
Value of property antiAlias.

setAntiAlias

public void setAntiAlias(boolean antiAlias)
Setter for property antiAlias.

Parameters:
antiAlias - New value of property antiAlias.

isFitted

public boolean isFitted()
If true, and the canvas was added to a scrollpane, the canvas will size itself to fit within the scrollpane.

Returns:
value of fitted property

setFitted

public void setFitted(boolean fitted)

getPreferredScrollableViewportSize

public java.awt.Dimension getPreferredScrollableViewportSize()
Specified by:
getPreferredScrollableViewportSize in interface javax.swing.Scrollable

getScrollableUnitIncrement

public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
                                      int orientation,
                                      int direction)
Specified by:
getScrollableUnitIncrement in interface javax.swing.Scrollable

getScrollableBlockIncrement

public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
                                       int orientation,
                                       int direction)
Specified by:
getScrollableBlockIncrement in interface javax.swing.Scrollable

getScrollableTracksViewportWidth

public boolean getScrollableTracksViewportWidth()
Specified by:
getScrollableTracksViewportWidth in interface javax.swing.Scrollable

getScrollableTracksViewportHeight

public boolean getScrollableTracksViewportHeight()
Specified by:
getScrollableTracksViewportHeight in interface javax.swing.Scrollable

registerPendingChange

public void registerPendingChange(java.lang.Object client,
                                  java.lang.Object lockObject)

performingChange

public void performingChange(java.lang.Object client,
                             java.lang.Object lockObject)

changePerformed

public void changePerformed(java.lang.Object client,
                            java.lang.Object lockObject)

isPendingChanges

public boolean isPendingChanges()