public interface P2DComponentInterface extends FwkInfoBusMemberInterface, P2DContainerInterface, FwkAppearanceInterface, P2DComponentModelInterface, P2DComponentViewInterface, P2DComponentControlInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTROL_KEY
The constant for the control class id property key.
|
static java.lang.String |
MODEL_KEY
The constant for the model class id property key.
|
static java.lang.String |
VIEW_KEY
The constant for the view class id property key.
|
INFOBUS_SOURCE
AUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME
DASH_STROKE, DOT_DASH_STROKE, DOT_DOT_DASH_STROKE, DOT_STROKE, LINE_STROKE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
askForName(java.awt.Container parent,
java.lang.String title,
java.lang.String defaultValue)
Ask for component name.
|
P2DBoundingBoxInterface |
calculateBoundingBoxRelativeTo(P2DBoundingBoxInterface bb,
java.awt.geom.Point2D p)
Calculate a new bounding box relative to the given point.
|
P2DControlInterface |
getControl()
Returns the control of the component.
|
java.lang.String |
getControlClassId()
Returns the control class ID string.
|
FwkDialogPaneInterface |
getDialogPane(java.lang.String ident)
Retrieves a spezial dialog pane for the given identifier.
|
java.util.HashMap |
getDialogPanes()
Retrieves the property dialog panes in a hashtable.
|
FwkDialogPaneValueInterface |
getDialogPaneValue(java.lang.String ident)
Retrieves a spezial dialog pane value for the given identifier.
|
java.util.HashMap |
getDialogPaneValues()
Retrieves the property dialog pane values.
|
boolean |
getInternalMouseListenerActive()
Get the activity flag for the internal mouse listener.
|
P2DModelInterface |
getModel()
Returns the model of the component.
|
java.lang.String |
getModelClassId()
Returns the model class ID string.
|
int |
getRegisterCounter()
Get the register counter.
|
P2DViewInterface |
getView()
Returns the view of the component.
|
java.lang.String |
getViewClassId()
Returns the view class ID string.
|
void |
initialize()
The initialization routine of the behaviour node.
|
boolean |
isInternalMouseListenerActive()
Get a boolean whether the internal mouse listener is active.
|
boolean |
isMVCValid()
Return a boolean whether the Model-View-Control is valid.
|
P2DControlInterface |
loadControl()
Load the control object.
|
P2DModelInterface |
loadModel()
Load the model object.
|
P2DViewInterface |
loadView()
Load the view object.
|
void |
paint(java.awt.Graphics2D g)
Paint the component.
|
void |
paint(P2DContainerInterface container,
java.awt.Graphics2D g)
Paint the component.
|
void |
processFocusEvent(java.awt.event.FocusEvent e)
Process the focus event.
|
void |
processMouseEvent(java.awt.event.MouseEvent e)
Process the mouse event.
|
void |
register()
Register the component.
|
void |
setControl(P2DControlInterface newControl)
Set the control of the component.
|
void |
setControlClassId(java.lang.String controlId)
Sets the control class ID string.
|
void |
setDialogPaneValues(java.util.HashMap values)
Sets the property dialog pane values for the component.
|
void |
setInternalMouseListenerActive(boolean flag)
Set the activity flag for the internal mouse listener.
|
void |
setModel(P2DModelInterface newModel)
Set the model of the component.
|
void |
setModelClassId(java.lang.String modelId)
Sets the model class ID string.
|
void |
setView(P2DViewInterface newView)
Set the view of the component.
|
void |
setViewClassId(java.lang.String viewId)
Sets the view class ID string.
|
void |
unregister()
Unregister the component.
|
void |
unregister(boolean flag)
Unregister the component.
|
void |
update()
Update the component.
|
void |
updateControl()
Update the control component.
|
void |
updateModel()
Update the model component.
|
void |
updateView()
Update the view component.
|
addContainerListener, addFocusListener, addListener, addMouseListener, addMouseMotionListener, addOrderListener, addP2D, addP2D, addP2D, addP2D, addRepaintListener, fireOrderEvent, getActive, getActiveComponent, getAllArmedComponents, getAllArmedComponents, getArmedComponent, getComponentCommands, getContainerListenerArray, getFocusListenerArray, getListenerArray, getMouseListenerArray, getMouseMotionListenerArray, getOrderListenerArray, getP2D, getP2D, getP2D, getP2DComponentArray, getP2DComponents, getParentContainer, getRepaintListenerArray, getSelectable, getShortName, getTreeLock, openPopupMenu, removeAllP2D, removeContainerListener, removeFocusListener, removeListener, removeMouseListener, removeMouseMotionListener, removeOrderListener, removeP2D, removeP2D, removeRepaintListener, repaint, restoreLastMouseEvent, restoreLocalMousePoint, revalidate, saveLastMouseEvent, saveLocalMousePoint, setActive, setActiveComponent, setParentContainer, setSelectable, toBack, toBack, toBack, toFront, toFront, toFront
getInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberName
fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManager
getCommands, getPersistentObjectNames
destroyController
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener
getAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleName
getTransferData, getTransferDataFlavors, isDataFlavorSupported
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
getVersion, release
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
getCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXML
configure, getBackgroundColor, getClip, getColor, getDashArray, getDashPhase, getEndCap, getFill, getFont, getLineJoin, getLineWidth, getMiterLimit, getStroke, getTransform, getTranslation, getTransparency, getVisible, isVisible, scaleStroke, scaleStroke, setBackgroundColor, setClip, setClip, setColor, setDashArray, setDashPhase, setEndCap, setFill, setFont, setLineJoin, setLineWidth, setMiterLimit, setScale, setStroke, setTransform, setTranslation, setTransparency, setVisible
addDialogPane, boundsAcceptable, containsAllChildren, containsAllChildren, frameHasHandles, getActive, getActiveHandle, getAppearance, getBackground, getBackgroundColor, getBackgroundTransparency, getBackgroundVisible, getBoundingBox, getChild, getChild, getContainerMap, getDecorated, getFrame, getFrameColor, getFrameHandlesVisible, getFrameLinesVisible, getFrameTransparency, getFrameVisible, getHeight, getRatioFix, getTransform, getWidth, hasActiveChild, isInside, isInside, registerContainer, removeDialogPane, resetActiveHandle, revalidate, scaleStroke, scaleStroke, setActive, setActiveHandle, setAppearance, setBackgroundColor, setBackgroundTransparency, setBackgroundVisible, setBoundingBox, setContainerMap, setDecorated, setFrameColor, setFrameHandlesVisible, setFrameLinesVisible, setFrameTransparency, setFrameVisible, setRatioFix, setTransform, transformPoint, transformPoint, unregisterContainer
focusGained, focusLost, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased
static final java.lang.String MODEL_KEY
static final java.lang.String VIEW_KEY
static final java.lang.String CONTROL_KEY
void register()
int getRegisterCounter()
void unregister()
unregister
in interface P2DContainerInterface
A
- P2D_COMPONENT_IS_NOT_REGISTERED if the counter has already reached 0.void unregister(boolean flag)
flag
- if true the component will unregister all its children.A
- P2D_COMPONENT_IS_NOT_REGISTERED if the counter has already reached 0.void updateView()
BrickException
- with number P2D_CANNOT_UPDATE_VIEWvoid setView(P2DViewInterface newView)
newView
- The new view instance for the component.P2DViewInterface getView()
java.lang.String getViewClassId()
void setViewClassId(java.lang.String viewId)
modelId
- The new model id string.P2DViewInterface loadView()
BrickException
- with number P2D_CANNOT_LOAD_VIEWvoid updateModel()
BrickException
- with number P2D_CANNOT_UPDATE_MODELvoid setModel(P2DModelInterface newModel)
newModel
- The new model instance for the component.P2DModelInterface getModel()
java.lang.String getModelClassId()
void setModelClassId(java.lang.String modelId)
modelId
- The new model id string.P2DModelInterface loadModel()
BrickException
- with number P2D_CANNOT_LOAD_MODELA
- BrickException os thrown if it isn't possible to load the model.void updateControl()
BrickException
- with number P2D_CANNOT_UPDATE_CONTROLvoid setControl(P2DControlInterface newControl)
newControl
- The new control instance for the component.P2DControlInterface getControl()
java.lang.String getControlClassId()
void setControlClassId(java.lang.String controlId)
modelId
- The new control id string.P2DControlInterface loadControl()
BrickException
- with number P2D_CANNOT_LOAD_CONTROLvoid update()
boolean isInternalMouseListenerActive()
void setInternalMouseListenerActive(boolean flag)
flag
- true if the internal mouse listener should be active.boolean getInternalMouseListenerActive()
void initialize()
javax.media.Behavior
void paint(java.awt.Graphics2D g)
g
- The graphics context.void paint(P2DContainerInterface container, java.awt.Graphics2D g)
container
- The toplevel container.g
- The graphics context.P2DBoundingBoxInterface calculateBoundingBoxRelativeTo(P2DBoundingBoxInterface bb, java.awt.geom.Point2D p)
component
- The componentbb
- The boundingbox.p
- The point for that the new bounding box should be calculated.void processMouseEvent(java.awt.event.MouseEvent e)
processMouseEvent
in interface P2DContainerInterface
e
- The mouse event.Component
void processFocusEvent(java.awt.event.FocusEvent e)
processFocusEvent
in interface P2DContainerInterface
e
- The focus event.Component
java.util.HashMap getDialogPanes()
getDialogPanes
in interface P2DComponentModelInterface
FwkDialogPaneInterface getDialogPane(java.lang.String ident)
getDialogPane
in interface P2DComponentModelInterface
ident
- The identifier string of the requested pane.java.util.HashMap getDialogPaneValues()
getDialogPaneValues
in interface P2DComponentModelInterface
void setDialogPaneValues(java.util.HashMap values)
setDialogPaneValues
in interface P2DComponentModelInterface
values
- The hashtable with ident/value pairs.FwkDialogPaneValueInterface getDialogPaneValue(java.lang.String ident)
getDialogPaneValue
in interface P2DComponentModelInterface
ident
- The identifier string of the requested pane.java.lang.String askForName(java.awt.Container parent, java.lang.String title, java.lang.String defaultValue)
parent
- This parameter is used as parent for the dialog box.boolean isMVCValid()
true
- if the structure is valid.