renderable
Class SocketLabel

java.lang.Object
  extended by renderable.BlockLabel
      extended by renderable.SocketLabel
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

 class SocketLabel
extends BlockLabel


Nested Class Summary
 
Nested classes/interfaces inherited from class renderable.BlockLabel
BlockLabel.Type
 
Field Summary
 
Fields inherited from class renderable.BlockLabel
blockFontLarge_Bold, blockFontLarge_Plain, blockFontMedium_Bold, blockFontMedium_Plain, blockFontSmall_Bold, blockFontSmall_Plain
 
Constructor Summary
SocketLabel(BlockConnector socket, java.lang.String initLabelText, BlockLabel.Type labelType, boolean isEditable, long blockID)
           
 
Method Summary
(package private) static boolean ignoreSocket(BlockConnector socket)
          Returns true if the socket label should not be added to this.
protected  void textChanged(java.lang.String text)
           
(package private)  void update(java.awt.geom.Point2D socketPoint)
           
 
Methods inherited from class renderable.BlockLabel
descale, descale, dimensionsChanged, editingText, genusChanged, getAbstractHeight, getAbstractWidth, getBlockID, getJComponent, getPixelHeight, getPixelLocation, getPixelWidth, getText, highlightText, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, rescale, rescale, setEditable, setEditingState, setPixelLocation, setText, setText, setText, setToolTipText, setZoomLevel, showMenuIcon, textValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketLabel

SocketLabel(BlockConnector socket,
            java.lang.String initLabelText,
            BlockLabel.Type labelType,
            boolean isEditable,
            long blockID)
Method Detail

ignoreSocket

static boolean ignoreSocket(BlockConnector socket)
Returns true if the socket label should not be added to this. Conditions for ignoring socket labels are: 1. the specified socket is a bottom socket 2. the specified socket has an empty label

Parameters:
socket - the BlockConnector to test
Returns:
true if the specified socket should have a corresponding Blocklabel instance added to this.

update

void update(java.awt.geom.Point2D socketPoint)

textChanged

protected void textChanged(java.lang.String text)
Overrides:
textChanged in class BlockLabel