Java源码示例:com.sun.hotspot.igv.graph.InputSlot
示例1
public void apply(Diagram d) {
List<Figure> list = selector.selected(d);
for (Figure f : list) {
for (OutputSlot os : f.getOutputSlots()) {
for (Connection c : os.getConnections()) {
InputSlot is = c.getInputSlot();
is.setName(f.getProperties().get("dump_spec"));
String s = f.getProperties().get("short_name");
if (s != null) {
is.setShortName(s);
}
}
}
d.removeFigure(f);
}
}
示例2
public void apply(Diagram d) {
List<Figure> list = selector.selected(d);
for (Figure f : list) {
for (OutputSlot os : f.getOutputSlots()) {
for (Connection c : os.getConnections()) {
InputSlot is = c.getInputSlot();
is.setName(f.getProperties().get("dump_spec"));
String s = f.getProperties().get("short_name");
if (s != null) {
is.setShortName(s);
}
}
}
d.removeFigure(f);
}
}
示例3
public void apply(Diagram d) {
List<Figure> list = selector.selected(d);
for (Figure f : list) {
for (OutputSlot os : f.getOutputSlots()) {
for (Connection c : os.getConnections()) {
InputSlot is = c.getInputSlot();
is.setName(f.getProperties().get("dump_spec"));
String s = f.getProperties().get("short_name");
if (s != null) {
is.setShortName(s);
}
}
}
d.removeFigure(f);
}
}
示例4
public void apply(Diagram d) {
List<Figure> list = selector.selected(d);
for (Figure f : list) {
for (OutputSlot os : f.getOutputSlots()) {
for (Connection c : os.getConnections()) {
InputSlot is = c.getInputSlot();
is.setName(f.getProperties().get("dump_spec"));
String s = f.getProperties().get("short_name");
if (s != null) {
is.setShortName(s);
}
}
}
d.removeFigure(f);
}
}
示例5
@Override
public void apply(Diagram d) {
List<Figure> figures = d.getFigures();
for (Figure f : figures) {
for (InputSlot is : f.getInputSlots()) {
for (Connection c : is.getConnections()) {
String type = c.getType();
if (type == "Association" && "EndNode".equals(c.getOutputSlot().getFigure().getProperties().get("class"))) {
type = "Successor";
}
if (type != null) {
Color typeColor = usageColor.get(type);
if (typeColor == null) {
c.setColor(otherUsageColor);
} else {
c.setColor(typeColor);
}
if (c.getStyle() != ConnectionStyle.DASHED && type == "Successor") {
c.setStyle(ConnectionStyle.BOLD);
}
}
}
}
}
}
示例6
public void apply(Diagram d) {
List<Figure> list = selector.selected(d);
for (Figure f : list) {
for (OutputSlot os : f.getOutputSlots()) {
for (Connection c : os.getConnections()) {
InputSlot is = c.getInputSlot();
is.setName(f.getProperties().get("dump_spec"));
String s = f.getProperties().get("short_name");
if (s != null) {
is.setShortName(s);
}
}
}
d.removeFigure(f);
}
}
示例7
public void apply(Diagram d) {
List<Figure> list = selector.selected(d);
for (Figure f : list) {
for (OutputSlot os : f.getOutputSlots()) {
for (Connection c : os.getConnections()) {
InputSlot is = c.getInputSlot();
is.setName(f.getProperties().get("dump_spec"));
String s = f.getProperties().get("short_name");
if (s != null) {
is.setShortName(s);
}
}
}
d.removeFigure(f);
}
}
示例8
public void apply(Diagram d) {
List<Figure> list = selector.selected(d);
for (Figure f : list) {
for (OutputSlot os : f.getOutputSlots()) {
for (Connection c : os.getConnections()) {
InputSlot is = c.getInputSlot();
is.setName(f.getProperties().get("dump_spec"));
String s = f.getProperties().get("short_name");
if (s != null) {
is.setShortName(s);
}
}
}
d.removeFigure(f);
}
}
示例9
public InputSlotWidget(InputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) {
super(slot, scene, parent, fw);
inputSlot = slot;
//init();
//getFigureWidget().getLeftWidget().addChild(this);
Point p = inputSlot.getRelativePosition();
p.x -= this.calculateClientArea().width / 2;
p.y += Figure.SLOT_START;
this.setPreferredLocation(p);
}
示例10
public InputSlotWidget(InputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) {
super(slot, scene, parent, fw);
inputSlot = slot;
init();
getFigureWidget().getLeftWidget().addChild(this);
}
示例11
public InputSlot getInputSlot() {
return inputSlot;
}
示例12
public InputSlotWidget(InputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) {
super(slot, scene, parent, fw);
inputSlot = slot;
init();
getFigureWidget().getLeftWidget().addChild(this);
}
示例13
public InputSlot getInputSlot() {
return inputSlot;
}
示例14
public InputSlotWidget(InputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) {
super(slot, scene, parent, fw);
inputSlot = slot;
init();
getFigureWidget().getLeftWidget().addChild(this);
}
示例15
public InputSlot getInputSlot() {
return inputSlot;
}
示例16
public InputSlotWidget(InputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) {
super(slot, scene, parent, fw);
inputSlot = slot;
init();
getFigureWidget().getLeftWidget().addChild(this);
}
示例17
public InputSlot getInputSlot() {
return inputSlot;
}
示例18
public InputSlot getInputSlot() {
return inputSlot;
}
示例19
public InputSlotWidget(InputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) {
super(slot, scene, parent, fw);
inputSlot = slot;
init();
getFigureWidget().getLeftWidget().addChild(this);
}
示例20
public InputSlot getInputSlot() {
return inputSlot;
}
示例21
public InputSlotWidget(InputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) {
super(slot, scene, parent, fw);
inputSlot = slot;
init();
getFigureWidget().getLeftWidget().addChild(this);
}
示例22
public InputSlot getInputSlot() {
return inputSlot;
}
示例23
public InputSlotWidget(InputSlot slot, DiagramScene scene, Widget parent, FigureWidget fw) {
super(slot, scene, parent, fw);
inputSlot = slot;
init();
getFigureWidget().getLeftWidget().addChild(this);
}
示例24
public InputSlot getInputSlot() {
return inputSlot;
}