public class JComponentShape extends RMParentShape
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
BINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
Constructor and Description |
---|
JComponentShape() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsMouse()
Overrides shape method to say we want events (to pass on to component).
|
RMParentShape |
clone()
Override to clear component.
|
protected void |
configureComponent(JBuilder aBldr,
javax.swing.JComponent aComp)
Configures the component.
|
protected javax.swing.JComponent |
createComponent()
Creates the component.
|
void |
createComponentDeep(JBuilder aBldr,
javax.swing.JComponent aComp)
Returns the component deep.
|
protected void |
dispatchEventToComponent(RMShapeMouseEvent anEvent,
int anId)
Sends given event to shape component.
|
protected void |
firePropertyChange(java.beans.PropertyChangeEvent anEvent,
java.lang.String aName,
java.lang.Object oldVal,
java.lang.Object newVal,
int anIndex)
Override to clear component.
|
protected void |
fromXMLShape(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
java.lang.String |
getAction()
Returns the action for this shape.
|
java.lang.Boolean |
getAutoscrolls()
Returns whether shape autoscrolls.
|
RMColor |
getBackground()
Returns background color.
|
RMBorder |
getBorder()
Returns the border.
|
java.lang.Object |
getClientProperty(java.lang.String aName)
Returns a named client property.
|
javax.swing.JComponent |
getComponent()
Returns the component.
|
java.lang.Class<? extends javax.swing.JComponent> |
getComponentClass()
Returns the component class for this component shape.
|
RMFont |
getFont()
Returns the font.
|
RMColor |
getForeground()
Returns foreground color.
|
java.lang.String |
getItemDisplayKey()
Returns the ItemDisplayKey.
|
java.lang.String |
getRealClassName()
Returns the substitution class name.
|
java.lang.Boolean |
getSendActionOnFocusLost()
Returns whether shape SendActionOnFocusLost.
|
java.lang.String |
getToolTipText()
Returns the tool tip text.
|
boolean |
isEnabled()
Whether shape is enabled.
|
boolean |
isFontSet()
Returns wether font has been set.
|
java.lang.Boolean |
isOpaque()
Returns whether shape is opaque.
|
void |
mouseClicked(RMShapeMouseEvent anEvent)
Handles mouse clicked events.
|
void |
mouseDragged(RMShapeMouseEvent anEvent)
Overrides shape method to pass events on to component.
|
void |
mouseEntered(RMShapeMouseEvent anEvent)
Overrides shape method to pass events on to component.
|
void |
mouseExited(RMShapeMouseEvent anEvent)
Overrides shape method to pass events on to component.
|
void |
mouseMoved(RMShapeMouseEvent anEvent)
Overrides shape method to pass events on to component.
|
void |
mousePressed(RMShapeMouseEvent anEvent)
Overrides shape method to pass events on to component.
|
void |
mouseReleased(RMShapeMouseEvent anEvent)
Overrides shape method to pass events on to component.
|
void |
paintShape(RMShapePainter aPntr)
Overrides paintShape to paint JComponentShapes with image from component.
|
java.lang.Object |
putClientProperty(java.lang.String aName,
java.lang.Object aValue)
Puts a named client property.
|
void |
setAction(java.lang.String anAction)
Sets the action for this shape.
|
void |
setAutoscrolls(java.lang.Boolean aValue)
Sets whether shape autoscrolls.
|
void |
setBackground(RMColor aColor)
Sets the background color.
|
void |
setBorder(RMBorder aBorder)
Sets the border.
|
void |
setEnabled(boolean aValue)
Sets whether shape is enabled.
|
void |
setFont(RMFont aFont)
Sets the font.
|
void |
setForeground(RMColor aColor)
Sets the foreground color.
|
void |
setItemDisplayKey(java.lang.String aKey)
Sets the ItemDisplayKey.
|
void |
setOpaque(java.lang.Boolean aValue)
Sets whether shape is opaque.
|
void |
setRealClassName(java.lang.String aString)
Sets the substitution class string.
|
void |
setSendActionOnFocusLost(java.lang.Boolean aValue)
Sets whether shape Sends action on FocusLost.
|
void |
setToolTipText(java.lang.String aString)
Sets the tool tip text.
|
protected void |
toXMLChildren(RXArchiver anArchiver,
RXElement anElement)
Override to archive RealClassName last.
|
protected RXElement |
toXMLShape(RXArchiver anArchiver)
XML archival.
|
addChild, addChild, addChild, addChild, addLayoutChild, bringShapesToFront, cloneDeep, computePrefHeight, computePrefWidth, divideShapeFromTop, fromXML, fromXMLChildren, getBoundsOfChildren, getChild, getChildArray, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWithClass, getChildrenWithClass, getChildWithClass, getChildWithName, getLayout, getNeedsLayout, getSourceURL, indexOfChild, isHittable, isShowing, isSourceURLSet, layout, layoutChildren, relayout, removeChild, removeChild, removeChildren, removeLayoutChild, rpgAll, rpgChildren, sendShapesToBack, setHeight, setLayout, setNeedsLayout, setSourceURL, setWidth, toXML
acceptsChildren, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChildAnimator, getChildAnimator, getChildClipShape, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, y
addPropertyChangeListener, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
public java.lang.Boolean getAutoscrolls()
public void setAutoscrolls(java.lang.Boolean aValue)
public RMColor getForeground()
public void setForeground(RMColor aColor)
public RMColor getBackground()
public void setBackground(RMColor aColor)
public boolean isFontSet()
public RMBorder getBorder()
public void setBorder(RMBorder aBorder)
public java.lang.Boolean isOpaque()
public void setOpaque(java.lang.Boolean aValue)
public java.lang.String getToolTipText()
public void setToolTipText(java.lang.String aString)
public boolean isEnabled()
public void setEnabled(boolean aValue)
public java.lang.String getAction()
public void setAction(java.lang.String anAction)
public java.lang.Boolean getSendActionOnFocusLost()
public void setSendActionOnFocusLost(java.lang.Boolean aValue)
public java.lang.String getItemDisplayKey()
public void setItemDisplayKey(java.lang.String aKey)
public java.lang.Object getClientProperty(java.lang.String aName)
public java.lang.Object putClientProperty(java.lang.String aName, java.lang.Object aValue)
public java.lang.String getRealClassName()
public void setRealClassName(java.lang.String aString)
protected void firePropertyChange(java.beans.PropertyChangeEvent anEvent, java.lang.String aName, java.lang.Object oldVal, java.lang.Object newVal, int anIndex)
firePropertyChange
in class RMObject
public boolean acceptsMouse()
acceptsMouse
in class RMShape
public void mousePressed(RMShapeMouseEvent anEvent)
mousePressed
in class RMShape
public void mouseDragged(RMShapeMouseEvent anEvent)
mouseDragged
in class RMShape
public void mouseReleased(RMShapeMouseEvent anEvent)
mouseReleased
in class RMShape
public void mouseClicked(RMShapeMouseEvent anEvent)
mouseClicked
in class RMShape
public void mouseEntered(RMShapeMouseEvent anEvent)
mouseEntered
in class RMShape
public void mouseMoved(RMShapeMouseEvent anEvent)
mouseMoved
in class RMShape
public void mouseExited(RMShapeMouseEvent anEvent)
mouseExited
in class RMShape
protected void dispatchEventToComponent(RMShapeMouseEvent anEvent, int anId)
public javax.swing.JComponent getComponent()
protected javax.swing.JComponent createComponent()
public java.lang.Class<? extends javax.swing.JComponent> getComponentClass()
protected void configureComponent(JBuilder aBldr, javax.swing.JComponent aComp)
public void createComponentDeep(JBuilder aBldr, javax.swing.JComponent aComp)
public void paintShape(RMShapePainter aPntr)
paintShape
in class RMShape
public RMParentShape clone()
clone
in class RMParentShape
protected RXElement toXMLShape(RXArchiver anArchiver)
toXMLShape
in class RMParentShape
protected void toXMLChildren(RXArchiver anArchiver, RXElement anElement)
toXMLChildren
in class RMParentShape
protected void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
fromXMLShape
in class RMParentShape