public class PinFigure extends HexagonalCellFigure implements ISFRComponentVisitor
Modifier and Type | Class and Description |
---|---|
static class |
PinFigure.DisplayType
This enum provides the two possible views for a PinFigure: geometry and
data.
|
Constructor and Description |
---|
PinFigure()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addRingListener(PinAnalysisView listener)
Adds a PinAnalysisView as a listener for clicking on a Ring graphic.
|
org.eclipse.draw2d.IFigure |
getFigure()
Gets the IFigure used to display useful information.
|
void |
setAxialLevel(int axialLevel)
Set the axial level for the feature being shown.
|
void |
setColorScale(ColorScale colorScale)
Sets the
ColorScale currently used to determine the background
color of the PinFigure. |
void |
setComponent(SFRComponent component)
Sets the component displayed by this PinFigure.
|
void |
setComponent(SFRComponent component,
java.lang.Double maxRadius)
Sets the component displayed by this PinFigure.
|
void |
setDataProvider(IDataProvider dataProvider)
Sets the data provider for the data displayed by this PinFigure.
|
void |
setDisplayType(PinFigure.DisplayType displayType)
Set whether geometry or data is shown by this Figure.
|
void |
setFeature(java.lang.String feature)
Set the feature for the data being shown.
|
void |
setMaterialLevel(int materialLevel)
Sets the level for which the MaterialBlocks are displayed.
|
void |
setMaxRadius(double maxRadius)
Set the max radius for this Figure.
|
void |
setMaxValue(java.lang.Double customMaxValue)
Sets the custom maximum value for determining the background color of the
PinFigure.
|
void |
setMinValue(java.lang.Double customMinValue)
Sets the custom minimum value for determining the background color of the
PinFigure.
|
void |
setPoints(org.eclipse.draw2d.geometry.PointList points)
Sets the PointList used to determine the bounds of the hexagonal
CellFigure.
|
void |
setSelected(boolean selected)
Sets the color of the CellFigure based on its selection state.
|
void |
setState(Cell.State state)
Updates the CellFigure based on the provided Cell state.
|
void |
useCustomExtrema(boolean useCustomExtrema)
Sets whether or not this PinFigure uses custom min and max values to
determine the color of the data label.
|
void |
visit(Material sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a Material.
|
void |
visit(MaterialBlock sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a MaterialBlock.
|
void |
visit(PinAssembly sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a PinAssembly.
|
void |
visit(ReflectorAssembly sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a ReflectorAssembly.
|
void |
visit(Ring sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a Ring.
|
void |
visit(SFRAssembly sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a SFRAssembly.
|
void |
visit(SFReactor sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a SFReactor.
|
void |
visit(SFRPin pin)
This function needs to draw a radial view of a pin.
|
void |
visit(SFRRod sfrComp)
This operation directs a visitor to perform its actions on the
SFRComponent as a SFRRod.
|
addLabel
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
public void setComponent(SFRComponent component)
component
- The new component.public void setComponent(SFRComponent component, java.lang.Double maxRadius)
component
- The new component.maxRadius
- The max radius. This influences the size of the pin that is
drawn.public void setDataProvider(IDataProvider dataProvider)
dataProvider
- The data provider for the new component. Can be null for
tubes.public void setDisplayType(PinFigure.DisplayType displayType)
displayType
- The new display type.public void setFeature(java.lang.String feature)
feature
- The new feature.public void setAxialLevel(int axialLevel)
axialLevel
- The new axial level.public void setMaterialLevel(int materialLevel)
materialLevel
- The index for the MaterialBlock to display.public void setMaxRadius(double maxRadius)
maxRadius
- The new maximum radius.public void useCustomExtrema(boolean useCustomExtrema)
useCustomExtrema
- Whether or not to use custom extrema for the background color
of the PinFigure.public void setMinValue(java.lang.Double customMinValue)
customMinValue
- The custom minimum value for computing background color.public void setMaxValue(java.lang.Double customMaxValue)
customMaxValue
- The custom maximum value for computing background color.public void setColorScale(ColorScale colorScale)
ColorScale
currently used to determine the background
color of the PinFigure. For handy preset scales, see
ColorScalePalette
.colorScale
- The new ColorScale to use for the PinFigure's background.public org.eclipse.draw2d.IFigure getFigure()
getFigure
in class HexagonalCellFigure
public void setState(Cell.State state)
setState
in class CellFigure
state
- The State of the model Cell (unselected, selected, disabled,
or invalid).public void setSelected(boolean selected)
setSelected
in class CellFigure
selected
- Whether or not the CellFigure is selected.public void setPoints(org.eclipse.draw2d.geometry.PointList points)
setPoints
in class HexagonalCellFigure
points
- A PointList that should contain exactly 6 points.public void addRingListener(PinAnalysisView listener)
listener
- The PinAnalysisView that was to listen for Ring click events.public void visit(SFRPin pin)
visit
in interface ISFRComponentVisitor
pin
- The SFRPin accepting the visitor.public void visit(SFReactor sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a SFReactor.
visit
in interface ISFRComponentVisitor
sfrComp
- The SFReactor accepting the visitor.public void visit(SFRAssembly sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a SFRAssembly.
visit
in interface ISFRComponentVisitor
sfrComp
- The SFRAssembly being visited.public void visit(PinAssembly sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a PinAssembly.
visit
in interface ISFRComponentVisitor
sfrComp
- The PinAssembly accepting the visitor.public void visit(ReflectorAssembly sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a ReflectorAssembly.
visit
in interface ISFRComponentVisitor
sfrComp
- The ReflectorAssembly accepting the visitor.public void visit(SFRRod sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a SFRRod.
visit
in interface ISFRComponentVisitor
sfrComp
- The SFRRod accepting the visitor.public void visit(MaterialBlock sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a MaterialBlock.
visit
in interface ISFRComponentVisitor
sfrComp
- The MaterialBlock accepting the visitor.public void visit(Material sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a Material.
visit
in interface ISFRComponentVisitor
sfrComp
- The Material accepting the visitor.public void visit(Ring sfrComp)
ISFRComponentVisitor
This operation directs a visitor to perform its actions on the SFRComponent as a Ring.
visit
in interface ISFRComponentVisitor
sfrComp
- The Ring accepting the visitor.