public class DasCanvas extends javax.swing.JLayeredPane implements java.awt.print.Printable, Editable, javax.swing.Scrollable
Modifier and Type | Class and Description |
---|---|
protected static class |
DasCanvas.CanvasAction |
static class |
DasCanvas.Cell |
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.
|
javax.swing.JLayeredPane.AccessibleJLayeredPane
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static javax.swing.Action |
ABOUT_ACTION
Override Component.setBounds for debugging.
|
static java.lang.Integer |
ANNOTATION_LAYER
Z-Layer
|
static java.lang.Integer |
AXIS_LAYER
Z-Layer
|
java.lang.String |
broken |
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 |
static java.lang.String |
PROP_BASEFONT
Property name for the base font.
|
static java.lang.String |
PROP_PAINTCOUNT |
static java.lang.String |
PROP_SCALEFONTS
The font used should be the base font scaled based on the canvas size.
|
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 |
protected boolean |
scaleFonts
The font used should be the base font scaled based on the canvas size.
|
static java.lang.Integer |
VERTICAL_AXIS_LAYER
Z-Layer for vertical axis.
|
DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
DasCanvas()
Creates a new instance of DasCanvas.
|
DasCanvas(int width,
int height)
Creates a new instance of DasCanvas with the specified width and height
|
Modifier and Type | Method and Description |
---|---|
void |
add(DasCanvasComponent c,
DasRow row,
DasColumn column)
This methods adds the specified
DasCanvasComponent to this canvas. |
void |
addBottomDecorator(Painter painter)
add a decorator that will be painted on below all other objects.
|
protected void |
addImpl(java.awt.Component comp,
java.lang.Object constraints,
int index)
This is doing something special setting the LAYER_PROPERTY.
|
void |
addTopDecorator(Painter painter)
add a decorator that will be painted on top of all other objects.
|
void |
changePerformed(java.lang.Object client,
java.lang.Object lockObject)
indicate to the canvas that a change is now complete.
|
static boolean |
childIsDirty(DasCanvas c)
scans through all the canvas components and returns true if any are in a "dirty" state and need
repainting.
|
static DasCanvas |
createFormCanvas(java.lang.String name,
int width,
int height) |
java.util.List |
devicePositionList()
returns a list of all the rows and columns on the canvas.
|
static javax.swing.Action[] |
getActions() |
DasApplication |
getApplication() |
java.awt.Font |
getBaseFont()
the base font, which is the font or the font which is scaled when scaleFont is true.
|
DasCanvasComponent |
getCanvasComponentAt(int x,
int y)
Returns the DasCanvasComponent that contains the (x, y) location.
|
DasCanvasComponent[] |
getCanvasComponents()
return the components.
|
DasCanvasComponent |
getCanvasComponents(int index)
return the component at the index.
|
DasCanvas.Cell |
getCellAt(int x,
int y)
TODO
|
DasApplication |
getDasApplication()
return the application object for this canvas.
|
java.lang.String |
getDasName()
return the name identifying the component.
|
java.util.List |
getDevicePositionList()
return a list of all the rows and columns.
|
DnDSupport |
getDnDSupport()
TODO
|
boolean |
getEditingMode()
TODO
|
static DasCanvas |
getFocusCanvas()
return the canvas that has the focus.
|
java.awt.Component |
getGlassPane()
returns the GlassPane above all other components.
|
java.awt.image.BufferedImage |
getImage(int width,
int height)
Creates a BufferedImage by blocking until the image is ready.
|
java.lang.String |
getImageMetadata()
returns JSON code that can be used to get plot positions and axes.
|
java.awt.Image |
getImageNonPrint(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()
|
int |
getPaintCount()
provide a property which can be used to monitor updates.
|
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) |
boolean |
hasBottomDecorators()
returns true if there are any bottom decorators.
|
boolean |
hasTopDecorators()
returns true if there are any top decorators.
|
boolean |
isAntiAlias()
true if data will be fully rendered with anti-aliasing.
|
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()
returns true if there are changes pending.
|
boolean |
isPendingChanges(java.lang.Object lockObject)
ask the canvas if the particular change is already pending.
|
protected boolean |
isPrintingThread()
return true if the current thread is registered as the one printing this component.
|
boolean |
isScaleFonts()
true if the fonts should be rescaled as the window size is changed.
|
boolean |
isTextAntiAlias()
return true if fonts will be fully rendered.
|
boolean |
isValueAdjusting()
returns true if an operation is being performed that should be treated as atomic.
|
boolean |
lisPaintingForPrint()
Java1.6 has this function native
|
void |
makeCurrent()
make this the current canvas
|
java.util.concurrent.locks.Lock |
mutatorLock()
access the lock for an atomic operation.
|
DasPlot |
otherPlotOnTop(DasAxis aThis)
return a plot which shares this row and column, or null.
|
protected void |
paintComponent(java.awt.Graphics g1)
paints the canvas itself.
|
void |
pendingChanges(java.util.Map<java.lang.Object,java.lang.Object> result)
return a list of pending changes.
|
void |
performingChange(java.lang.Object client,
java.lang.Object lockObject)
indicate to the canvas that a change is being performed.
|
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 g1)
print the canvas, filling the background and the painting.
|
int |
print(java.awt.Graphics printGraphics,
java.awt.print.PageFormat format,
int pageIndex)
Prints the canvas, scaling and possibly rotating it to improve fit.
|
void |
registerPendingChange(java.lang.Object client,
java.lang.Object lockObject)
indicate to the canvas that a change will be made soon.
|
void |
remove(java.awt.Component comp)
Removes the component, specified by
index ,
from this container, calling its uninstallComponent
method if it's a DasCanvasComponent. |
void |
remove(int index)
Removes the component, specified by
index ,
from this container, calling its uninstallComponent
method if it's a DasCanvasComponent. |
void |
removeBottomDecorator(Painter painter)
remove the decorator.
|
void |
removeBottomDecorators()
remove all bottom decorators.
|
void |
removeDasDevicePosition(DasDevicePosition position)
remove the device position from the list we keep track of.
|
void |
removepwDevicePosition(DasDevicePosition position)
Deprecated.
use removeDasDevicePosition instead.
|
void |
removeTopDecorator(Painter painter)
remove the decorator.
|
void |
removeTopDecorators()
remove all top decorators.
|
void |
resizeAllComponents()
introduced as a kludgy way for clients to force the canvas to resize all of its components.
|
void |
setAntiAlias(boolean antiAlias)
true if data will be fully rendered with anti-aliasing.
|
void |
setApplication(DasApplication application) |
void |
setBaseFont(java.awt.Font font)
the base font, which is the font or the font which is scaled with canvas size when scaleFont is true.
|
void |
setDasName(java.lang.String name)
set the name identifying the component.
|
static void |
setDisableActions(boolean val) |
void |
setEditingMode(boolean b)
TODO
|
void |
setFitted(boolean fitted)
If true, and the canvas was added to a scrollpane, the canvas
will size itself to fit within the scrollpane.
|
void |
setFont(java.awt.Font font) |
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 string to use to tag printed images.
|
void |
setScaleFonts(boolean scaleFonts)
true if the fonts should be rescaled as the window size is changed.
|
void |
setTextAntiAlias(boolean textAntiAlias)
true if fonts will be fully rendered.
|
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 |
waitUntilIdle(boolean monitors)
blocks until everything is idle, including no active monitors.
|
void |
waitUntilValid()
process all pending operations and make sure we're repainted.
|
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)
write to future implementations of graphicsOutput.
|
void |
writeToImageImmediately(java.awt.Image image)
Writes on to the image without waiting, using the print method.
|
void |
writeToImageImmediatelyNoCount(java.awt.Image image)
silly code so that Autoplot can get an image without incrementing paintCount.
|
void |
writeToImageImmediatelyNonPrint(java.awt.Image image)
This by passes the normal print method used in writeToImageImmedately, which sets the printing flags which
tell the components, like DasPlot, to fully reset.
|
void |
writeToPDF(java.lang.String filename)
write the canvas to a PDF file.
|
void |
writeToPng(java.io.OutputStream out,
int w,
int h)
uses getImage to get an image of the canvas and encodes it
as a png.
|
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) |
getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, paramString, putLayer, removeAll, setLayer, setLayer, setPosition
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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, 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, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
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, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
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, 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, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.Integer DEFAULT_LAYER
public static final java.lang.Integer PLOT_LAYER
public static final java.lang.Integer VERTICAL_AXIS_LAYER
public static final java.lang.Integer HORIZONTAL_AXIS_LAYER
public static final java.lang.Integer AXIS_LAYER
public static final java.lang.Integer ANNOTATION_LAYER
public static final java.lang.Integer GLASS_PANE_LAYER
public static final javax.swing.Action SAVE_AS_PNG_ACTION
public static final javax.swing.Action SAVE_AS_SVG_ACTION
public static final javax.swing.Action SAVE_AS_PDF_ACTION
public static final javax.swing.Action EDIT_DAS_PROPERTIES_ACTION
public static final javax.swing.Action PRINT_ACTION
public static final javax.swing.Action REFRESH_ACTION
public static final javax.swing.Action ABOUT_ACTION
public final javax.swing.Action PROPERTIES_ACTION
public java.lang.String broken
protected boolean scaleFonts
public static final java.lang.String PROP_SCALEFONTS
public static final java.lang.String PROP_BASEFONT
public static final java.lang.String PROP_PAINTCOUNT
public DasCanvas()
public DasCanvas(int width, int height)
width
- The width of the DasCanvasheight
- The height of the DasCanvaspublic static DasCanvas getFocusCanvas()
public DasPlot otherPlotOnTop(DasAxis aThis)
aThis
- public java.util.List devicePositionList()
public static void setDisableActions(boolean val)
public static javax.swing.Action[] getActions()
public void addTopDecorator(Painter painter)
painter
- public void removeTopDecorator(Painter painter)
painter
- public void removeTopDecorators()
public boolean hasTopDecorators()
public void addBottomDecorator(Painter painter)
painter
- public void removeBottomDecorator(Painter painter)
painter
- public void removeBottomDecorators()
public boolean hasBottomDecorators()
public java.awt.Component getGlassPane()
public java.util.List getDevicePositionList()
public DasApplication getApplication()
public void setApplication(DasApplication application)
public java.awt.Dimension getMaximumSize()
getMaximumSize
in class javax.swing.JComponent
protected void paintComponent(java.awt.Graphics g1)
paintComponent
in class javax.swing.JComponent
g1
- the Graphics objectpublic int print(java.awt.Graphics printGraphics, java.awt.print.PageFormat format, int pageIndex)
print
in interface java.awt.print.Printable
printGraphics
- the Graphics object.format
- the PageFormat object.pageIndex
- should be 0, since the image will be on one page.protected final boolean isPrintingThread()
public boolean lisPaintingForPrint()
public void print(java.awt.Graphics g1)
print
in class javax.swing.JComponent
g1
- the graphics context.public java.awt.print.Printable getPrintable()
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.Printable
instance for rendering this component.public java.lang.String getImageMetadata()
public void writeToPng(java.io.OutputStream out, int w, int h) throws java.io.IOException
See http://autoplot.org/richPng. It is the responsibility of the caller to close the stream."size:[640,480]" "numberOfPlots:0" "plots: { ... }" where each plot contains: "title" "xaxis" "yaxis"
out
- the outputStream. This is left open, so the opener code must close it!w
- width in pixelsh
- height in pixelsjava.io.IOException
- if there is an error opening the file for writingpublic void writeToPng(java.lang.String filename) throws java.io.IOException
filename
- the specified filenamejava.io.IOException
- if there is an error opening the file for writingpublic void writeToPDF(java.lang.String filename) throws java.io.IOException
filename
- the PDF file name.java.io.IOException
public void writeToGraphicsOutput(java.io.OutputStream out, GraphicsOutput go) throws java.io.IOException
out
- OutputStream to receive the datago
- GraphicsOutput object.java.io.IOException
public void writeToGraphicsOutput(java.lang.String filename, java.lang.String graphicsOutput) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
filename
- graphicsOutput
- java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
GraphicsOutput
public void writeToSVG(java.lang.String filename) throws java.io.IOException
filename
- the specified filenamejava.io.IOException
- if there is an error opening the file for writingpublic boolean isDirty()
public static boolean childIsDirty(DasCanvas c)
c
- public void waitUntilIdle(boolean monitors) throws java.lang.InterruptedException
monitors
- java.lang.InterruptedException
public void waitUntilIdle()
public void pendingChanges(java.util.Map<java.lang.Object,java.lang.Object> result)
result
- waitUntilIdle
public void resizeAllComponents()
public void waitUntilValid()
public void prepareForOutput(int width, int height)
width
- the width of the output in pixels.height
- the width of the output in pixels.java.lang.IllegalStateException
- if called from the event queue.public java.awt.image.BufferedImage getImage(int width, int height)
writeToImageImmediately(Image)
.width
- height
- public java.awt.Image getImageNonPrint(int width, int height)
writeToImageImmediately(Image)
.
Note, this calls writeToImageImmediatelyNonPrint, which avoids the usual overhead of
revalidating the DasPlot elements we normally do when printing to a new device.width
- height
- public void writeToImageImmediately(java.awt.Image image)
image
- the imagepublic void writeToImageImmediatelyNoCount(java.awt.Image image)
image
- public void writeToImageImmediatelyNonPrint(java.awt.Image image)
image
- the imagepublic void add(DasCanvasComponent c, DasRow row, DasColumn column)
DasCanvasComponent
to this canvas.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.protected void addImpl(java.awt.Component comp, java.lang.Object constraints, int index)
addImpl
in class javax.swing.JLayeredPane
comp
- constraints
- index
- public void setPreferredWidth(int width)
width
- the specified width.public void setPreferredHeight(int height)
height
- the specified heightpublic boolean isScaleFonts()
public void setScaleFonts(boolean scaleFonts)
scaleFonts
- true if the fonts should be rescaled as the window size is changed.public java.awt.Font getBaseFont()
public void setBaseFont(java.awt.Font font)
font
- the font used to derive all other fonts.public void setFont(java.awt.Font font)
setFont
in class javax.swing.JComponent
public DasCanvasComponent getCanvasComponentAt(int x, int y)
null
x
- the x coordinatey
- the y coordinatepublic void remove(int index)
index
,
from this container, calling its uninstallComponent
method if it's a DasCanvasComponent.remove
in class javax.swing.JLayeredPane
index
- the index of the component to be removed.public void remove(java.awt.Component comp)
index
,
from this container, calling its uninstallComponent
method if it's a DasCanvasComponent.remove
in class java.awt.Container
comp
- the componentpublic DasCanvas.HotLine getLineAt(int x, int y)
x
- y
- public DasCanvas.Cell getCellAt(int x, int y)
x
- y
- public void removeDasDevicePosition(DasDevicePosition position)
position
- public void removepwDevicePosition(DasDevicePosition position)
position
- public static DasCanvas createFormCanvas(java.lang.String name, int width, int height)
name
- width
- height
- public boolean getEditingMode()
public void setEditingMode(boolean b)
b
- public DnDSupport getDnDSupport()
public boolean startDrag(int x, int y, int action, java.awt.event.MouseEvent evt)
x
- y
- action
- evt
- public java.lang.String getDasName()
public void setDasName(java.lang.String name) throws DasNameException
name
- the name identifying the component.DasNameException
- when the name is not a valid name ("[A-Za-z][A-Za-z0-9_]*")public int getPaintCount()
public DasApplication getDasApplication()
public DasCanvasComponent getCanvasComponents(int index)
index
- the indexpublic DasCanvasComponent[] getCanvasComponents()
public java.lang.String toString()
toString
in class java.awt.Component
public java.lang.String getPrintingTag()
public void setPrintingTag(java.lang.String printingTag)
printingTag
- New value of property printingTag.public boolean isTextAntiAlias()
public void setTextAntiAlias(boolean textAntiAlias)
textAntiAlias
- true if fonts will be fully rendered.public boolean isAntiAlias()
public void setAntiAlias(boolean antiAlias)
antiAlias
- if data will be fully rendered with anti-aliasing.public boolean isFitted()
public void setFitted(boolean fitted)
fitted
- value of fitted propertypublic final void makeCurrent()
public java.awt.Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface javax.swing.Scrollable
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface javax.swing.Scrollable
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface javax.swing.Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface javax.swing.Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface javax.swing.Scrollable
public boolean isPendingChanges(java.lang.Object lockObject)
lockObject
- an object identifying the changeChangesSupport
public void registerPendingChange(java.lang.Object client, java.lang.Object lockObject)
client
- the client registering the changelockObject
- an object identifying the changeChangesSupport
public void performingChange(java.lang.Object client, java.lang.Object lockObject)
client
- the client registering the changelockObject
- an object identifying the changeChangesSupport
public void changePerformed(java.lang.Object client, java.lang.Object lockObject)
client
- the client registering the changelockObject
- an object identifying the changeChangesSupport
public boolean isPendingChanges()
ChangesSupport
public java.util.concurrent.locks.Lock mutatorLock()
ChangesSupport
public boolean isValueAdjusting()
ChangesSupport