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.
-
-
Field Summary
-
Fields inherited from class org.eclipse.sirius.diagram.ui.tools.api.figure.SVGFigure
documentsMap, IMAGE_NOT_FOUND_URI, modeWithViewBox, SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description RotatableSVGWorkspaceImageFigure(int mode, String topImgPath, String leftImgPath, String bottomImgPath, String rightImgPath)
Creates a rotative image
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBottomImgPath()
String
getCurrentImgPath()
String
getLeftImgPath()
String
getRightImgPath()
String
getTopImgPath()
void
refreshFigure(org.eclipse.sirius.diagram.ContainerStyle containerStyle)
Refresh the figure.void
refreshFigure(org.eclipse.sirius.diagram.CustomStyle imageStyle)
Refresh the figure.void
setBottomImgAsCurrent()
void
setCurrentImgPath(String currentImgPath)
void
setLeftImgAsCurrent()
void
setRightImgAsCurrent()
void
setTopImgAsCurrent()
-
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
contentChanged, doRemoveFromCache, getDocument, getDocumentKey, getImage, getImageAlphaValue, getImageAspectRatio, getImageHeight, getImageWidth, getKey, getSiriusAlpha, getTranscoder, getURI, isTransparent, paintFigure, 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
-
-
-
-
Method Detail
-
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
-
getCurrentImgPath
public String getCurrentImgPath()
- Returns:
- the currentImgPath
-
setCurrentImgPath
public void setCurrentImgPath(String currentImgPath)
- Parameters:
currentImgPath
- the currentImgPath to set
-
getBottomImgPath
public String getBottomImgPath()
- Returns:
- the bottomImgPath
-
getLeftImgPath
public String getLeftImgPath()
- Returns:
- the leftImgPath
-
getRightImgPath
public String getRightImgPath()
- Returns:
- the rightImgPath
-
getTopImgPath
public String getTopImgPath()
- Returns:
- the topImgPath
-
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
-
-