Examples of makeLabel()


Examples of com.thinkaurelius.titan.core.DefaultTypeMaker.makeLabel()

                                context.getCounter(Counters.PROPERTY_KEYS_CREATED).increment(1l);
                            }
                        } else {
                            if (null == graph.getType(property2)) {
                                //typeMaker.makeLabel(property2, graph.makeType());
                                typeMaker.makeLabel(graph.makeLabel(property2));
                                context.getCounter(Counters.EDGE_LABELS_CREATED).increment(1l);
                            }
                        }
                    }
                }
View Full Code Here

Examples of com.thinkaurelius.titan.core.TitanTransaction.makeLabel()

        }
        for (int i = 0; i < edgeLabels; i++) {
            String labelName = getEdgeLabelName(i);
            String pkName = getSortKeyForLabel(labelName);
            TitanKey pk = tx.getPropertyKey(pkName);
            tx.makeLabel(getEdgeLabelName(i)).sortKey(pk).make();
        }

        tx.makeKey(UID_PROP).dataType(Long.class).indexed(Vertex.class).single().unique().make();
        tx.commit();
    }
View Full Code Here

Examples of com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.makeLabel()

    @Override
    public void testCompetingThreads() {
        TitanBlueprintsGraph graph = (TitanBlueprintsGraph) graphTest.generateGraph();
        //Need to define types before hand to avoid deadlock in transactions

        graph.makeLabel("friend").make();
        graph.makeKey("test").dataType(Long.class).make();
        graph.makeKey("blah").dataType(Float.class).make();
        graph.makeKey("bloop").dataType(Integer.class).make();

View Full Code Here

Examples of com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.makeLabel()


    @Test
    public void testValueOrdering() {
        StandardTitanGraph graph = (StandardTitanGraph) StorageSetup.getInMemoryGraph();
        TitanLabel father = graph.makeLabel("father").manyToOne().make();
        for (int i=1;i<=5;i++) graph.makeKey("key"+i).single().dataType(Integer.class).make();

        TitanVertex v1 = graph.addVertex(null), v2 = graph.addVertex(null);
        TitanEdge e1 = v1.addEdge("father",v2);
        for (int i=1;i<=5;i++) e1.setProperty("key"+i,i);
View Full Code Here

Examples of org.jitterbit.ui.style.TextStyle.makeLabel()

        layout.decorate(canvas);
    }

    private static JLabel createDisclaimer() {
        TextStyle style = TextStyle.newStyle(TextStyles.ErrorInfoText, Font.BOLD);
        return style.makeLabel(PackageResources.UpdateSourcePage.DISCLAIMER);
    }

    @Override
    public void requestFocus() {
        table.requestFocus();
View Full Code Here

Examples of org.jitterbit.ui.style.TextStyle.makeLabel()

        layout.decorate(canvas);
    }

    private UiProvider layoutCaption() {
        TextStyle labelStyle = WizardStyleSheet.MEDIUM_CAPTION_STYLE;
        JLabel itemLabel = labelStyle.makeLabel("");
        RendererUtils.decorateRenderer(itemLabel, getStartPoint(), Size.MEDIUM);
        BoxBuilder top = BoxBuilder.horizontal();
        top.addAll(labelStyle.makeLabel("Deep copy of "), itemLabel);
        return top;
    }
View Full Code Here

Examples of org.jitterbit.ui.style.TextStyle.makeLabel()

    private UiProvider layoutCaption() {
        TextStyle labelStyle = WizardStyleSheet.MEDIUM_CAPTION_STYLE;
        JLabel itemLabel = labelStyle.makeLabel("");
        RendererUtils.decorateRenderer(itemLabel, getStartPoint(), Size.MEDIUM);
        BoxBuilder top = BoxBuilder.horizontal();
        top.addAll(labelStyle.makeLabel("Deep copy of "), itemLabel);
        return top;
    }

    private UiProvider layoutSelector() {
        JLabel label = UiProviderLabel.create("&Select which of the following items to copy:", selector);
View Full Code Here

Examples of org.jitterbit.ui.style.TextStyle.makeLabel()

    private final JLabel postfix;

    public DebuggeeNameLabel() {
        TextStyle style = TextStyles.DefaultText;
        prefix = style.makeLabel("");
        debuggee = style.makeLabel("");
        TextStyle postfixStyle = TextStyle.adjustSize(TextStyles.DefaultBold, -1);
        postfix = postfixStyle.makeLabel("");
    }
View Full Code Here

Examples of org.jitterbit.ui.style.TextStyle.makeLabel()

    private final JLabel postfix;

    public DebuggeeNameLabel() {
        TextStyle style = TextStyles.DefaultText;
        prefix = style.makeLabel("");
        debuggee = style.makeLabel("");
        TextStyle postfixStyle = TextStyle.adjustSize(TextStyles.DefaultBold, -1);
        postfix = postfixStyle.makeLabel("");
    }

    public void layout(BoxBuilder parent) {
View Full Code Here

Examples of org.jitterbit.ui.style.TextStyle.makeLabel()

    public DebuggeeNameLabel() {
        TextStyle style = TextStyles.DefaultText;
        prefix = style.makeLabel("");
        debuggee = style.makeLabel("");
        TextStyle postfixStyle = TextStyle.adjustSize(TextStyles.DefaultBold, -1);
        postfix = postfixStyle.makeLabel("");
    }

    public void layout(BoxBuilder parent) {
        parent.addAllWithSpace(5, prefix, debuggee, postfix);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.