|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.draw2d.Figure
pl.edu.agh.cast.figure.ImageFigure
public class ImageFigure
A Figure with an Image.
The images are provided from ResourceRegistry.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure |
|---|
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch |
| Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure |
|---|
org.eclipse.draw2d.IFigure.NoInsets |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.draw2d.Figure |
|---|
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
| Fields inherited from interface org.eclipse.draw2d.IFigure |
|---|
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
| Constructor Summary | |
|---|---|
ImageFigure(String resourceId,
ImageSize size)
Creates new figure with an image in resource by given id and with given size. |
|
ImageFigure(String resourceId,
ImageSize size,
String defaultResourceId)
Creates new figure with an image in resource by given id and with given size. |
|
| Method Summary | |
|---|---|
org.eclipse.draw2d.geometry.Dimension |
getMinimumSize(int arg0,
int arg1)
|
org.eclipse.draw2d.geometry.Dimension |
getPreferredSize(int x,
int y)
|
protected void |
paintFigure(org.eclipse.draw2d.Graphics gc)
|
void |
setBounds(org.eclipse.draw2d.geometry.Rectangle bounds)
|
| Methods inherited from class org.eclipse.draw2d.Figure |
|---|
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getParent, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageFigure(String resourceId,
ImageSize size)
resourceId - id of the image to be usedsize - image size
IllegalArgumentException - when resource does not exist or resource does not contain image with given size
public ImageFigure(String resourceId,
ImageSize size,
String defaultResourceId)
resourceId - id of the image to be usedsize - image sizedefaultResourceId - id of the default image to be used (in case the specific one could not be located)
IllegalArgumentException - when resource nor default resource does not exist or resource does not contain image with given size| Method Detail |
|---|
protected void paintFigure(org.eclipse.draw2d.Graphics gc)
paintFigure in class org.eclipse.draw2d.FigureFigure.paintFigure(org.eclipse.draw2d.Graphics)public void setBounds(org.eclipse.draw2d.geometry.Rectangle bounds)
setBounds in interface org.eclipse.draw2d.IFiguresetBounds in class org.eclipse.draw2d.FigureFigure.setBounds(org.eclipse.draw2d.geometry.Rectangle)
public org.eclipse.draw2d.geometry.Dimension getMinimumSize(int arg0,
int arg1)
getMinimumSize in interface org.eclipse.draw2d.IFiguregetMinimumSize in class org.eclipse.draw2d.FigureFigure.getMinimumSize(int, int)
public org.eclipse.draw2d.geometry.Dimension getPreferredSize(int x,
int y)
getPreferredSize in interface org.eclipse.draw2d.IFiguregetPreferredSize in class org.eclipse.draw2d.FigureFigure.getPreferredSize(int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||