Class TankFigure
- java.lang.Object
-
- org.eclipse.draw2d.Figure
-
- org.eclipse.nebula.visualization.widgets.figures.AbstractScaledWidgetFigure
-
- org.eclipse.nebula.visualization.widgets.figures.AbstractMarkedWidgetFigure
-
- org.eclipse.nebula.visualization.widgets.figures.AbstractLinearMarkedFigure
-
- org.eclipse.nebula.visualization.widgets.figures.TankFigure
-
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
,Introspectable
public class TankFigure extends AbstractLinearMarkedFigure
A tank figure
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
TankFigure.Tank
(package private) static class
TankFigure.TankLayout
-
Field Summary
Fields Modifier and Type Field Description private static org.eclipse.swt.graphics.Color
BLUE_COLOR
private boolean
effect3D
private org.eclipse.swt.graphics.Color
fillBackgroundColor
private org.eclipse.swt.graphics.Color
fillColor
private static org.eclipse.swt.graphics.Color
GRAY_COLOR
private TankFigure.Tank
tank
private static org.eclipse.swt.graphics.Color
WHITE_COLOR
-
Fields inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractLinearMarkedFigure
marker
-
Fields inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractMarkedWidgetFigure
hiColor, hihiColor, hihiLevel, hiLevel, loColor, loLevel, loloColor, loloLevel, showHi, showHihi, showLo, showLolo, showMarkers
-
Fields inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractScaledWidgetFigure
logScale, majorTickMarkStepHint, maximum, minimum, scale, showMinorTicks, showScale, transparent, value, valueLabelFormat
-
-
Constructor Summary
Constructors Constructor Description TankFigure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.Color
getFillBackgroundColor()
org.eclipse.swt.graphics.Color
getFillColor()
boolean
isEffect3D()
boolean
isOpaque()
void
setEffect3D(boolean effect3D)
void
setFillBackgroundColor(org.eclipse.swt.graphics.Color fillBackgroundColor)
void
setFillColor(org.eclipse.swt.graphics.Color fillColor)
void
setForegroundColor(org.eclipse.swt.graphics.Color fg)
-
Methods inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractLinearMarkedFigure
setHiColor, setHihiColor, setHihiLevel, setHiLevel, setLoColor, setLogScale, setLoLevel, setLoloColor, setLoloLevel, setRange, setShowHi, setShowHihi, setShowLo, setShowLolo, setShowMarkers
-
Methods inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractMarkedWidgetFigure
getHiColor, getHihiColor, getHihiLevel, getHiLevel, getLoColor, getLoLevel, getLoloColor, getLoloLevel, isShowHi, isShowHihi, isShowLo, isShowLolo, isShowMarkers
-
Methods inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractScaledWidgetFigure
getBeanInfo, getCoercedValue, getCoercedValue, getMajorTickMarkStepHint, getMaximum, getMinimum, getRange, getScale, getValue, getValueLabelFormat, getValueText, isLogScale, isShowMinorTicks, isShowScale, isTransparent, paintFigure, setMajorTickMarkStepHint, setRange, setScale, setShowMinorTicks, setShowScale, setTransparent, setValue, setValueLabelFormat
-
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, 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, isMouseEventTarget, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
-
-
-
Field Detail
-
WHITE_COLOR
private static final org.eclipse.swt.graphics.Color WHITE_COLOR
-
GRAY_COLOR
private static final org.eclipse.swt.graphics.Color GRAY_COLOR
-
BLUE_COLOR
private static final org.eclipse.swt.graphics.Color BLUE_COLOR
-
effect3D
private boolean effect3D
-
tank
private TankFigure.Tank tank
-
fillColor
private org.eclipse.swt.graphics.Color fillColor
-
fillBackgroundColor
private org.eclipse.swt.graphics.Color fillBackgroundColor
-
-
Method Detail
-
getFillBackgroundColor
public org.eclipse.swt.graphics.Color getFillBackgroundColor()
- Returns:
- the fillBackgroundColor
-
getFillColor
public org.eclipse.swt.graphics.Color getFillColor()
- Returns:
- the fillColor
-
isEffect3D
public boolean isEffect3D()
- Returns:
- the effect3D
-
isOpaque
public boolean isOpaque()
- Specified by:
isOpaque
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
isOpaque
in classAbstractScaledWidgetFigure
-
setEffect3D
public void setEffect3D(boolean effect3D)
- Parameters:
effect3D
- the effect3D to set
-
setFillBackgroundColor
public void setFillBackgroundColor(org.eclipse.swt.graphics.Color fillBackgroundColor)
- Parameters:
fillBackgroundColor
- the fillBackgroundColor to set
-
setFillColor
public void setFillColor(org.eclipse.swt.graphics.Color fillColor)
- Parameters:
fillColor
- the fillColor to set
-
setForegroundColor
public void setForegroundColor(org.eclipse.swt.graphics.Color fg)
- Specified by:
setForegroundColor
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setForegroundColor
in classorg.eclipse.draw2d.Figure
-
-