Custom drawing MT.D borders - xamarin.ios

I've been playing around with MT.D a bit and love the simplicity of it all.
I have now been working on a completely owner drawn cell using a UIView to do all the drawing and an Element that allows me to use it with MT.D.
Now the only thing I seem to be missing is the ability to control how borders are drawn (or not drawn). If I set the mode to Grouped then I get the indented and rounded borders and Plain I get the simple horizontal border.
But lets say I want to use an image or thicker border for my borders, how do I go about customising this?

Related

How do I change the border geometry of LaTeX-formatted text in draw.io

In a figure in draw.io, I have arrows pointing basically everywhere. When I LaTeX-format the "label" in a "connector with 3 Labels" object, the formatted text is given a fixed border, which I find impossible to change. Below is an image of the label with its borders illustrated:
The thick, outer border is changeable, no problems there. I can go into the Style menu on the right-hand side and choose all sorts of options for the outer border.
The thin, inner border originates from giving the LaTeX-formatted $$(1,3)$$ text the property of "Background Color" and "Border Color" in the Text menu on the right-hand side. This is mostly for illustrating how the inner border looks.
The problem: For the life of me, I cannot change this inner border's geometry. It clips with every object it is in front of, and if I don't have a clipping border at all, it is still just awful for my figure. I need to change the inner border's geometry, make it a circle, triangle, whatever. I just need to find out how to customize it.

Style Grid border in case Grid height is calculated

I have a case which want to get vaadin-grid the maximum height possible in screen.
So, this is easy.
the problem is that despite the vaadin-grid size is ok, the tbody might be shorter than vaadin-grid.
So, whenever there is not enough rows we get empty space.
it would be ok in case had no border. But, because we do use border on the grid, empty space comes up.
Sure can shift the border to thead and tbody and get it looks good, but than the opposite happen cause bottom border will get lost when tbody in longer than vaadin-grid.
Is there a clean way, non dirty js, to distinguish cases? something else?
Thanks
I think you should be able to get at least very close by using the :host([overflow~="bottom"]) state attribute selector. Add/remove the borders based on that. The overflow attribute value changes based on if rows are overflowing the from the bottom of the grid viewport.
The only issue I see is that the border will disappear when the user scrolls to the bottom of the grid.

How to center text within label in a map chart in spotfire?

How to center the text within a label in a map chart in Spotfire? I tried the labels option but it doesn't have an option to align the text.
sadly, there is no feature to align text inside of a label, and the label formatting features are a bit limited. this goes for all of the other chart types that support labels, too.
one really silly idea I just thought of and haven't tried would be to change the label to use a monospace font like Courier New, and then calculate how many spaces you'd need to place on the left to make the text appear centered, but herein lies only madness and I wouldn't seriously recommend this approach to anyone.

excel exporting to pdf; graph placement offset

I have some trouble with a document when exporting it to pdf with the builtin pdf export function of excel (2010).
I've generated a graph on my worksheet, with some colored cells arround it. Visually it looks good (even if I zoom on it with the ctrl key + mouse wheel). But when exporting, the graph overlap the surrounding cells.
For example, on the image bellow, I take a screenshot of my graph in excel (at top) and in pdf (at bottom). The red part is my graph (I've colored the background of the graph object). The graph have a black border. And just on the top of the graph, I've colored the background of a cell in blue. Normally, the graph must not overlap the blue cell, because I've manually place it bellow (cut the graph, select the cell bellow the blue one, and past the graph to this emplacement).
But we can see that:
the black border overlap the blue cell (in excel and in pdf version; but it's not really my problem; I've understand that the border in excel object is at outside the object; and then overlapp surround objects/cells).
the graph (in red + the border) has not the same place in excel and in pdf, there is a big offset (it's not a resize problem, this offset is present and the left side too). The place of the graph is more on the left and more on the top in pdf version than it can be!
(I'm using this to automatically generate reports; and the result is not visually good)
Is there any way to overcome this problem?
Hmm, I can't replicate your problem, but I've had similar issues exporting Crystal Reports to PDF. Here's 2 suggestions, neither of which is perfect and I couldn't try them first (again, sorry I couldn't replicate the problem):
Add a white row with a very small height between the graph and the cell. It might even be visually more appealing than the 2 objects one on top of the other.
Make your graph's background transparent and hide the border. Maybe add some extra white space at the top of your graph. That way, they'll still overlap, but it won't be as obvious.

How do I change the drawing setting to show the objects filled?

When I create drawing shapes I cant see any color or fill. I know there is a setting that need to be changed so I can see them. Here is a pick of what is happening on my screen:
I draw the shape and all I see is the green outline, any suggestions?
At the bottom of the screen on your timeline there is a green square on your layer, from the looks of it you have click that. This shows layers as outlines.

Resources