com.jwebmp.plugins.c3.C3 Maven / Gradle / Ivy
Show all versions of jwebmp-c3 Show documentation
/*
* Copyright (C) 2017 GedMarc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.jwebmp.plugins.c3;
import com.jwebmp.core.base.html.Div;
import com.jwebmp.core.plugins.ComponentInformation;
/**
* An implementation of the C3 Graphs project.
*
*
* @author GedMarc
* @version 1.0
* @since 29 Aug 2015
*/
@ComponentInformation(name = "C3 Graphing",
description = "C3 makes it easy to generate D3-based charts by wrapping the code required to construct the entire chart. We don't need to write D3 code any more. ",
url = "https://www.c3js.org",
wikiUrl = "https://github.com/GedMarc/JWebMP-C3Plugin/wiki")
public class C3
extends Div
{
private C3Feature feature;
/**
* Constructs a new C3 Graph
*/
public C3()
{
addFeature(getFeature());
}
public final C3Feature getFeature()
{
if (feature == null)
{
feature = new C3Feature(this);
}
return feature;
}
@Override
public C3Options getOptions()
{
return getFeature().getOptions();
}
@Override
public int hashCode()
{
return super.hashCode();
}
@Override
public boolean equals(Object o)
{
return super.equals(o);
}
}