All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jwebmp.plugins.jqxwidgets.draw.JQXDraw Maven / Gradle / Ivy

/*
 * Copyright (C) 2017 Marc Magon
 *
 * 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.jqxwidgets.draw;

import com.jwebmp.core.base.html.Div;

/**
 * jqxDraw is a small jQuery-based plugin which allows you to draw shapes and texts using VML, SVG and HTML5.
 * 

* * @author Marc Magon * @version 1.0 * @since 13 Dec 2015 */ public class JQXDraw extends Div { private JQXDrawFeature feature; public JQXDraw() { addFeature(getFeature()); } public JQXDrawFeature getFeature() { if (feature == null) { feature = new JQXDrawFeature(this); } return feature; } @Override public JQXDrawOptions getOptions() { return getFeature().getOptions(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof JQXDraw)) { return false; } if (!super.equals(o)) { return false; } JQXDraw jqxDraw = (JQXDraw) o; return getFeature().equals(jqxDraw.getFeature()); } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + getFeature().hashCode(); return result; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy