why protege appears blue arrow automatically? - protege

when I followed the official document of protege to set up a pizza ontology,it is OK,but when I open this ontology after saving,I found each class has a grey arrow ahead and some blue arrows (refer the picture1).I take class Pizza and PizzaBase as an example,we know that the relationship between Pizza and PizzaBase is hasBaase,that is Pizza hasBase some PizzaBase,so I click the Pizza and in class Description,I set that(refer secong picture2),then the class Pizza automatically becomes the subclass of PizzaBase,and a blue arrow appears. there are many blue arrows.I don't know what is the matter,so please help me,thanks very much! enter image description here
enter image description here

Related

How to set the width of Swimlanes in PlantUML activity diagram?

I am using PlantUML to draw a activity diagram and I am using the new activity diagram syntax (beta).
I am not able to set the width of the swimlanes. I have tried using the following
skinparam swimlaneWidth 400
and
skinparam swimlaneWidth same
but these do not work. I have attached a sample diagram that shows the problem.
using
skinparam wrapWidth 100
I have been able to control when the activity text wraps to the next line, but that does not help with the swimlane width.
How do I set the width of the swimlanes? Happy to use a workaround if one exists.
Here is the full sample.
#startuml
skinparam wrapWidth 100
|Swimlane1|
start
:foo1;
|#AntiqueWhite|Swimlane2|
:foo2;
:Long Activity Name;
|Swimlane1|
:Very Very Very Long Activity Name;
|Swimlane2|
:foo5;
stop
#enduml
and the image this generates
.
There is a workaround: set spaces in the title of the swimlane. Doing this it is only possible to enlarge it, not to shrink it.

How to color every face of a box in VPython?

I want to make a Rubik's cube with VPython and I've faced a problem in the first stage! I want to color every face of a box with a different color but I can't find that! In the tutorial you only can color all of the faces of the box with one certain color!
What should I do?
Note: I'm using VPython 7 and Python 3.6
You can also make a box with different colored faces using a compound object made up of 6 pyramid objects each of a different color.
def cubelet(....): # a "factory function"
#create a list of the 6 pyramids with different colors; suppose its name is L
L = [pyramid(color=color.red,pos=vec(),axis=vec()), ... ]
return compound(L)
c = cubelet(....)
This "factory function" (a function that returns an object) returns an object that has the usual properties of primitive objects such as box. You can manipulate this compound object by changing c.pos or c.axis, etc. You can create copies of this cubelet:
c2 = c.clone(pos=vec(10,5,0), size=vec(2,1,0.2))
For pyramid see documentation
http://www.glowscript.org/docs/VPythonDocs/pyramid.html
Just arrange 6 of these in the shape of a box. For compound object see
http://www.glowscript.org/docs/VPythonDocs/compound.html
to make a compound object out of 6 pyramids.
You can try make a box with different color faces out of 6 boxes similar to what is shown in this demo, where the box has red blue and grey faces.
http://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/Bounce-VPython
You can also make a compound object out of a number of objects.
http://www.glowscript.org/docs/VPythonDocs/compound.html
So you can make a compound object called multicolored box made out of six boxes of different colors.
You can also try creating your own box out of triangles and/or quads and color each face.
http://www.glowscript.org/docs/VPythonDocs/triangle.html

Rational Software Architect - missing icon for Class element in palette window?

I have been trying to create a Class diagram in UML 2.0 using Rational Architect.
However when I look at the palette options there is no icon for Class to click and position a class item on the diagram.
Screenshot:
Following this example here , on page 2 you can clearly see the palette has an icon for "Class"
Why can I not find it? Is it a specific type of project or model I have to use ?
Thanks
Problem solved,
Was in "Use-case" view instead of "Model" view.

Rating screen using LWUIT

I want to create a MIDlet from where I call the class.In the class there is an Image Array which contain 10 images and default ration is 0.Now I want to know how to create the class when the MIDlet call the class suppose iRating=new Rating(3),where Rating is the class name.when I show() the form at that moment only 3 image will be highlighted rest are not,if I put 4 then 4 image will highlighted.Please help me how to do
the output will be as follow.
when we click the 3rd star then first three star will be highlighted rest are not.please suggest me how to do that.
I suggest you use a checkbox or toggle button (checkbox with setToggle(true)) and set the images appropriately. To place 5 of these just add them all into a horizontal layout container.

StarUML defining interface methods and attributes in the interface icon?

I'm just using StarUML to create my UML Class diagram and something is bothering me. I create an interface representation, which is a circle, however, there is no room to add which methods and attributes the interface defines. Is this normal UML practice?
If not, how do you know (say a class implements this interface and has 4 methods defined) which of the 4 methods came from the interface and which didnt?
Solved:
Ok just incase someone else has this problem- there are two notations, both are possible in StarUML but only one explicitly (the dot notation). To create the <> notation, enter the name as <> IInterface_Name and then draw a realisation line between the implementing classes. Be sure to manually delete the old (wrong) relationship you had by right clicking the class, collection editor and then relations.
It is very simple:
If you need just show method of interface - right click on interface and un-select Format/Suppress operation (see blue circle on picture)
If you need to display instead of circle just squared form of interface (on my picture it is ISome) use Format/Stereotype Display/Decoration (see red circle on picture bellow)

Resources