public abstract class LineInput extends AbstractInput implements LinePropertiesSupporter
PROP_LABEL, PROP_PREVIEW, PROP_SELECTED_QUALITY, PROP_SELECTED_TIMESTAMP, PROP_SELECTED_VALUE, PROP_STATE, PROP_VISIBLE| Constructor and Description |
|---|
LineInput(ResourceManager resourceManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected void |
fireUpdatePreviews() |
RGB |
getLineColor() |
protected abstract AbstractLineRender |
getLineRenderer() |
float |
getLineWidth() |
Image |
getPreview(int width,
int height)
Get rendered preview
|
static Image |
makePreview(Display display,
LineAttributes lineAttributes,
Color lineColor,
Point p) |
void |
setLineColor(RGB rgb) |
void |
setLineWidth(float width) |
void |
setVisible(boolean visible) |
attachHover, detachHover, getLabel, getPreview, getSelectedQuality, getSelectedTimestamp, getSelectedValue, handeMouseMove, isVisible, setLabel, setSelectedQuality, setSelectedTimestamp, setSelectedValue, setSelectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetState, setSelection, tickpublic void dispose()
dispose in interface ChartInputdispose in class AbstractInputprotected abstract AbstractLineRender getLineRenderer()
public void setVisible(boolean visible)
setVisible in interface ChartInputsetVisible in class AbstractInputpublic void setLineColor(RGB rgb)
setLineColor in interface LinePropertiesSupporterpublic RGB getLineColor()
getLineColor in interface LinePropertiesSupporterpublic void setLineWidth(float width)
setLineWidth in interface LinePropertiesSupporterpublic float getLineWidth()
getLineWidth in interface LinePropertiesSupporterprotected void fireUpdatePreviews()
fireUpdatePreviews in class AbstractInputpublic 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 ChartInputwidth - the requested widthheight - the requested heightnullpublic static Image makePreview(Display display,
LineAttributes lineAttributes,
Color lineColor,
Point p)
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0