Class MosaicCanvas

  extended by org.rosuda.ibase.toolkit.PlotComponent
      extended by org.rosuda.ibase.toolkit.PGSCanvas
          extended by org.rosuda.ibase.toolkit.BaseCanvas
              extended by org.rosuda.ibase.plots.MosaicCanvas
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.print.Printable, java.util.EventListener, Commander, Dependent

public class MosaicCanvas
extends BaseCanvas

Nested Class Summary
Nested classes/interfaces inherited from class org.rosuda.ibase.toolkit.PGSCanvas
Field Summary
Fields inherited from class org.rosuda.ibase.toolkit.BaseCanvas
allow180, allowDragMove, allowDragZoom, allowZoom, alphaHighlighting, autoAdjustMargins, baseDrag, baseDragX1, baseDragX2, baseDragY1, baseDragY2, borderColor, borderColorSel, C_BLACK, changingHilitingNeedsUpdateRoot, COL_INVALID, COL_OUTLINE, COL_SELBG, COL_ZOOMBG, defaultMBottom, defaultMBottom1, defaultMBottom2, defaultMBottom3, defaultMLeft, defaultMLeft1, defaultMLeft2, defaultMLeft3, defaultMRight, defaultMRight1, defaultMRight2, defaultMRight3, defaultMTop, defaultMTop1, defaultMTop2, defaultMTop3, dontCache, dontPaint, fillColor, fillColorSel, fillInside, H, horizontalMedDist, horizontalMinDist, ignoreNotifications, inQuery, inZoom, isExtQuery, lastQueriedIndex, lastQueriedPrimitive, m, M_ALPHADOWN, M_ALPHAUP, M_RESETZOOM, M_SETCB1, M_SETCB64, M_TRANSHIGHL, mBottom, MItransHighl, mLeft, mouseX, mouseY, moveDrag, mRight, mTop, objectClipping, opAx, opAy, orientation, paintOutline, pop, pp, ppAlpha, ppAlphaH, qi, queryables, resizeOnRotate, rotateYLabels, rotateYLabelsBy, selDrag, selectedPaintOutline, seperateAlphas, showOnlyHilited, showQuery, updateGeometry, verticalMedDist, verticalMinDist, W, xLabels, yLabels, zoomDrag, zoomRetainsAspect, zoomSequence
Fields inherited from class org.rosuda.ibase.toolkit.PGSCanvas
ax, ay, cancel, desc, inProgress, intDlg, myFrame, pageFormat, paintLayerCounter, pm
Fields inherited from class org.rosuda.ibase.toolkit.PlotComponent
Fields inherited from interface java.awt.print.Printable
Constructor Summary
MosaicCanvas(int gd, java.awt.Frame f, SVar[] vars, SMarker mark)
Method Summary
 SVar getData(int id)
          this method provides an API to fetch data contents of the plot.
 void keyReleased(java.awt.event.KeyEvent e)
 void Notifying(NotifyMsg msg, java.lang.Object o, java.util.Vector path)
          notification handler - rebuild objects if necessary (AxisDataChange/VarChange) and repaint
 void paintBack(PoGraSS g)
 java.lang.String queryObject(int i)
 java.lang.String queryPlotSpace()
 void rotate(int amount)
 java.lang.Object run(java.lang.Object o, java.lang.String cmd)
          default handing of commands "exportPGS" and "exportPS".
 void updateObjects()
          rebuilds plot primitives - subclasses should override this method.
Methods inherited from class org.rosuda.ibase.toolkit.BaseCanvas
actionPerformed, addXLabels, addXLabels, addXLabels, addXLabels, addYLabels, addYLabels, addYLabels, adjustMargin, createMenu, dispose, endAddingLabels, getAxisQuery, getAxisX, getAxisY, getBoundValues, getDefaultMLeft, getFirstPrimitiveContaining, getMBottom, getMinimumSize, getMLeft, getMRight, getMTop, getPrimitivesContaining, getPrimitivesIntersecting, isShowLabels, keyPressed, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paintInit, paintObjects, paintPoGraSS, paintPost, paintSelected, performZoomIn, performZoomIn, performZoomOut, queryObject, resetZoom, rotate, setAxDefaultGeometry, setAyDefaultGeometry, setColors, setDefaultMargins, setExtQueryString, setMBottom, setMLeft, setMRight, setMTop, setQueryText, setQueryText, setQueryText, setShowLabels, startAddingLabels, useExtQuery
Methods inherited from class org.rosuda.ibase.toolkit.PGSCanvas
beginPaint, endPaint, finalize, forcedFlush, getFrame, getGlobalNotifier, getPlotManager, getTitle, getXAxis, getYAxis, nextLayer, paintLayer, print, setFrame, setOption, setOption, setOption, setOption, setOption, setOption, setTitle
Methods inherited from class org.rosuda.ibase.toolkit.PlotComponent
addKeyListener, addMouseListener, addMouseMotionListener, getBounds, getComponent, getHeight, getLocation, getParent, getSize, getWidth, newQueryPopup, newQueryPopup, paintLayer, repaint, setBackground, setCursor, setSize, setSize, setToolTipText, setUpdateRoot
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public MosaicCanvas(int gd,
                    java.awt.Frame f,
                    SVar[] vars,
                    SMarker mark)
Method Detail


public void updateObjects()
Description copied from class: BaseCanvas
rebuilds plot primitives - subclasses should override this method. It is not defined as abstract only for convenience, but minimal subclass simply overrides this method.

updateObjects in class BaseCanvas


public java.lang.String queryObject(int i)
queryObject in class BaseCanvas


public java.lang.String queryPlotSpace()
queryPlotSpace in class BaseCanvas


public java.lang.Object run(java.lang.Object o,
                            java.lang.String cmd)
Description copied from class: PGSCanvas
default handing of commands "exportPGS" and "exportPS". Any descendant should call,cmd) to retain this functionality

Specified by:
run in interface Commander
run in class BaseCanvas
o - origin of the command
cmd - command string
any object, the actual interpretation is up to the calling object


public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener
keyReleased in class BaseCanvas


public SVar getData(int id)
Description copied from class: PGSCanvas
this method provides an API to fetch data contents of the plot. The id is implementation-dependent, but first two variables x and y should be mapped to 0 and 1 correspondingly. Therefore every plot containting data must support getData(0). For invalid ids null is returned.

getData in class PGSCanvas


public void Notifying(NotifyMsg msg,
                      java.lang.Object o,
                      java.util.Vector path)
Description copied from class: BaseCanvas
notification handler - rebuild objects if necessary (AxisDataChange/VarChange) and repaint

Specified by:
Notifying in interface Dependent
Notifying in class BaseCanvas
o - Object that sent the notification. The actual content is implementation-dependent.
path - This parameter is null for non-cascaded notify - in that case further calls to NotifyAll are not allowed. Otherwise it contains a Vector with all objects notified so far during cascaded notify. To aviod cyclic notifications every instance must either reject cascaded notifications (i.e. no calls to NotifyAll at all) or check for occurence of itself in the chain before calling NotifyAll. The only valid recursive calls in Notifying are NotifyAll(path) and NotifyAll(..,path), because only these two pass the "path" parameter to avoid cyclic loops.


public void rotate(int amount)
rotate in class BaseCanvas


public void paintBack(PoGraSS g)
paintBack in class BaseCanvas