home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (Layer.js)

This example Java source code file (Layer.js) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords


The Layer.js Java example source code

    This is js-side Layer definition

function Layer(object) {
    this.id = parseInt(object.id);
    this.name = object.name;
    this.layerType = object.layerType;
    this.x = parseInt(object.x);
    this.y = parseInt(object.y);
    this.color = object.color;

    // text properties

    this.mainLine = object.description.mainLine;
    this.subLine = object.description.subLine;

    // now we parse connections
    this.connections = [];
    for (var i = 0; i < object.connections.length; i++) {
        var connection = new Connection(object.connections[i]);

Other Java examples (source code examples)

Here is a short list of links related to this Java Layer.js source code file:

my book on functional programming


new blog posts


Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.