public class Image
extends ImageResource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PN_IMAGE_MAP
name of the image map property
|
Constructor and Description |
---|
Image(Resource resource)
Creates a new image based on the given resource.
|
Image(Resource resource,
java.lang.String imageName)
Creates a new image based on the given resource.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIconPath()
Checks if the component of the resource provides an icon for the
respective type.
|
boolean |
hasNoPlaceholder()
Returns the placeholder flag.
|
void |
loadStyleData(Style style)
Loads several definitions from style.
|
void |
setDropTargetId(java.lang.String id)
Sets the drop target id for this image, using the name of the resources
as path.
|
void |
setDropTargetId(java.lang.String id,
java.lang.String classifier)
Sets the drop target id for this image.
|
void |
setNoPlaceholder(boolean noPlaceholder)
Sets the placeholder flag.
|
public static final java.lang.String PN_IMAGE_MAP
public Image(Resource resource)
resource
- resource of the imagejava.lang.IllegalArgumentException
- if the given resource is not adaptable to node.public Image(Resource resource, java.lang.String imageName)
imageName
is specified. then the respective child resource holds the image
properties.resource
- current resourceimageName
- name of the image resourcejava.lang.IllegalArgumentException
- if the given resource is not adaptable to node.public void setDropTargetId(java.lang.String id, java.lang.String classifier)
id
- the drop target id as configured in edit config.classifier
- optional classifierpublic void setDropTargetId(java.lang.String id)
id
- the drop target id as configured in edit config.public boolean hasNoPlaceholder()
true
if no placeholder for empty content should be
drawn.public void setNoPlaceholder(boolean noPlaceholder)
noPlaceholder
- if true
no placeholder for empty content
is used.public void loadStyleData(Style style)
Currently, the minimum/maximum width and height are transferred from the given style.
style
- style to load definitions frompublic java.lang.String getIconPath()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"