public abstract class LineInput extends AbstractInput implements LinePropertiesSupporter
PROP_PREVIEW, PROP_STATE
PROP_COLOR, PROP_LABEL, PROP_SELECTED_QUALITY, PROP_SELECTED_TIMESTAMP, PROP_SELECTED_VALUE, PROP_VISIBLE
Constructor and Description |
---|
LineInput(org.eclipse.jface.resource.ResourceManager resourceManager) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
protected void |
fireUpdatePreviews() |
org.eclipse.swt.graphics.RGB |
getColor() |
org.eclipse.swt.graphics.RGB |
getLineColor() |
protected abstract AbstractLineRender |
getLineRenderer() |
float |
getLineWidth() |
org.eclipse.swt.graphics.Image |
getPreview(int width,
int height)
Get rendered preview
|
static org.eclipse.swt.graphics.Image |
makePreview(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.graphics.LineAttributes lineAttributes,
org.eclipse.swt.graphics.Color lineColor,
org.eclipse.swt.graphics.Point p) |
void |
setLineColor(org.eclipse.swt.graphics.RGB rgb) |
void |
setLineWidth(float width) |
void |
setVisible(boolean visible) |
attachHover, detachHover, getLabel, getPreview, getSelectedQuality, getSelectedTimestamp, getSelectedValue, handeMouseMove, isVisible, setLabel, setSelectedQuality, setSelectedTimestamp, setSelectedValue, setSelection
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getState, setSelection, tick
public LineInput(org.eclipse.jface.resource.ResourceManager resourceManager)
public void dispose()
dispose
in interface ChartInput
dispose
in class AbstractInput
protected abstract AbstractLineRender getLineRenderer()
public void setVisible(boolean visible)
setVisible
in interface ChartInput
setVisible
in class AbstractInput
public void setLineColor(org.eclipse.swt.graphics.RGB rgb)
setLineColor
in interface LinePropertiesSupporter
public org.eclipse.swt.graphics.RGB getLineColor()
getLineColor
in interface LinePropertiesSupporter
public org.eclipse.swt.graphics.RGB getColor()
getColor
in interface SeriesInformation
public void setLineWidth(float width)
setLineWidth
in interface LinePropertiesSupporter
public float getLineWidth()
getLineWidth
in interface LinePropertiesSupporter
protected void fireUpdatePreviews()
fireUpdatePreviews
in class AbstractInput
public org.eclipse.swt.graphics.Image getPreview(int width, int height)
ChartInput
The chart input implementation must dispose the created image. If the
implementation cannot create the image for the requested size it must
return null
.
getPreview
in interface ChartInput
width
- the requested widthheight
- the requested heightnull
public static org.eclipse.swt.graphics.Image makePreview(org.eclipse.swt.widgets.Display display, org.eclipse.swt.graphics.LineAttributes lineAttributes, org.eclipse.swt.graphics.Color lineColor, org.eclipse.swt.graphics.Point p)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.