public class DisplayModel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataViewCoords |
viewCoords_ |
| Constructor and Description |
|---|
DisplayModel(NDViewer display,
NDViewerDataSource data,
Preferences prefs,
boolean rgb) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelWasSetActiveByCheckbox(String channelName,
boolean selected) |
DataViewCoords |
copyViewCoords() |
Object |
getAxisPosition(String axis) |
int[] |
getBounds() |
List<String> |
getDisplayedChannels()
Displayed channels are the actual channels, or if there are no channels a dummy one is added
|
Point2D.Double |
getDisplayImageSize() |
mmcorej.org.json.JSONObject |
getDisplaySettingsJSON() |
DisplaySettings |
getDisplaySettingsObject() |
Point2D.Double |
getFullResSourceDataSize() |
int |
getIntegerPositionFromStringPosition(String axisName,
String axisPosition) |
double |
getMagnification() |
String |
getStringPositionFromIntegerPosition(String axisName,
int axisPosition) |
Point2D.Double |
getViewOffset() |
boolean |
isChannelActive(String channelName) |
boolean |
isCompositeMode() |
boolean |
isIntegerAxis(String axis) |
void |
onCanvasResize(int w,
int h) |
void |
pan(int dx,
int dy) |
void |
parseNewAxesToUpdateDisplayModel(HashMap<String,Object> axesPositions)
Called upon a new image arriving
|
void |
scrollbarsMoved(HashMap<String,Object> axes) |
void |
setAxisPosition(String axis,
Object o) |
void |
setChannelColor(String channel,
Color c) |
void |
setCompositeMode(boolean selected) |
void |
setDisplaySettings_(DisplaySettings displaySettings_)
Need to call this when loading them from disk
|
void |
setHistogramSettings(boolean autostretch,
boolean ignoreOutliers,
boolean syncChannels,
boolean logHist,
boolean composite,
double percentToIgnore) |
void |
setImageBounds(int[] newBounds) |
void |
setViewOffset(double newX,
double newY) |
void |
updateDisplayBounds() |
void |
zoom(double factor,
Point mouseLocation) |
protected DataViewCoords viewCoords_
public DisplayModel(NDViewer display, NDViewerDataSource data, Preferences prefs, boolean rgb)
public void setDisplaySettings_(DisplaySettings displaySettings_)
public int getIntegerPositionFromStringPosition(String axisName, String axisPosition)
public String getStringPositionFromIntegerPosition(String axisName, int axisPosition)
public void channelWasSetActiveByCheckbox(String channelName, boolean selected)
public void pan(int dx,
int dy)
public void zoom(double factor,
Point mouseLocation)
public void onCanvasResize(int w,
int h)
public void setViewOffset(double newX,
double newY)
public Point2D.Double getFullResSourceDataSize()
public DataViewCoords copyViewCoords()
public Point2D.Double getDisplayImageSize()
public void setCompositeMode(boolean selected)
public List<String> getDisplayedChannels()
public void parseNewAxesToUpdateDisplayModel(HashMap<String,Object> axesPositions)
public int[] getBounds()
public void setImageBounds(int[] newBounds)
public Point2D.Double getViewOffset()
public double getMagnification()
public void updateDisplayBounds()
public mmcorej.org.json.JSONObject getDisplaySettingsJSON()
public DisplaySettings getDisplaySettingsObject()
public void setHistogramSettings(boolean autostretch,
boolean ignoreOutliers,
boolean syncChannels,
boolean logHist,
boolean composite,
double percentToIgnore)
public boolean isChannelActive(String channelName)
public boolean isCompositeMode()
public boolean isIntegerAxis(String axis)
Copyright © 2023. All rights reserved.