org.diamondspin
Class DSImage

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JInternalFrame
                  extended by org.diamondspin.DSFrame
                      extended by org.diamondspin.DSImage
All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, Cloneable, EventListener, Accessible, RootPaneContainer, WindowConstants, DSElement

public class DSImage
extends DSFrame
implements MouseMotionListener, MouseListener, Cloneable, DSElement

DSImage is a default implementation of a DSElement handling images.

Copyright 2002-2006 DiamondSpin project. All Rights Reserved.

Permission to use, copy, modify and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and the following three paragraphs appear in all copies.

To request Permission to incorporate this software into commercial products contact one of the authors of the project.
  • Frederic Vernier (frederic.vernier@limsi.fr)
  • Chia Shen (shen@merl.com)
  • Guillaume Besacier (guillaume.besacier@limsi.fr)
  • Daniel Wigdor (dwigdor@dgp.toronto.edu)

IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

THE AUTHORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE AUTHORS HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

Creation date : 27 june 2002

Version:
: 1.0
Author:
: Frederic vernier, (vernier@merl.com) under Chia Shen supervision (shen@merl.com).
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.diamondspin.DSFrame
DSFrame.DSInternalFrameTitlePane, DSFrame.DSMenuBarProxy, DSFrame.FingerRotationMode, DSFrame.FingerRotationSpeed
 
Nested classes/interfaces inherited from class javax.swing.JInternalFrame
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  boolean bw
           
protected  double delta
           
protected  double distToScaleOne
           
protected  Point2D.Double[] fingers
           
protected  Point2D.Double[] fingersglob
           
protected  int firstFinger
           
protected  String Footer
           
protected static BufferedImage FullSizeImage
           
protected static String FullSizeImageName
           
protected static boolean globalUseCache
           
protected  String Header
           
protected  BufferedImage image1
           
protected  int imageID
           
protected  String ImageName
           
protected  float imageTransparency
           
protected  double initBeta
           
protected  boolean labeled
           
static int MAX_SCALE
           
static int MAXIMUM_SIDE_THN
           
static int MAXIMUM_SIDE_THNTHN
           
protected  double MaxScale
           
static int ORIGINAL
           
protected  int saveMode
           
 
Fields inherited from class org.diamondspin.DSFrame
absoluteScale, absoluteShiftAngle, active, alpha, ALWAYS, annotatable, ANNOTATING, ANNOTATING_SINGLE_TIME, annotationOptions, backGlassPane, backPane, behavior, beta, betaAbsFlag, BETATED, biftpBottom, biftpTop, BLACK, BOTH, BOTTOM, CAST, center, CENTER, CENTERED, clickedComponent, clickedSlave, COLORBITS, corner_fold, corner_rotation, CORNER_SIZE, corners_resize_BR, corners_resize_TL, curvature, d, DARKER, diffAngle, DRAGGING, dsTabletopPane, dTopLeftCorner, ERASER, eraserIconPressed, ERASING, fingerRotatable, fingerRotationMode, fingerRotationSpeed, fixedPointForRotation, FOLDING, foldingManager, FOLLOWING_TWO_FINGERS, frontier, GLASS, globalPoint, grabCornerPoint, GRAY, idOwner, IN_BETWEEN, inertiaType, initDiagonal, inkIcon, inkIconPressed, INTELIGENT, invertiaCenter, invertiaMesh, jComboBox1, jViewport1, lastComponent, lastComponentUsed, lastRotationEvent, logoIcon, maximumScale, menubar, MIDDLE, minimumScale, mode, NONE, oldmenubar, OPPOSITE, previousMousePosition, previousPreviousMousePosition, RESIZING_BR, RESIZING_TL, rotatable, ROTATED, ROTATING, savedBeta, savedCenter, savedRotationCornerPosition, scale, scaleCorrection, serialVersionUID, shadow, shadowManager, shadowNeedRefresh, SHIFTED, slaveElementList, slavePosition, SMALL, thisDSFrame, titlebar, TOP, transparency, USER_COLOR, WAITING, zoomable, ZOOMING_BR, ZOOMING_TL
 
Fields inherited from class javax.swing.JInternalFrame
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY
 
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 org.diamondspin.DSElement
HIGH_QUALITY, LOW_QUALITY
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DSImage(DSTabletopPane dsTabletopPane, String imgfileName, double d, double alpha, double scale)
          Constructor with MaximumSide by default
DSImage(DSTabletopPane dsTabletopPane, String imgfileName, double d, double alpha, double scale, int maxSide)
          Constructor
DSImage(DSTabletopPane tabletopPane, String filename, double d, double alpha, double scale, int maxSide, boolean useCache)
          Constructor
 
Method Summary
 boolean contains(int x, int y)
           
 String getFooter()
          Gets the footer attribute of the DSImage object
 String getHeader()
          Gets the header attribute of the DSImage object
 BufferedImage getImage()
          Accesor to the image to paint
 String getImageName()
          Gets the imageName attribute of the DSImage object
 boolean isBw()
           
 boolean isLabeled()
          have to display text arround ?
static boolean isUseCache()
          Gets the useCache attribute of the DSImage class
 void reloadImage()
          Reload the image because at the current scale factor we can have better resolution than the one given by the old loaded image.
 void scaleToHeight(int MaximumHeight_Arg)
          scale the image so the height side has this size
 void scaleToMaximum(int MaximumSide_Arg)
          scale the image so the longer side has this size
 void setBw(boolean bw)
           
 void setFooter(String text)
          Sets the footer attribute of the DSImage object
 void setHeader(String text)
          Sets the header attribute of the DSImage object
 void setImage(BufferedImage img)
          Accesor to the image to paint
protected  void setImageName(String ImageName_Arg)
          Sets the imageName attribute of the DSImage object
 void setLabeled(boolean Labeled)
          have to display text arround ?
static void setUseCache(boolean UseCache_Arg)
          Sets the useCache attribute of the DSImage class
 String toString()
          
 void transformImage(BufferedImageOp op)
          Reload the image because at the current scale factor we can have better resolution than the one given by the old loaded image.
 
Methods inherited from class org.diamondspin.DSFrame
acceptSlave, acceptSlaveRelease, acceptSlavery, acceptSlaveryRelease, addDSElementListener, addDSElementPreListener, addFooterButton, addHeaderButton, addSlaveElement, addSlaveElement, askRefreshShadow, computeShadowPosition, containsBack, containsFront, createImage, disableSnaping, doesContain, doesContainBack, doesContainFront, fireDSElementCenterChangedEvent, fireDSelementContentRepainted, fireDSElementDemotedEvent, fireDSElementDroppedEvent, fireDSElementFoldedEvent, fireDSElementGrabbingEvent, fireDSElementMovedEvent, fireDSElementPreCenterChangedEvent, fireDSElementPreFoldedEvent, fireDSElementPreMovedEvent, fireDSElementPreResizedEvent, fireDSElementPreRotatedEvent, fireDSElementPreZoomedEvent, fireDSElementResizedEvent, fireDSElementRotatedEvent, fireDSElementZoomedEvent, foldTo, getAbsoluteScale, getAlpha, getBackClippingShape, getBackGlassPane, getBackImage, getBackOpacity, getBackPane, getBackPaneHeight, getBackPaneWidth, getBackTransform, getBehavior, getBeta, getBounds, getBounds, getCenter, getD, getDSElementListener, getDSElementPreListener, getDSTabletopPane, getFingerRotationMode, getFingerRotationSpeed, getFoldPoint, getFoldPoint1, getFoldPoint2, getFoldProportion, getFoldShapeBack, getFoldShapeFront, getFoldType, getFrontClippingShape, getFrontier, getFrontImage, getFrontOpacity, getGlobalClippingShape, getGraphics, getIDOwner, getInertiaType, getJMenuBar, getJMenuBarPosition, getLocationOnScreen, getMaximumScale, getMinimumScale, getMinimumSize, getMode, getParent, getScale, getShadow, getShadowAdditionnalAngle, getShadowClip, getShadowDistance, getShadowImage, getShadowPosition, getShadowSize, getSlaveElementList, getSlavePosition, getSlaveTransform, getSnapAngle, getTabletopPane, getTitleBarPosition, getTransform, getTransparency, getViewPort, grabElement, inertiaCenter, inertiaMesh, inversePoint, inversePoint, inversePointBack, inverseVector, inverseVectorBack, isActive, isADragObject, isAnnotatable, isBetaAbs, isClip, isCornerFold, isCornerRotation, isCorners, isCornersResizeBR, isCornersResizeTL, isFingerRotatable, isFoldable, isFolded, isFoldReverse, isMouseTarget, isMyDragObject, isRotatable, isShadowHighQuality, isShadowSource, isShowing, isZoomable, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mousePressedInside, mousePressedInsideBack, mousePressedTestBack, mousePressedTestFront, mouseReleased, moveCenter, moveCenter, moveElementCenterTo, paint, paint, paintBackInternal, paintFoldCorner, paintInternal, paintMenu2, paintResizeCornerBR, paintResizeCornerTL, paintRotateCorner, paintShadow, paintShadowOld, paintSlaves, paintSoftBorder, redispatchEvent, refreshShadow, removeAllSlaveElement, removeDSElementListener, removeDSElementPreListener, removeSlaveElement, repaint, resetSlaveFrame, reshape, setAbsoluteScale, setActive, setAllCorners, setAlpha, setAlphaAndD, setAnnotable, setAnnotatable, setAnnotationOptions, setBackClippingShape, setBackGlassPane, setBackOpacity, setBackPane, setBehavior, setBeta, setBeta, setBetaAbs, setCenter, setCenterTo, setCenterTo, setCornerFold, setCornerRotation, setCornersResizeBR, setCornersResizeTL, setD, setFingerRotatable, setFingerRotationMode, setFingerRotationSpeed, setFoldable, setFoldReverse, setFrontClippingShape, setFrontier, setFrontOpacity, setGlobalClippingShape, setIcon, setIDOwner, setInertiaType, setJMenuBar, setJMenuBarPosition, setMaximumScale, setMinimumScale, setMode, setPreferredSize, setRotatable, setRotationCorner, setScale, setShadow, setShadowAdditionnalAngle, setShadowClip, setShadowDistance, setShadowHighQuality, setShadowSource, setSize, setSize, setSlavePosition, setSlaveTransform, setSnapAngle, setTitleBarPosition, setTransparency, setViewPort, setZoomable, startAnnotating, transformBackToLocal, transformPoint, transformPoint, transformVector, unfold, validate
 
Methods inherited from class javax.swing.JInternalFrame
addImpl, addInternalFrameListener, createRootPane, dispose, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getLastCursor, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setCursor, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIconifiable, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
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, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, 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, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from interface org.diamondspin.DSElement
acceptSlavery, acceptSlaveryRelease, addDSElementListener, doesContain, getAbsoluteScale, getAlpha, getBeta, getD, getHeight, getIDOwner, getScale, getTransform, getWidth, grabElement, isActive, isBetaAbs, isMouseTarget, isVisible, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, moveElementCenterTo, paint, paint, removeDSElementListener, setActive, setAlpha, setBeta, setBetaAbs, setD, setIDOwner, setScale, setSize, setVisible
 

Field Detail

MAX_SCALE

public static final int MAX_SCALE
See Also:
Constant Field Values

MAXIMUM_SIDE_THN

public static int MAXIMUM_SIDE_THN

MAXIMUM_SIDE_THNTHN

public static final int MAXIMUM_SIDE_THNTHN
See Also:
Constant Field Values

ORIGINAL

public static final int ORIGINAL
See Also:
Constant Field Values

imageID

protected int imageID

imageTransparency

protected float imageTransparency

bw

protected boolean bw

FullSizeImage

protected static BufferedImage FullSizeImage

FullSizeImageName

protected static String FullSizeImageName

image1

protected BufferedImage image1

labeled

protected boolean labeled

Header

protected String Header

Footer

protected String Footer

ImageName

protected String ImageName

MaxScale

protected double MaxScale

globalUseCache

protected static boolean globalUseCache

fingers

protected Point2D.Double[] fingers

distToScaleOne

protected double distToScaleOne

delta

protected double delta

fingersglob

protected Point2D.Double[] fingersglob

initBeta

protected double initBeta

saveMode

protected int saveMode

firstFinger

protected int firstFinger
Constructor Detail

DSImage

public DSImage(DSTabletopPane dsTabletopPane,
               String imgfileName,
               double d,
               double alpha,
               double scale)
        throws MalformedURLException,
               IOException,
               Exception
Constructor with MaximumSide by default

Parameters:
imgfileName - The name of the file to load the image
dsTabletopPane - The dscontainer to display me
d - diatance to the center
alpha - angle from the right
scale - scale factor of the imageif the image cannot be loaded
Throws:
MalformedURLException
IOException
Exception

DSImage

public DSImage(DSTabletopPane dsTabletopPane,
               String imgfileName,
               double d,
               double alpha,
               double scale,
               int maxSide)
        throws MalformedURLException,
               IOException,
               Exception
Constructor

Parameters:
dsTabletopPane - The unique DSTabletopPane which display everything
imgfileName - The name of the file to load the image
d - The distance to the center where to put the new element
alpha - The angle around the center where to put the new element
scale - The scale factor to zoom the elenemt=
maxSide - The maximun size of the longest side // useCache is set to the default, which is UseCache
Throws:
Exception - Description of the Exception
MalformedURLException
IOException

DSImage

public DSImage(DSTabletopPane tabletopPane,
               String filename,
               double d,
               double alpha,
               double scale,
               int maxSide,
               boolean useCache)
        throws MalformedURLException,
               IOException,
               Exception
Constructor

Parameters:
tabletopPane - The unique DSTabletopPane which display everything
filename - The document name
d - The distance to the center where to put the new element
alpha - The angle around the center where to put the new element
scale - The scale factor to zoom the elenemt=
maxSide - The maximun size of the longest side
useCache - This is used to set caching to a non default value
Throws:
Exception - Description of the Exception
MalformedURLException
IOException
Method Detail

scaleToMaximum

public void scaleToMaximum(int MaximumSide_Arg)
scale the image so the longer side has this size

Parameters:
MaximumSide_Arg - Description of the Parameter

scaleToHeight

public void scaleToHeight(int MaximumHeight_Arg)
scale the image so the height side has this size

Parameters:
MaximumHeight_Arg - Description of the Parameter

contains

public boolean contains(int x,
                        int y)
Overrides:
contains in class DSFrame
Parameters:
x -
y -
Returns:
if the image is opaque at this point

transformImage

public void transformImage(BufferedImageOp op)
Reload the image because at the current scale factor we can have better resolution than the one given by the old loaded image.


reloadImage

public void reloadImage()
Reload the image because at the current scale factor we can have better resolution than the one given by the old loaded image.


getImage

public BufferedImage getImage()
Accesor to the image to paint


setImage

public void setImage(BufferedImage img)
Accesor to the image to paint


setLabeled

public void setLabeled(boolean Labeled)
have to display text arround ?

Parameters:
Labeled - The new labeled value

isLabeled

public boolean isLabeled()
have to display text arround ?

Returns:
The labeled value

setHeader

public void setHeader(String text)
Sets the header attribute of the DSImage object

Parameters:
text - The new header value

getHeader

public String getHeader()
Gets the header attribute of the DSImage object

Returns:
The header value

setFooter

public void setFooter(String text)
Sets the footer attribute of the DSImage object

Parameters:
text - The new footer value

getFooter

public String getFooter()
Gets the footer attribute of the DSImage object

Returns:
The footer value

getImageName

public String getImageName()
Gets the imageName attribute of the DSImage object

Returns:
The imageName value

setImageName

protected void setImageName(String ImageName_Arg)
Sets the imageName attribute of the DSImage object

Parameters:
ImageName_Arg - The new imageName value

setUseCache

public static void setUseCache(boolean UseCache_Arg)
Sets the useCache attribute of the DSImage class

Parameters:
UseCache_Arg - The new useCache value

isUseCache

public static boolean isUseCache()
Gets the useCache attribute of the DSImage class

Returns:
The useCache value

toString

public String toString()
Description copied from class: DSFrame

Overrides:
toString in class DSFrame

isBw

public boolean isBw()
Returns:
the bw

setBw

public void setBw(boolean bw)
Parameters:
bw - the bw to set


Copyright © 2006 Frederic Vernier(LIMSI) Chia Shen(MERL) Guillaume Besacier(LIMSI). All Rights Reserved.