Examples of ViewSettings


Examples of com.github.rnewson.couchdb.lucene.couchdb.ViewSettings

        database.handleAttachment(id, attachment.attachmentName, handler);
    }

    private void addField(final RhinoField field, final ViewSettings defaults, final Document out) throws ParseException {
        final ViewSettings settings = new ViewSettings(field.settings, defaults);
        final FieldType type = settings.getFieldType();
        out.add(type.toField(settings.getField(), field.value, settings));
    }
View Full Code Here

Examples of org.neo4j.neoclipse.decorate.SimpleGraphDecorator.ViewSettings

    {
        {
            String relationshipGroupName = "relationship-labels";
            GroupMarker relationshipGroup = new GroupMarker( relationshipGroupName );
            mm.add( relationshipGroup );
            ViewSettings viewSettings = graphView.getLabelProvider().getViewSettings();
            // relationship types actions
            mm.appendToGroup( relationshipGroupName,
                    new ShowRelationshipTypesAction( graphView, viewSettings.isShowRelationshipTypes() ) );
            // relationship labels actions
            mm.appendToGroup( relationshipGroupName,
                    new ShowRelationshipLabelAction( graphView, viewSettings.isShowRelationshipNames() ) );
            mm.appendToGroup( relationshipGroupName,
                    new FilterRelationshipPropertiesAction( graphView, viewSettings.isFilterRelationshipProperties() ) );
            // relationship properties actions
            mm.appendToGroup( relationshipGroupName,
                    new ShowRelationshipPropertyKeysAction( graphView, viewSettings.isShowRelationshipPropertyKeys() ) );
            // relationship id's actions
            mm.appendToGroup( relationshipGroupName,
                    new ShowRelationshipIdsAction( graphView, viewSettings.isShowRelationshipIds() ) );
            // separator
            {
                mm.add( SEPARATOR );
            }
            // relationship directions actions
            mm.appendToGroup( relationshipGroupName,
                    new ShowRelationshipDirectionsAction( graphView, viewSettings.isShowArrows() ) );
            // relationship colors actions
            mm.appendToGroup( relationshipGroupName,
                    new ShowRelationshipColorsAction( graphView, viewSettings.isShowRelationshipColors() ) );
            // separator
            {
                mm.add( SEPARATOR );
            }
            String nodeGroupName = "node-labels";
            GroupMarker nodeGroup = new GroupMarker( nodeGroupName );
            mm.add( nodeGroup );
            // properties action
            mm.appendToGroup( nodeGroupName, new ShowNodeLabelAction( graphView, viewSettings.isShowNodeNames() ) );
            mm.appendToGroup( nodeGroupName,
                    new FilterNodePropertiesAction( graphView, viewSettings.isFilterNodeProperties() ) );
            mm.appendToGroup( nodeGroupName,
                    new ShowNodePropertyKeysAction( graphView, viewSettings.isShowNodePropertyKeys() ) );
            mm.appendToGroup( nodeGroupName, new ShowNodeIdsAction( graphView, viewSettings.isShowNodeIds() ) );
            // separator
            {
                mm.add( SEPARATOR );
            }
            // node colors actions
            mm.appendToGroup( nodeGroupName, new ShowNodeColorsAction( graphView, viewSettings.isShowNodeColors() ) );
            // node icons actions
            mm.appendToGroup( nodeGroupName, new ShowNodeIconsAction( graphView, viewSettings.isShowNodeIcons() ) );
        }
    }
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.