Removing domain labels Androidplot - androidplot

I'm trying to remove the domain labels in my AndroidPlot bar graph. I've tried using plot.getGraphWidget().getDomainLabelPaint.setColor(Color.TRANSPARENT); as suggested in another post, but the current AndroidPlot version does not seem to include this method.
Is there another way for removing the domain labels?
Thanks in advance!

In Androidplot 1.x you can do this in your plot's xml by adding:
ap:lineLabelTextColorBottom="#color/ap_transparent"
Or programatically in your Java code:
plot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.BOTTOM).getPaint().setColor(Color.TRANSPARENT);

Related

Replacing port circle with custom image, devs.Model

I am new to jointjs. I am working with shapes as instances of joint.shapes.devs.Model and am trying to replace the circle, representing an in/out port with a custom image. I would like to keep the current functionality where it is possible to create a new arrow by dragging the circle, snaplinks, and the rest of the great functionality offered by JointJs. The only thing I would like to do is to replace the magnet/inPort/circle with an image. Is this possible? If so, how?
Regards
It is indeed possible. The best way would be to look at how the joint.shapes.devs.Model is defined here: https://raw.githubusercontent.com/clientIO/joint/master/plugins/shapes/joint.shapes.devs.js and create your own custom shape that has the SVG <image> element in the ports instead of the current <circle>.

Customize SVG icons in Tilemill/Mapbox

I added a data layer on my map and I'm using an svg image to represent the markers.
#points {
point-file: url(marker2.svg);
marker-width:10;
marker-fill:#fff;
}
since it's an SVG image, I'm trying to customize the fill color but it is not working. marker-fill seems to only work on the markers they provide, but not on SVG images. Is this possible to do using TileMill/Mapbox ? Is it possible with the JS API ?
UPDATE
From http://mapbox.com/blog/announcing-tilemill-0.10.0/, it looks like using marker-fill should have done the trick but that's not the case. Could the problem be with my svg image ?
Solved it, looks like if you're looking to customize the marker, you need
marker-file: url(marker2.svg); instead of point-file: url(marker2.svg);

Can OpenStreetMaps do overlays in iOS like MKMapView?

I want to write an application using openstreetmaps rather than mkmapview, but I'm not sure whether I can add an overlay onto the map. Does this functionality exist?
You should consider http://cloudmade.com/ if you don't want to use MKMapView, or you can use OpenStreetMap data as tiles and use the TileMaps demo
Overlays are basically another layer above maps, so you can reproduce it's behavior yourself.
There's an example from Craig Spitzkoff pre-annotation days you may want to look at: http://spitzkoff.com/craig/?p=108

How to replacing style of UI element e.g table in Vaadin

I would like to replace the style of custom table.
By using
fooTable.setStyleName("v-tableII");
produces the following result
<div class="v-table v-table-v-tableII v-tableII" ...
(grrr)
It would be important to replace the 'v-table' style because it belongs to another customized table.
Is there any way using different styles for different tables ?
(The help recommends to using addStyle, but the original 'v-table' style is tailored to another custom table )
Thanks for answers in advance.
Cs
This is how vaadin works and you will always have that. You are using the correct option fooTable.setStyleName("v-tableII") but have you remember to add this to your css file? In some cases you might have to set !important on some of the options.

How to add border to OHAttributedLabel

I am using OHAttributedLabel from AliSoftware to add user defined hyperlinks to my UILabels. I need to be able to add borders around my OHAttributedLabel items. Can someone give me code examples on how to do this. The regular myLabel.layer.bordercolor does not work on these.
Well for adding borders you can go with QuartzCore Framework.
Import that framework and use the following code.
[[typeTableView layer]setBorderColor:[UIColor whiteColor].CGColor];
[[typeTableView layer]setCornerRadius:7.0f];
[[typeTableView layer]setBorderWidth:3];
[[typeTableView layer]setMasksToBounds:YES];
This is how you can give the border,you can give its radius,width and so on.
And do add the quartz core framework first
thanks

Resources