Class MeterFeedbackFactory
java.lang.Object
org.csstudio.opibuilder.widgets.feedback.AbstractFixRatioSizeFeedbackFactory
org.csstudio.opibuilder.widgets.feedback.MeterFeedbackFactory
- All Implemented Interfaces:
IGraphicalFeedbackFactory
Feedback Factory for LED.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getHeightFromWidth
(int width, AbstractWidgetModel widgetModel) Calculate height from width.int
int
getWidthFromHeight
(int height, AbstractWidgetModel widgetModel) Calculate width from height.Methods inherited from class org.csstudio.opibuilder.widgets.feedback.AbstractFixRatioSizeFeedbackFactory
createChangeBoundsCommand, createCustomHandles, createDragSourceFeedbackFigure, createInitialBoundsCommand, createSizeOnDropFeedback, getCreationTool, getSizeOnDropFeedback, getSizeOnDropFeedback, isSquareSizeRequired, showChangeBoundsFeedback, showSizeOnDropFeedback
-
Constructor Details
-
MeterFeedbackFactory
public MeterFeedbackFactory()
-
-
Method Details
-
getMinimumWidth
public int getMinimumWidth()- Specified by:
getMinimumWidth
in classAbstractFixRatioSizeFeedbackFactory
- Returns:
- the minimum size
-
getHeightFromWidth
Description copied from class:AbstractFixRatioSizeFeedbackFactory
Calculate height from width. Return same value as width by default.- Overrides:
getHeightFromWidth
in classAbstractFixRatioSizeFeedbackFactory
- Returns:
- height.
-
getWidthFromHeight
Description copied from class:AbstractFixRatioSizeFeedbackFactory
Calculate width from height. Return same value as height by default.- Overrides:
getWidthFromHeight
in classAbstractFixRatioSizeFeedbackFactory
- Returns:
- height.
-