Skip to Main Content

E-Business Suite

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Iterate and extract markup entities

bill stampFeb 21 2020 — edited Feb 28 2020

I am trying to iterate a markups layers and entities, then write their control data out to a text file

I find the markupEntity.getDisplayName often returns a blank

Other getXXXX calls seem to some times return values, other times return nothing

I would have thought entity.getDisplayName() would return something like "Text", "Box", "Cloud"

I see in the markup panel in the GUI these values are displayed, so they are somehow in there

How do I obtain all the values for a given entity?

Any advice is appreciated

Example;

MarkupLayer[] layers = activeMarkup.getLayers();

for(MarkupLayer layer : layers)

{

outFile.write("LAYER:" + layer.getName() + "\n");

Color c = layer.getColor();

outFile.write("COLOR:" +  c + "\n");

outFile.write("LINETYPE:" + layer.getLineType() + "\n");

outFile.write("LINEWIDTH:" + layer.getLineWidth() + "\n");

MarkupEntity[] entities = layer.getEntities();

for(MarkupEntity entity : entities)

{

if(entity == null)

break;

if((property = entity.getDisplayName()) != null)

outFile.write("DisplayName:" +( isNullOrEmpty(property) ? "<empty>" : property) + "\n");

if((property = entity.getAuthorName()) != null)

outFile.write("Author:" + property  + "\n");

if((property = entityBoundingRectangle(entity)) != null)

outFile.write("BoundingRectangle:" + property + "\n");

if((property = entityControlPoints(entity)) != null)

outFile.write("ControlPoints:" + property + "\n");

}

}

outFile.close();

}

Comments
Post Details
Added on Feb 21 2020
2 comments
393 views