public class IconResource extends java.lang.Object implements DiagramResource
| Constructor and Description |
|---|
IconResource(int id) |
| Modifier and Type | Method and Description |
|---|---|
IconResourceData |
getData()
Return the associated data.
|
int |
getDataID()
Return the associated data ID.
|
int |
getID()
Return the resource ID.
|
float |
getScaleX()
Return the X scale.
|
float |
getScaleY()
Return the Y scale.
|
boolean |
isKeepingIconAspectRatio()
Return true if the aspect ratio must be kept.
|
void |
keepIconAspectRatio(boolean keepAspectRatio)
Specify if the aspect ratio must be kept.
|
void |
setData(IconResourceData data)
Set the associated data.
|
void |
setDataID(int dataId)
Set the associated data ID.
|
void |
setID(int id)
Set the resource ID.
|
void |
setScaleX(float scaleX)
Set the X scale.
|
void |
setScaleY(float scaleY)
Set the Y scale.
|
public void setID(int id)
setID in interface DiagramResourceid - the IDpublic int getID()
getID in interface DiagramResourcepublic void setDataID(int dataId)
dataId - the data IDpublic int getDataID()
public void setData(IconResourceData data)
data - the datapublic IconResourceData getData()
public void keepIconAspectRatio(boolean keepAspectRatio)
keepAspectRatio - true if the aspect ratio must be keptpublic boolean isKeepingIconAspectRatio()
public void setScaleX(float scaleX)
scaleX - the X scalepublic float getScaleX()
public void setScaleY(float scaleY)
scaleY - the Y scalepublic float getScaleY()
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence