org.netbeans.modeler.widget.node.INodeWidget Maven / Gradle / Ivy
Go to download
Jeddict is an open source Jakarta EE application development platform that accelerates developers productivity and simplifies development tasks of creating complex entity relationship models.
/**
* Copyright 2013-2022 Gaurav Gupta
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.netbeans.modeler.widget.node;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import org.netbeans.api.visual.anchor.Anchor;
import org.netbeans.api.visual.border.Border;
import org.netbeans.api.visual.border.BorderFactory;
import org.netbeans.modeler.border.ResizeBorder;
import org.netbeans.modeler.shape.ShapeDesign;
import org.netbeans.modeler.specification.model.document.property.ElementPropertySet;
import org.netbeans.modeler.widget.node.info.NodeWidgetInfo;
import org.netbeans.modeler.widget.design.ITextDesign;
import org.netbeans.modeler.widget.property.IPropertyWidget;
//import org.netbeans.modules.visual.border.ResizeBorder;
public interface INodeWidget extends IWidget, IPropertyWidget {
public static final Border DEFAULT_BORDER = BorderFactory.createEmptyBorder(0);
public void setStatus(NodeWidgetStatus status);
ElementPropertySet createVisualInnerPropertiesSet(ElementPropertySet elementPropertySet) throws NoSuchMethodException, NoSuchFieldException;
ElementPropertySet createVisualOuterPropertiesSet(ElementPropertySet elementPropertySet) throws NoSuchMethodException, NoSuchFieldException;
public NodeWidgetInfo getNodeWidgetInfo();
public Rectangle getWidgetInnerArea();
public Dimension getWidgetInnerDimension();
public ResizeBorder getWidgetBorder();
public void setWidgetBorder(ResizeBorder widgetBorder);
void showResizeBorder();
void hideResizeBorder();
public boolean isAnchorEnable();
public void setAnchorState(boolean state);
//
// AbstractNode getNode();
//
// void setNode(AbstractNode node);
Rectangle getSceneViewBound();
void setLabel(String label);
String getLabel();
void hideLabel();
void showLabel();
// LabelManager getLabelManager();
boolean remove();
boolean remove(boolean notification);
public boolean isActiveStatus();
public void setActiveStatus(boolean activeStatus);
boolean isLocked();
void setLocked(boolean locked);
Point getSceneViewLocation();
void cleanReference();
IWidgetStateHandler getWidgetStateHandler();
ITextDesign getTextDesign();
void setTextDesign(ITextDesign textDesign);
Anchor getAnchor();
ResizeBorder getNodeBorder();
void updateNodeWidgetDesign(ShapeDesign shapeDesign);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy