org.netbeans.modeler.widget.pin.IPinWidget 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.pin;
import org.netbeans.api.visual.anchor.Anchor;
import org.netbeans.api.visual.widget.ImageWidget;
import org.netbeans.api.visual.widget.Widget;
import org.netbeans.modeler.specification.model.document.IColorScheme;
import org.netbeans.modeler.widget.design.ITextDesign;
import org.netbeans.modeler.widget.node.IPNodeWidget;
import org.netbeans.modeler.widget.node.IWidget;
import org.netbeans.modeler.widget.node.IWidgetStateHandler;
import org.netbeans.modeler.widget.pin.info.PinWidgetInfo;
import org.netbeans.modeler.widget.property.IPropertyWidget;
public interface IPinWidget extends IWidget, IPropertyWidget {
public PinWidgetInfo getPinWidgetInfo();
boolean remove();
boolean remove(boolean notification);
public boolean isActiveStatus();
public void setActiveStatus(boolean activeStatus);
void setLabel(String label);
String getLabel();
IPNodeWidget getPNodeWidget();
void setPNodeWidget(IPNodeWidget nodeWidget);
boolean isLocked();
void setLocked(boolean locked);
public IColorScheme getColorScheme();
public void setColorScheme(IColorScheme colorScheme);
boolean isHighlightStatus();
void setHighlightStatus(boolean highlightStatus);
IWidgetStateHandler getWidgetStateHandler();
/* Abstract PinWidget */
/**
* Creates a horizontally oriented anchor similar to
* VMDNodeWidget.createAnchorPin
*
* @return the anchor
*/
Anchor createAnchor();
/**
* Returns a pin name.
*
* @return the pin name
*/
String getPinName();
/**
* Returns a pin name widget.
*
* @return the pin name widget
*/
Widget getPinNameWidget();
/**
* Sets a pin name.
*
* @param name the pin name
*/
void setPinName(String name);
int getAnchorGap();
void setAnchorGap(int gap);
void cleanReference();
ImageWidget getImageWidget();
ITextDesign getTextDesign();
void setTextDesign(ITextDesign textDesign);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy