Displayable.DataPackage, Displayable.DoEdit, Displayable.DoEdits, Displayable.DoTransforms, Displayable.SliderListener
Modifier and Type | Field and Description |
---|---|
protected LayerSet |
layer_set |
alpha, annotation, at, color, COMPOSITE_ADD, COMPOSITE_COLOR_YCBCR, COMPOSITE_DIFFERENCE, COMPOSITE_MULTIPLY, COMPOSITE_NORMAL, COMPOSITE_SUBTRACT, compositeModes, height, hs_linked, last_color, layer, linked_props, linked_props_origins, locked, props, TAG_ATTR1, TAG_ATTR2, title, visible, width
Constructor and Description |
---|
ZDisplayable(Project project,
long id,
HashMap<String,String> ht,
HashMap<Displayable,String> ht_links)
For reconstruction from an XML file.
|
ZDisplayable(Project project,
long id,
String title,
boolean locked,
AffineTransform at,
float width,
float height)
For reconstruction from the database.
|
ZDisplayable(Project project,
String title,
double x,
double y) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
calculateBoundingBox(Layer la) |
boolean |
crop(List<Layer> range)
Retain the data within the layer range, and through out all the rest.
|
static void |
exportDTD(String type,
StringBuilder sb_header,
HashSet<String> hs,
String indent) |
void |
exportXML(StringBuilder sb_body,
String indent,
XMLOptions options)
The oid is this objects' id, whereas the 'id' tag will be the id of the wrapper Thing object.
|
Bucketable |
getBucketable() |
abstract Layer |
getFirstLayer()
Returns the layer of lowest Z coordinate where this ZDisplayable has a point in.
|
Collection<Long> |
getLayerIds()
Get the list of Layer ids on which this ZDisplayable has data on.
|
LayerSet |
getLayerSet() |
abstract boolean |
intersects(Area area,
double z_first,
double z_last) |
protected boolean |
layerRemoved(Layer la)
Update internal datastructures to reflect the fact that @param layer has been removed from the containing LayerSet.
|
abstract boolean |
linkPatches()
Link the Patch objects that lay underneath the part of the bounding box of this profile that shows in the current layer, so that they cannot be dragged independently.
|
boolean |
paintsAt(Layer layer)
Check if this instance will paint anything at the level of the given Layer.
|
boolean |
remove(boolean check)
Remove from both the database and any Display that shows the Layer in which this Displayable is shown.
|
protected boolean |
remove2(boolean check)
Remove also from the trees if present; does nothing more than remove(boolean) unless overriden.
|
void |
setColor(Color color) |
void |
setLayer(Layer layer) |
void |
setLayerSet(LayerSet layer_set) |
void |
setLayerSet(LayerSet layer_set,
boolean update_db) |
void |
setVisible(boolean visible,
boolean repaint) |
boolean |
softRemove()
Does not remove from the LayerSet.
|
void |
transformPoints(Layer layer,
double dx,
double dy,
double rot,
double xo,
double yo)
Deprecated.
|
void |
updateBucket()
Update buckets for all Layers.
|
void |
updateBucket(Layer la) |
adjustProperties, areThereLayerCrossLinks, canSendTo, clone, clone, clone, commonDTDChildren, contains, contains, deselect, destroy, displacePoints, exportDTD, exportSVG, findById, findNearestPoint, findNearestPoint, getAffineTransform, getAffineTransformCopy, getAlpha, getAnnotation, getArea, getAreaAt, getAreaForBucket, getBoundingBox, getBoundingBox, getBoundingBox, getBounds, getBounds, getColor, getComposite, getComposite, getCompositeMode, getHeight, getIntersection, getLayer, getLayersWithData, getLinked, getLinked, getLinkedBox, getLinkedGroup, getLinkedProperties, getLinkedProperties, getLinkedProperty, getLinkedProperty, getMinimalBoundingBox, getNameId, getPerimeter, getPerimeter, getProperties, getProperty, getProperty, getShortTitle, getTitle, getWidth, getX, getXMLSafeValue, getXMLSafeValue, getY, hasLinkedGroupWithinLayer, hasProperties, intersects, intersects, intersects, intersects, inverseTransformPoint, isDeletable, isLinked, isLinked, isLinked, isLocked, isLocked2, isOnlyLinkedTo, isOnlyLinkedTo, isOutOfRepaintingClip, isOutOfRepaintingClip, isRoughlyInside, isVisible, keyPressed, link, link, makeAdjustPropertiesDialog, measure, mouseDragged, mousePressed, mouseReleased, mouseWheelMoved, paint, paintAsBox, paintOffscreen, paintSnapshot, preConcatenate, prePaint, preTransform, processAdjustPropertiesDialog, removeLinkedProperties, removeLinkedPropertiesFromOrigins, repaint, restXML, rotate, rotate, rotatePoints, scale, scale, scalePoints, setAffineTransform, setAlpha, setAlpha, setAnnotation, setCompositeMode, setDimensions, setDimensions, setLayer, setLinkedProperties, setLinkedProperty, setLocation, setLocked, setProperty, setTitle, setVisible, snapTo, toString, transform, transformPoint, transformPoint, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformPoints, transformRectangle, translate, translate, unlink, unlink, unlinkAll, updateInDatabase, xmlError, xmlError
addToDatabase, getId, getInfo, getProject, getUniqueIdentifier, removeFromDatabase, updateInDatabase
protected LayerSet layer_set
public ZDisplayable(Project project, long id, String title, boolean locked, AffineTransform at, float width, float height)
public void setLayerSet(LayerSet layer_set)
public void setLayerSet(LayerSet layer_set, boolean update_db)
public LayerSet getLayerSet()
getLayerSet
in class Displayable
public void setLayer(Layer layer)
setLayer
in class Displayable
public abstract boolean linkPatches()
linkPatches
in class Displayable
public abstract Layer getFirstLayer()
public void exportXML(StringBuilder sb_body, String indent, XMLOptions options)
Displayable
exportXML
in class Displayable
public static void exportDTD(String type, StringBuilder sb_header, HashSet<String> hs, String indent)
@Deprecated public void transformPoints(Layer layer, double dx, double dy, double rot, double xo, double yo)
protected boolean remove2(boolean check)
Displayable
remove2
in class Displayable
public boolean remove(boolean check)
Displayable
remove
in class Displayable
public boolean softRemove()
softRemove
in class Displayable
public boolean paintsAt(Layer layer)
public Collection<Long> getLayerIds()
getLayerIds
in class Displayable
public void setColor(Color color)
setColor
in class Displayable
public abstract boolean intersects(Area area, double z_first, double z_last)
public void setVisible(boolean visible, boolean repaint)
setVisible
in class Displayable
public Bucketable getBucketable()
getBucketable
in class Displayable
public boolean crop(List<Layer> range)
protected boolean layerRemoved(Layer la)
public void updateBucket(Layer la)
public void updateBucket()
updateBucket
in class Displayable
protected abstract boolean calculateBoundingBox(Layer la)
Copyright © 2015–2021 Fiji. All rights reserved.