Class RotatableSVGWorkspaceImageFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.sirius.diagram.ui.tools.api.figure.SVGFigure
org.eclipse.sirius.diagram.ui.tools.api.figure.SVGWorkspaceImageFigure
org.palladiosimulator.editors.sirius.custom.style.rotatable.figure.RotatableSVGWorkspaceImageFigure
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
,org.eclipse.sirius.diagram.ui.tools.api.figure.IWorkspaceImageFigure
,org.eclipse.sirius.ext.draw2d.figure.ImageFigureWithAlpha
,org.eclipse.sirius.ext.draw2d.figure.ITransparentFigure
,org.eclipse.sirius.ext.draw2d.figure.StyledFigure
public class RotatableSVGWorkspaceImageFigure
extends org.eclipse.sirius.diagram.ui.tools.api.figure.SVGWorkspaceImageFigure
Rotatable Workspace Image Figure : switch mode ROTATION or IMAGE, rotate the
specific image or display four images in North South East and West.
-
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.sirius.diagram.ui.tools.api.figure.SVGFigure
documentsMap, IMAGE_NOT_FOUND_URI, modeWithViewBox, SEPARATOR
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
Fields inherited from interface org.eclipse.sirius.ext.draw2d.figure.ITransparentFigure
DEFAULT_ALPHA
-
Constructor Summary
ConstructorDescriptionRotatableSVGWorkspaceImageFigure
(int mode, String topImgPath, String leftImgPath, String bottomImgPath, String rightImgPath) Creates a rotative image -
Method Summary
Modifier and TypeMethodDescriptionvoid
refreshFigure
(org.eclipse.sirius.diagram.ContainerStyle containerStyle) Refresh the figure.void
refreshFigure
(org.eclipse.sirius.diagram.CustomStyle imageStyle) Refresh the figure.void
protected void
setCurrentOrientation
(Orientation orientation) void
void
void
Methods inherited from class org.eclipse.sirius.diagram.ui.tools.api.figure.SVGWorkspaceImageFigure
createImageFigure, flyWeightImage, refreshFigure, removeFromCache, setMaximumSize, setMinimumSize, setPreferredSize, setSize
Methods inherited from class org.eclipse.sirius.diagram.ui.tools.api.figure.SVGFigure
computeImageKey, contentChanged, doRemoveFromCache, getDocument, getDocumentKey, getImage, getImageAlphaValue, getImageAspectRatio, getImageHeight, getImageWidth, getKey, getSiriusAlpha, getTranscoder, getURI, initTranscoder, isTransparent, paintFigure, paintRenderedBitmap, paintSVGReference, paintSVGReference, registerSVGDocument, setSiriusAlpha, setTransparent, setURI, setURI
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, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, 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, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, 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
Methods inherited from interface org.eclipse.draw2d.IFigure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, 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, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setOpaque, setParent, setRequestFocusEnabled, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
Methods inherited from interface org.eclipse.sirius.diagram.ui.tools.api.figure.IWorkspaceImageFigure
getImageAspectRatio
-
Constructor Details
-
Method Details
-
refreshFigure
public void refreshFigure(org.eclipse.sirius.diagram.CustomStyle imageStyle) Refresh the figure.- Parameters:
imageStyle
- the image associated to the figure
-
refreshFigure
public void refreshFigure(org.eclipse.sirius.diagram.ContainerStyle containerStyle) Refresh the figure.- Specified by:
refreshFigure
in interfaceorg.eclipse.sirius.diagram.ui.tools.api.figure.IWorkspaceImageFigure
- Overrides:
refreshFigure
in classorg.eclipse.sirius.diagram.ui.tools.api.figure.SVGWorkspaceImageFigure
- Parameters:
containerStyle
- the style of the container
-
setCurrentOrientation
-
getCurrentOrientation
-
getCurrentImgPath
- Returns:
- the currentImgPath
-
setBottomImgAsCurrent
public void setBottomImgAsCurrent()- Parameters:
bottomImgPath
- the bottomImgPath to set
-
setLeftImgAsCurrent
public void setLeftImgAsCurrent()- Parameters:
leftImgPath
- the leftImgPath to set
-
setRightImgAsCurrent
public void setRightImgAsCurrent()- Parameters:
rightImgPath
- the rightImgPath to set
-
setTopImgAsCurrent
public void setTopImgAsCurrent()- Parameters:
topImgPath
- the topImgPath to set
-