Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2013-10-25 12:09:08 -0400
committerCamille Letavernier2013-10-25 12:09:08 -0400
commit3b137be84f2f4cea30252962688c51555fb94e5a (patch)
treea9441acf54a1b99b46b56f46fd03b883ac4fcca4 /plugins
parent8e3236d82b34f3932c0ea15d525f84b57935be7d (diff)
downloadorg.eclipse.papyrus-3b137be84f2f4cea30252962688c51555fb94e5a.tar.gz
org.eclipse.papyrus-3b137be84f2f4cea30252962688c51555fb94e5a.tar.xz
org.eclipse.papyrus-3b137be84f2f4cea30252962688c51555fb94e5a.zip
419965: Display of the name must be optional
https://bugs.eclipse.org/bugs/show_bug.cgi?id=419965
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/custom-src/org/eclipse/papyrus/uml/diagram/usecase/draw2d/StickMan.java48
1 files changed, 39 insertions, 9 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/custom-src/org/eclipse/papyrus/uml/diagram/usecase/draw2d/StickMan.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/custom-src/org/eclipse/papyrus/uml/diagram/usecase/draw2d/StickMan.java
index 3d32e87d492..b47529851c6 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/custom-src/org/eclipse/papyrus/uml/diagram/usecase/draw2d/StickMan.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase/custom-src/org/eclipse/papyrus/uml/diagram/usecase/draw2d/StickMan.java
@@ -57,6 +57,7 @@ public class StickMan extends ShadowShape implements IPapyrusNodeNamedElementFig
/**
* Outlines the ellipse.
*/
+ @Override
protected void outlineShape(Graphics graphics, Rectangle bounds) {
PointList pl = setupPoints(bounds);
graphics.drawPolygon(pl);
@@ -67,13 +68,14 @@ public class StickMan extends ShadowShape implements IPapyrusNodeNamedElementFig
/**
* {@inheritDoc}
*/
+ @Override
public Dimension getPreferredSize(int wHint, int hHint) {
Dimension size = new Dimension(-1, -1);
- if (wHint < BASE_W) {
- size.width = (int) BASE_W;
+ if(wHint < BASE_W) {
+ size.width = (int)BASE_W;
}
- if (hHint < BASE_H) {
- size.height = (int) BASE_H;
+ if(hHint < BASE_H) {
+ size.height = (int)BASE_H;
}
if(is3D()) {
size.expand(SHADOW_SIZE, SHADOW_SIZE);
@@ -84,6 +86,7 @@ public class StickMan extends ShadowShape implements IPapyrusNodeNamedElementFig
/**
* Fills the ellipse.
*/
+ @Override
protected void fillShape(Graphics graphics, Rectangle bounds) {
PointList pl = setupPoints(bounds);
graphics.fillPolygon(pl);
@@ -158,82 +161,109 @@ public class StickMan extends ShadowShape implements IPapyrusNodeNamedElementFig
return pl;
}
+ @Override
public void setStereotypePropertiesInBrace(String stereotypeProperties) {
// TODO Auto-generated method stub
}
+ @Override
public void setStereotypePropertiesInCompartment(String stereotypeProperties) {
// TODO Auto-generated method stub
}
+ @Override
public Label getStereotypesLabel() {
// TODO Auto-generated method stub
return null;
}
+ @Override
public void setStereotypeDisplay(String stereotypes, Image image) {
// TODO Auto-generated method stub
}
+ @Override
public void setQualifiedName(String qualifiedName) {
// TODO Auto-generated method stub
}
+ @Override
public Label getQualifiedNameLabel() {
// TODO Auto-generated method stub
return null;
}
+ @Override
public Label getTaggedLabel() {
// TODO Auto-generated method stub
return null;
}
+ @Override
public void setDepth(int depth) {
// TODO Auto-generated method stub
}
+ @Override
public WrappingLabel getNameLabel() {
// TODO Auto-generated method stub
return null;
}
+ @Override
public void setNameLabelIcon(boolean displayNameLabelIcon) {
// TODO Auto-generated method stub
}
+ @Override
public Color getBorderColor() {
// TODO Auto-generated method stub
return null;
}
+ @Override
public boolean isShadow() {
// TODO Auto-generated method stub
return false;
}
+ @Override
public void setBorderColor(Color borderColor) {
// TODO Auto-generated method stub
-
+
}
+ @Override
public void setShadow(boolean shadow) {
// TODO Auto-generated method stub
-
+
}
+ @Override
public void setTransparency(int transparency) {
// TODO Auto-generated method stub
-
+
}
+ @Override
public void setGradientData(int gradientColor1, int gradientColor2, int gradientStyle) {
// TODO Auto-generated method stub
-
+
}
+ @Override
public void setIsUsingGradient(boolean b) {
// TODO Auto-generated method stub
-
+
+ }
+
+ @Override
+ public void restoreNameLabel() {
+ //Nothing. StickMan uses a floating label and should not implement this method
+ }
+
+ @Override
+ public void removeNameLabel() {
+ //Nothing. StickMan uses a floating label and should not implement this method
}
}

Back to the top