Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to resolve overlapped region

how to resolve overlapped region

Scheduled Pinned Locked Moved C#
data-structureshelptutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    s o v a n n
    wrote on last edited by
    #1

    Hello! On the graph display we have many overlapped text. Is there any good algorithms to resolve this problem, so that we have a readable layout ? Thanks :)

    C 1 Reply Last reply
    0
    • S s o v a n n

      Hello! On the graph display we have many overlapped text. Is there any good algorithms to resolve this problem, so that we have a readable layout ? Thanks :)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Please don't post to every forum. You can request the metrics of the test in C# and also C++, and use that to work out if items overlap. You're basically talking about overlapping rectangles, no fancy algorithms are needed. Christian Graus - Microsoft MVP - C++

      S 1 Reply Last reply
      0
      • C Christian Graus

        Please don't post to every forum. You can request the metrics of the test in C# and also C++, and use that to work out if items overlap. You're basically talking about overlapping rectangles, no fancy algorithms are needed. Christian Graus - Microsoft MVP - C++

        S Offline
        S Offline
        s o v a n n
        wrote on last edited by
        #3

        My appology for posting to two forums. The problems is: overlapped label inside a densed polygon on map. Each polygon has a label (ex. town name). The label should be placed to ensure readability while still reside in that polygon. Your comments woulds be very helpful.

        C 1 Reply Last reply
        0
        • S s o v a n n

          My appology for posting to two forums. The problems is: overlapped label inside a densed polygon on map. Each polygon has a label (ex. town name). The label should be placed to ensure readability while still reside in that polygon. Your comments woulds be very helpful.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          OK - that's a bit harder :-) In that case, I guess you could start by centering the text over the point that denotes the location, then check if any overlap, and if they do, then decide on a solution. Your only options will be to change the font size, move the text about, or put some text below the dot and some above, as far as I can see. Christian Graus - Microsoft MVP - C++

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups