<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom text background in java arcobjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137246#M3550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Exactly, I want to add my custom text background as a 5th option of the 'Type' combobox.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2014 07:14:31 GMT</pubDate>
    <dc:creator>KevinLECOCQ</dc:creator>
    <dc:date>2014-02-25T07:14:31Z</dc:date>
    <item>
      <title>Custom text background in java arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137241#M3545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the ArcObjects SDK 10.2 Java Platform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have made a custom text background based on the sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/index.html#/Filled_leader_callout/0001000002w6000000/"&gt;Filled leader callout&lt;/A&gt;&lt;SPAN&gt; in order to improve the leader position of a line callout text background. In my AddIn for ArcMap, I managed to replace the text background of some text symbols by my custom text background, and it works well on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I'm faced to several problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I need a custom property page for this custom text background. According to API, it's possible to implement custom renderer or layer property pages. How could we make it for text background ? The idea would be to create a new type in the text background property page, in addition to "Balloon Callout", "Line Callout", "Marker Text Background" and "Simple Line Callout".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. How to save my custom text background in a MXD ? Currently, when a custom text background is applied to features, the text symbol is lost when I save and reopen the MXD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I use Maplex for the placement of labels. I have set Maplex in order to labels using Line Callout do not overlap. But when I apply my custom text background, it overlap. However, in my custom text background class, I have well implemented the functions queryBoundary, getGeometry, queryEnvelope and queryMargins but they are never called when Maplex is labelling (tested in debug).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would be very grateful to help me on some of this 3 points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 08:05:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137241#M3545</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-02-21T08:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom text background in java arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137242#M3546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You saw this example already?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/0001/000100000374000000.htm"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/0001/000100000374000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 12:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137242#M3546</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2014-02-21T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom text background in java arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137243#M3547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;1. According to API, it's possible to implement custom renderer or layer property pages. How could we make it for text background ?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think text is "rendered" in ArcMap, but I could be wrong.&amp;nbsp; I did a search in the Java API for the word Renderer and other than ArcIMS Labels, the only renderers I saw were for features, legends, datasets or rasters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;2. How to save my custom text background in a MXD ? Currently, when a custom text background is applied to features, the text symbol is lost when I save and reopen the MXD.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Any of the classes that support persistence will have the writeExternal method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at TextElement, it says it will accept geometry of type esriGeometryPoint, esriGeometryPolyline, or&amp;nbsp; esriGeometryBag.&amp;nbsp; Maybe you could look at implementing a custom feature renderer and apply that renderer to a TextElement's symbol?&amp;nbsp; Or a ParagraphTextElement's symbol?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 13:05:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137243#M3547</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2014-02-21T13:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom text background in java arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137244#M3548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't think text is "rendered" in ArcMap, but I could be wrong. I did a search in the Java API for the word Renderer and other than ArcIMS Labels, the only renderers I saw were for features, legends, datasets or rasters.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I think so TextSymbols and TextBackgrounds are not renderers. So, we cannot extend BaseCustomRendererPropertyPage to create custom text background's property page. But for example, if I extend BasePropertyPage, how could I add my new property page to the text background default property page ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any of the classes that support persistence will have the writeExternal method.&lt;BR /&gt;&lt;BR /&gt;Looking at TextElement, it says it will accept geometry of type esriGeometryPoint, esriGeometryPolyline, or esriGeometryBag. Maybe you could look at implementing a custom feature renderer and apply that renderer to a TextElement's symbol? Or a ParagraphTextElement's symbol?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My custom text background is applied to a FormattedTextSymbol, which is get from the ILabelEngineLayerProperties. Maybe it's not the best method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevertheless, my custom text background class will extend Externalizable and I will implement the writeExternal and readExternal methods.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 08:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137244#M3548</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-02-24T08:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom text background in java arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137245#M3549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Textbackground as found here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]31701[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want it added to the properties page in the lower right?&amp;nbsp; In other words, you want to add a 5th option in the dropdown in addition to Balloon Callout, Line Callout, Marker Text Background, Simple Line Callout?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137245#M3549</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2014-02-24T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom text background in java arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137246#M3550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Exactly, I want to add my custom text background as a 5th option of the 'Type' combobox.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 07:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137246#M3550</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-02-25T07:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom text background in java arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137247#M3551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A.[INDENT]I'm not sure it's possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked at this? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/0001/0001000002zt000000.htm"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/0001/0001000002zt000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see where you can build property pages for symbols.&amp;nbsp; The only examples I see are for custom feature renderers and custom layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;B.[INDENT]Why do you want the user to drill down into four screens to be able to use your custom text background *after they have already placed text?&amp;nbsp; Why not just create a tool that interacts with the map to place your custom text + text background?&amp;nbsp; I wrote a tool that does that, places text from a feature next to the point where you identify, the popup is a custom text box, yellow background, gray border, custom text, etc.. And it becomes a graphic element that you can manually reposition if you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 12:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137247#M3551</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2014-02-25T12:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom text background in java arcobjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137248#M3552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Neither do I, after looking arround the API, I don't think it's possible to extend text background property page right now. Maybe in the future !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, as my custom text background is an improvement of the "Line Callout" type, what I'll do is two add-in buttons. The first button convert a Line Callout to my custom line callout, and the second one convert back to Line Callout (useful if the user wants to change margins, borders or colors).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On the other side, I still have a problem with Maplex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;3. I use Maplex for the placement of labels. I have set Maplex in order to labels using Line Callout do not overlap. But when I apply my custom text background, it overlap. However, in my custom text background class, I have well implemented the functions queryBoundary, getGeometry, queryEnvelope and queryMargins but they are never called when Maplex is labelling (tested in debug).&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 08:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-text-background-in-java-arcobjects/m-p/137248#M3552</guid>
      <dc:creator>KevinLECOCQ</dc:creator>
      <dc:date>2014-02-26T08:54:27Z</dc:date>
    </item>
  </channel>
</rss>

