public class SLAnnotation extends SLComponent
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected AnnotationRenderer |
annotationRenderer |
protected java.util.ArrayList |
children |
protected DblMatrix |
directionReferencePoint |
protected java.awt.Color |
fontColor |
protected java.lang.String |
fontFamily |
protected int |
fontSize |
protected int |
fontStyle |
protected boolean |
isSilent |
protected SLLocator |
locator |
static int |
ORIENT_LEFT |
static int |
ORIENT_RIGHT |
protected SLComponent |
parent |
protected java.lang.String |
text |
protected java.awt.Font |
textFont |
protected int |
textOrientation |
protected int |
truncatePoint |
protected DblMatrix |
xCoord |
protected DblMatrix |
yCoord |
protected DblMatrix |
zCoord |
name, selected
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
SLAnnotation(SLLocator locator,
SLComponent parent) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(SLComponentEvent ec) |
void |
addChild(SLComponent c) |
void |
applyPreferences(java.lang.String repos,
SLAnnotationPreferences p) |
AnnotationRenderer |
getAnnotationRenderer() |
java.util.List |
getChildren() |
DblMatrix |
getDirectionReferencePoint() |
java.awt.Font |
getFont() |
java.awt.Color |
getFontColor() |
java.lang.String |
getFontFamily() |
int |
getFontSize() |
int |
getFontStyle() |
java.awt.Graphics |
getGraphics() |
SLComponent |
getParent() |
boolean |
getSilent() |
java.lang.String |
getText() |
int |
getTextOrientation() |
int |
getTruncatePoint() |
DblMatrix |
getXBounds()
This default implementation of getXBounds returns a vector of zeros,
essentially giving the object a reported size of zero.
|
DblMatrix |
getXData() |
DblMatrix |
getYBounds()
This default implementation of getYBounds returns a vector of zeros,
essentially giving the object a reported size of zero.
|
DblMatrix |
getYData() |
DblMatrix |
getZBounds()
This default implementation of getZBounds returns a vector of zeros,
essentially giving the object a reported size of zero.
|
boolean |
hasChild(SLComponent b) |
void |
paintDirectPixels(java.awt.Graphics g) |
void |
paintSL() |
void |
paintSL(java.awt.Graphics g) |
void |
setAnnotationRenderer(AnnotationRenderer s) |
void |
setDirectionReferencePoint(DblMatrix c) |
void |
setFont(java.awt.Font b) |
void |
setFontColor(java.awt.Color b) |
void |
setFontFamily(java.lang.String f) |
void |
setFontSize(int x) |
void |
setFontStyle(int x) |
void |
setLocator(SLLocator loc) |
void |
setParent(SLComponent par)
Sets the component to which this child component should be added.
|
void |
setSilent(boolean x) |
void |
setText(java.lang.String text) |
void |
setTextOrientation(int o) |
void |
setTruncatePoint(int x) |
void |
setXData(DblMatrix x) |
void |
setYData(DblMatrix y) |
void |
updatePreferences(java.lang.String repos,
SLAnnotationPreferences p)
Deprecated.
|
getName, isSelected, paint, seenIntersecting, setName, setSelected, superComponentPaint
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected java.lang.String text
protected DblMatrix xCoord
protected DblMatrix yCoord
protected DblMatrix zCoord
protected SLComponent parent
protected java.awt.Font textFont
protected int textOrientation
protected java.util.ArrayList children
protected java.awt.Color fontColor
protected AnnotationRenderer annotationRenderer
protected DblMatrix directionReferencePoint
protected int truncatePoint
protected java.lang.String fontFamily
protected int fontStyle
protected int fontSize
protected SLLocator locator
public static final int ORIENT_LEFT
public static final int ORIENT_RIGHT
protected boolean isSilent
public SLAnnotation(SLLocator locator, SLComponent parent)
public boolean hasChild(SLComponent b)
hasChild
in class SLComponent
public java.util.List getChildren()
getChildren
in class SLComponent
public void setParent(SLComponent par)
public SLComponent getParent()
getParent
in class java.awt.Component
public void setLocator(SLLocator loc)
public java.awt.Graphics getGraphics()
getGraphics
in class SLComponent
public void addChild(SLComponent c)
addChild
in class SLComponent
public void actionPerformed(SLComponentEvent ec)
actionPerformed
in class SLComponent
public void setFont(java.awt.Font b)
setFont
in class javax.swing.JComponent
public java.awt.Font getFont()
getFont
in interface java.awt.MenuContainer
getFont
in class java.awt.Component
public java.lang.String getFontFamily()
public void setFontFamily(java.lang.String f)
public int getFontStyle()
public void setFontStyle(int x)
public AnnotationRenderer getAnnotationRenderer()
public void setAnnotationRenderer(AnnotationRenderer s)
public int getFontSize()
public void setFontSize(int x)
public void setFontColor(java.awt.Color b)
public java.awt.Color getFontColor()
public void setSilent(boolean x)
public boolean getSilent()
public void setTextOrientation(int o)
public void setDirectionReferencePoint(DblMatrix c)
public DblMatrix getDirectionReferencePoint()
public int getTextOrientation()
public void paintSL()
public void paintDirectPixels(java.awt.Graphics g)
public void paintSL(java.awt.Graphics g)
paintSL
in class SLComponent
public DblMatrix getXBounds()
SLComponent
getXBounds
in class SLComponent
public DblMatrix getYBounds()
SLComponent
getYBounds
in class SLComponent
public DblMatrix getZBounds()
SLComponent
getZBounds
in class SLComponent
@Deprecated public void updatePreferences(java.lang.String repos, SLAnnotationPreferences p)
applyPreferences(String repos,SLAnnotationPreferences p)
public void applyPreferences(java.lang.String repos, SLAnnotationPreferences p)
public void setXData(DblMatrix x)
public void setYData(DblMatrix y)
public DblMatrix getXData()
public DblMatrix getYData()
public void setText(java.lang.String text)
public java.lang.String getText()
public int getTruncatePoint()
public void setTruncatePoint(int x)
Copyright © 2011, 2013. Daniel P. Dougherty